Skip to content

Commit

Permalink
Trying to fix the test.
Browse files Browse the repository at this point in the history
  • Loading branch information
yakutovicha committed Mar 27, 2024
1 parent 0046cb9 commit acfe65f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ def pytest_unconfigure(config):
del sys._called_from_test


@pytest.fixture(scope="session", autouse=True)
@pytest.fixture(scope="function", autouse=True)
def setup_sssp_pseudos(aiida_profile):
"""Create an SSSP pseudo potential family from scratch."""
subprocess.run(
Expand Down
4 changes: 2 additions & 2 deletions examples/single_calculations/example_sirius.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
StructureData = plugins.DataFactory("core.structure")


def example_sirius(cp2k_code):
def example_sirius(cp2k_code, setup_sssp_pseudos):
"""Run simple DFT calculation."""

print("Testing CP2K SIRIUS ENERGY on Si (DFT)...")
Expand Down Expand Up @@ -119,7 +119,7 @@ def cli(codelabel):
except common.NotExistent:
print(f"The code '{codelabel}' does not exist.")
sys.exit(1)
example_sirius(code)
example_sirius(code, setup_sssp_pseudos=None)


if __name__ == "__main__":
Expand Down

0 comments on commit acfe65f

Please sign in to comment.