diff --git a/conftest.py b/conftest.py index fd00978..4f3a5c8 100644 --- a/conftest.py +++ b/conftest.py @@ -1,5 +1,6 @@ """For pytest initialise a test database and profile.""" import pytest +import subprocess pytest_plugins = ["aiida.manage.tests.pytest_fixtures"] @@ -30,3 +31,20 @@ def pytest_unconfigure(config): import sys del sys._called_from_test + +@pytest.fixture(scope="session", autouse=True) +def setup_sssp_pseudos(aiida_profile): + """Create an SSSP pseudo potential family from scratch.""" + subprocess.run( + [ + "aiida-pseudo", + "install", + "sssp", + "-p", + "efficiency", + "-x", + "PBE", + "-v", + "1.3", + ] + )