Add and fix tests

This commit is contained in:
2026-03-14 15:34:33 +01:00
parent cb098cb139
commit 171f4a0b9c
6 changed files with 61 additions and 6 deletions

View File

@@ -78,3 +78,11 @@ def test_db():
test_session = None
db.rollback()
db.close()
@pytest.fixture(scope="session", autouse=True)
def test_env():
"""Set up environment variables for testing"""
os.environ["APS_TESTRUN"] = "true"
yield
os.environ.pop("APS_TESTRUN", None)