# Configuration


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

# Functions

top-level functions:                                                                                                                                                       

prefect.utilities.configuration.set_temporary_config

(temp_config)[source]

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

This is only intended to be used for testing.

Args:

  • temp_config (dict): a dictionary containing (possibly nested) configuration keys and values. Nested configuration keys should be supplied as .-delimited strings.
Example:
    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