Add and fix tests
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user