from zbt.infrastructure.mysql.repositories import (
    SqlAlchemyCatalogRepository,
    SqlAlchemyIdentityRepository,
)
from zbt.main import create_app


def test_default_application_uses_real_mysql_repository_adapters() -> None:
    application = create_app()

    assert isinstance(application.state.identity_repository, SqlAlchemyIdentityRepository)
    assert isinstance(application.state.catalog_repository, SqlAlchemyCatalogRepository)
