Right now, every test module loads the database. This could instead be done at the beginning of the session using the conftest.py file and making a fixture:
@pytest.fixture(scope="session", autouse=True)
def db():
db = load_astrodb(DB_NAME, recreatedb=False)
return db
Right now, every test module loads the database. This could instead be done at the beginning of the session using the
conftest.py
file and making a fixture:This is soon to be implemented in astrodb_scripts via https://github.com/astrodbtoolkit/astrodb_scripts/pull/26