File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -67,19 +67,19 @@ def test_get_running_workchains(generate_workchain_pw_node):
6767 assert success == [False , True , False ]
6868
6969
70- # @pytest.mark.usefixtures('aiida_profile')
71- # def test_submit_and_get_workchains(fixture_code):
72- # """Test the :func:`sscha.aiida_ensemble.submit_and_get_workchains` method."""
73- # from cellconstructor.Structure import Structure
74- # from sscha.aiida_ensemble import submit_and_get_workchains
75- #
76- # pw_code = fixture_code('quantumespresso.pw')
77- # structures = [Structure(nat=1) for _ in range(5)]
78- #
79- # workchains = submit_and_get_workchains(
80- # structures=structures,
81- # pw_code=pw_code,
82- # temperature=300,
83- # )
84- #
85- # assert len(workchains) == 5
70+ @pytest .mark .usefixtures ('aiida_profile' )
71+ def test_submit_and_get_workchains (fixture_code ):
72+ """Test the :func:`sscha.aiida_ensemble.submit_and_get_workchains` method."""
73+ from cellconstructor .Structure import Structure
74+ from sscha .aiida_ensemble import submit_and_get_workchains
75+
76+ pw_code = fixture_code ('quantumespresso.pw' )
77+ structures = [Structure (nat = 1 ) for _ in range (5 )]
78+
79+ workchains = submit_and_get_workchains (
80+ structures = structures ,
81+ pw_code = pw_code ,
82+ temperature = 300 ,
83+ )
84+
85+ assert len (workchains ) == 5
You can’t perform that action at this time.
0 commit comments