Skip to content

Commit da17f8d

Browse files
committed
tests: merlin.psi.ch -> merlin7.psi.sh
1 parent 0c8f4ee commit da17f8d

2 files changed

Lines changed: 12 additions & 12 deletions

File tree

tests/test_computational_resources.py

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -593,9 +593,9 @@ def test_resource_setup_widget_for_password_configure(monkeypatch, tmp_path):
593593

594594
# Test select a new resource setup will update the output interface (e.g. ssh_config, computer_setup, code_setup)
595595
# and the computer/code setup widget will be updated accordingly.
596-
w.comp_resources_database.domain_selector.value = "merlin.psi.ch"
596+
w.comp_resources_database.domain_selector.value = "merlin7.psi.ch"
597597
w.comp_resources_database.computer_selector.value = "cpu"
598-
w.comp_resources_database.code_selector.value = "QuantumESPRESSO-7.0"
598+
w.comp_resources_database.code_selector.value = "QuantumESPRESSO-7.4"
599599

600600
# Fill in the computer name and trigger the setup button again, the message should be updated.
601601
for (
@@ -606,7 +606,7 @@ def test_resource_setup_widget_for_password_configure(monkeypatch, tmp_path):
606606
sub_widget = mapping_variable.widget
607607

608608
# Test the default value is filled in correctly.
609-
assert sub_widget.value == "merlin-cpu"
609+
assert sub_widget.value == "merlin7-cpu"
610610

611611
# Test the password box is displayed.
612612
assert w.password_box_container.layout.display == "block"
@@ -648,7 +648,7 @@ def test_resource_setup_widget_for_password_configure(monkeypatch, tmp_path):
648648

649649
assert w.success
650650
# check the code is really created
651-
assert orm.load_code("pw-7.0@merlin-cpu")
651+
assert orm.load_code("pw-7.0@merlin7-cpu")
652652

653653
# The key pair will be generated to the temporary directory
654654
# Check the content of the config is correct
@@ -753,9 +753,9 @@ def test_computer_resource_setup_widget_default(monkeypatch, tmp_path):
753753

754754
w_resource = w.resource_setup
755755

756-
w_resource.comp_resources_database.domain_selector.value = "merlin.psi.ch"
756+
w_resource.comp_resources_database.domain_selector.value = "merlin7.psi.ch"
757757
w_resource.comp_resources_database.computer_selector.value = "cpu"
758-
w_resource.comp_resources_database.code_selector.value = "QuantumESPRESSO-7.0"
758+
w_resource.comp_resources_database.code_selector.value = "QuantumESPRESSO-7.4"
759759

760760
# Fill in the computer name and trigger the setup button again, the message should be updated.
761761
for (
@@ -766,7 +766,7 @@ def test_computer_resource_setup_widget_default(monkeypatch, tmp_path):
766766
sub_widget = mapping_variable.widget
767767

768768
# Test the default value is filled in correctly.
769-
assert sub_widget.value == "merlin-cpu"
769+
assert sub_widget.value == "merlin7-cpu"
770770

771771
# Fill the computer configure template variables
772772
for (
@@ -802,10 +802,10 @@ def test_computer_resource_setup_widget_default(monkeypatch, tmp_path):
802802

803803
assert w_resource.success
804804
# check the code is really created
805-
assert orm.load_code("pw-7.0@merlin-cpu")
805+
assert orm.load_code("pw-7.0@merlin7-cpu")
806806

807807
# check the dropdown is updated
808-
assert "pw-7.0@merlin-cpu" in [c[0] for c in w.code_select_dropdown.options]
808+
assert "pw-7.0@merlin7-cpu" in [c[0] for c in w.code_select_dropdown.options]
809809

810810
# The key pair will be generated to the temporary directory
811811
# Check the content of the config is correct

tests/test_databases.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ def test_computational_resources_database_widget():
5151
# Same for the quick setup widget.
5252
widget = ComputationalResourcesDatabaseWidget(default_calc_job_plugin="cp2k")
5353
assert (
54-
"merlin.psi.ch" not in widget.database
54+
"merlin7.psi.ch" not in widget.database
5555
) # Merlin does not have CP2K installed.
5656

5757
# Select computer/code
@@ -104,9 +104,9 @@ def test_resource_database_widget_recognize_template_entry_points():
104104
widget = ComputationalResourcesDatabaseWidget(
105105
default_calc_job_plugin="quantumespresso.pw"
106106
)
107-
assert "merlin.psi.ch" in widget.database
107+
assert "merlin7.psi.ch" in widget.database
108108

109109
widget = ComputationalResourcesDatabaseWidget(
110110
default_calc_job_plugin="quantumespresso.ph"
111111
)
112-
assert "merlin.psi.ch" in widget.database
112+
assert "merlin7.psi.ch" in widget.database

0 commit comments

Comments
 (0)