def METHOD_NAME(monkeypatch_session: MonkeyPatch) -> AppConfig:
    METHOD_NAME = AppConfig.from_env()
    if "test" not in METHOD_NAME.cache.mongo_database or "test" not in METHOD_NAME.queue.mongo_database:
        raise ValueError("Test must be launched on a test mongo database")
    return METHOD_NAME