Skip to content

Commit

Permalink
Replace SSSP link to legacy MC Archive
Browse files Browse the repository at this point in the history
The `cli.test_install:test_install_family_url` test was using a link to
the legacy version of the Materials Cloud Archive which has now been
taken offline, causing the test to fail. The link is updated to point to
the new server.
  • Loading branch information
sphuber committed Dec 8, 2021
1 parent 2428165 commit f098739
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions tests/cli/test_install.py
Original file line number Diff line number Diff line change
Expand Up @@ -157,8 +157,10 @@ def test_install_family_url(run_cli_command):
"""
label = 'SSSP/1.0/PBE/efficiency'
description = 'description'
filepath_archive = 'https://legacy-archive.materialscloud.org/file/2018.0001/v4/SSSP_1.0_PBE_efficiency.tar.gz'
options = ['-D', description, filepath_archive, label, '-P', 'pseudo.upf']
configuration = SsspConfiguration('1.0', 'PBE', 'efficiency')
filename = SsspFamily.format_configuration_filename(configuration, 'tar.gz', '1.0')
filepath_archive = f'https://archive.materialscloud.org/record/file?filename={filename}&record_id=23'
options = ['-D', description, '-P', 'pseudo.upf', '-f', 'gztar', filepath_archive, label]

result = run_cli_command(cmd_install_family, options)
assert f'installed `{label}`' in result.output
Expand Down

0 comments on commit f098739

Please sign in to comment.