Skip to content

search_indexer_service_locator

Scope: function | Returns: DependencyContainer

The search_indexer_service_locator fixture bootstraps and sets the global service locator with the search indexer's component registrations. Use it in tests that exercise search indexing behavior.

Basic usage

@pytest.mark.usefixtures("search_indexer_service_locator")
def test_document_is_indexed():
    ...