Skip to content

update_service_config

Scope: function | Returns: callable

The update_service_config fixture returns a callable that merges the provided dict into the active service configuration. Changes are reverted after the test.

Signature

update_service_config(config: dict) -> None

The merge is deep — nested keys are merged rather than replaced.

Basic usage

def test_something(update_service_config):
    update_service_config({"features": {"use_object_access_group_cache": True}})

The callable can be invoked multiple times within a test; each call merges on top of the previous state.