"""Django app config that registers the AFI fixture on Django's ready() hook.""" from django.apps import AppConfig class AfiAppConfig(AppConfig): name = "afi_app" def ready(self) -> None: # tests/afi/ is on sys.path (added by manage.py), so `fixture` resolves # to tests/afi/fixture.py — the same module the FastAPI side imports. from fixture import register_fixture register_fixture()