@@ -572,9 +572,9 @@ def test_resource_setup_widget_for_password_configure(monkeypatch, tmp_path):
572572
573573 # Test select a new resource setup will update the output interface (e.g. ssh_config, computer_setup, code_setup)
574574 # and the computer/code setup widget will be updated accordingly.
575- w .comp_resources_database .domain_selector .value = "merlin .psi.ch"
575+ w .comp_resources_database .domain_selector .value = "merlin7 .psi.ch"
576576 w .comp_resources_database .computer_selector .value = "cpu"
577- w .comp_resources_database .code_selector .value = "QuantumESPRESSO-7.0 "
577+ w .comp_resources_database .code_selector .value = "QuantumESPRESSO-7.4 "
578578
579579 # Fill in the computer name and trigger the setup button again, the message should be updated.
580580 for (
@@ -585,7 +585,7 @@ def test_resource_setup_widget_for_password_configure(monkeypatch, tmp_path):
585585 sub_widget = mapping_variable .widget
586586
587587 # Test the default value is filled in correctly.
588- assert sub_widget .value == "merlin -cpu"
588+ assert sub_widget .value == "merlin7 -cpu"
589589
590590 # Test the password box is displayed.
591591 assert w .password_box_container .layout .display == "block"
@@ -627,14 +627,14 @@ def test_resource_setup_widget_for_password_configure(monkeypatch, tmp_path):
627627
628628 assert w .success
629629 # check the code is really created
630- assert orm .load_code ("pw-7.0@merlin -cpu" )
630+ assert orm .load_code ("pw-7.4@merlin7 -cpu" )
631631
632632 # The key pair will be generated to the temporary directory
633633 # Check the content of the config is correct
634634 with open (tmp_path / ".ssh" / "config" ) as f :
635635 content = f .read ()
636636 assert "User aiida" in content
637- assert "Host merlin-l-01 .psi.ch" in content
637+ assert "Host login001.merlin7 .psi.ch" in content
638638
639639 # After reset the password box should be hidden again.
640640 w .reset ()
@@ -732,9 +732,9 @@ def test_computer_resource_setup_widget_default(monkeypatch, tmp_path):
732732
733733 w_resource = w .resource_setup
734734
735- w_resource .comp_resources_database .domain_selector .value = "merlin .psi.ch"
735+ w_resource .comp_resources_database .domain_selector .value = "merlin7 .psi.ch"
736736 w_resource .comp_resources_database .computer_selector .value = "cpu"
737- w_resource .comp_resources_database .code_selector .value = "QuantumESPRESSO-7.0 "
737+ w_resource .comp_resources_database .code_selector .value = "QuantumESPRESSO-7.4 "
738738
739739 # Fill in the computer name and trigger the setup button again, the message should be updated.
740740 for (
@@ -745,7 +745,7 @@ def test_computer_resource_setup_widget_default(monkeypatch, tmp_path):
745745 sub_widget = mapping_variable .widget
746746
747747 # Test the default value is filled in correctly.
748- assert sub_widget .value == "merlin -cpu"
748+ assert sub_widget .value == "merlin7 -cpu"
749749
750750 # Fill the computer configure template variables
751751 for (
@@ -781,17 +781,17 @@ def test_computer_resource_setup_widget_default(monkeypatch, tmp_path):
781781
782782 assert w_resource .success
783783 # check the code is really created
784- assert orm .load_code ("pw-7.0@merlin -cpu" )
784+ assert orm .load_code ("pw-7.4@merlin7 -cpu" )
785785
786786 # check the dropdown is updated
787- assert "pw-7.0@merlin -cpu" in [c [0 ] for c in w .code_select_dropdown .options ]
787+ assert "pw-7.4@merlin7 -cpu" in [c [0 ] for c in w .code_select_dropdown .options ]
788788
789789 # The key pair will be generated to the temporary directory
790790 # Check the content of the config is correct
791791 with open (tmp_path / ".ssh" / "config" ) as f :
792792 content = f .read ()
793793 assert "User aiida" in content
794- assert "Host merlin-l-01 .psi.ch" in content
794+ assert "Host login001.merlin7 .psi.ch" in content
795795
796796
797797@pytest .mark .usefixtures ("aiida_profile_clean" )
0 commit comments