Skip to content

Commit

Permalink
Add setup_sssp_pseudos fixture.
Browse files Browse the repository at this point in the history
  • Loading branch information
yakutovicha committed Mar 27, 2024
1 parent 9f5118b commit 0de12d8
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions conftest.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
"""For pytest initialise a test database and profile."""
import pytest
import subprocess

pytest_plugins = ["aiida.manage.tests.pytest_fixtures"]

Expand Down Expand Up @@ -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",
]
)

0 comments on commit 0de12d8

Please sign in to comment.