# Configuration

Utilities for interacting with Prefect configuration. These are only intended to be used for testing.

# Functions

top-level functions:                                                                                                                                                       



Temporarily sets configuration values for the duration of the context manager.

This is only intended to be used for testing.


  • temp_config (dict): a dictionary containing (possibly nested) configuration keys and values. Nested configuration keys should be supplied as .-delimited strings.
    with set_temporary_config({'setting': 1, 'nested.setting': 2}):
assert prefect.config.setting == 1
assert prefect.config.nested.setting == 2

This documentation was auto-generated from commit n/a
on February 23, 2022 at 19:26 UTC