def METHOD_NAME(mongo_host: str) -> Iterator[MigrationsMongoResource]:
    database = "datasets_server_migrations_test"
    if "test" not in database:
        raise ValueError("Test must be launched on a test mongo database")
    with MigrationsMongoResource(database=database, host=mongo_host) as resource:
        yield resource
        _clean_maintenance_database()