qshub / tests /test_schema.py
basel00omar's picture
THE QS HUB v2.0 - Complete React + FastAPI Platform (clean deploy)
1b4b6d2
Raw History Blame Contribute Delete
440 Bytes
import pathlib
def test_saas_schema_contains_required_tables():
sql = pathlib.Path("migrations/001_saas_schema.sql").read_text(encoding="utf-8")
for table in [
"qto_users",
"qto_subscriptions",
"qto_projects",
"qto_usage_logs",
"qto_files",
"qto_invoices",
"qto_audit_logs",
"qto_background_jobs",
]:
assert f"CREATE TABLE IF NOT EXISTS {table}" in sql