from importlib.resources import files


def test_defaults_and_migrations_are_packaged():
    package_root = files("aweb")

    assert (package_root / "defaults" / "invariants" / "01-tracking-aw-only.md").is_file()
    assert (package_root / "defaults" / "roles" / "backend.md").is_file()
    assert (package_root / "migrations" / "aweb" / "001_initial.sql").is_file()
    assert (package_root / "migrations" / "server" / "001_initial.sql").is_file()
