@@ -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
0 commit comments