feat: indie status page SaaS - initial release
This commit is contained in:
parent
ee2bc87ade
commit
b7a8142ca0
14 changed files with 2703 additions and 0 deletions
|
|
@ -21,6 +21,9 @@ TestSessionLocal = async_sessionmaker(
|
|||
@pytest_asyncio.fixture(scope="session", autouse=True)
|
||||
async def setup_database():
|
||||
"""Create all tables once for the test session."""
|
||||
# Import SaaS models so their tables are registered on Base.metadata
|
||||
import app.models.saas_models # noqa: F401
|
||||
|
||||
async with test_engine.begin() as conn:
|
||||
await conn.run_sync(Base.metadata.create_all)
|
||||
yield
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue