from app.core.database import Base
import app.models
def test_all_owned_rows_are_tenant_scoped():
    assert all("tenant_id" in t.columns for t in Base.metadata.tables.values())
def test_layers_exist():
    from pathlib import Path
    root=Path(__file__).parents[2]
    for x in ("api","commands","queries","repositories","models","providers","events"): assert (root/"app"/x).exists()
