userver: pytest_userver.dynconf Namespace Reference
Loading...
Searching...
No Matches
pytest_userver.dynconf Namespace Reference

Detailed Description

Python module that provides classes and constants that may be useful when working with the dynamic config in testsuite.

Classes

class  _Changelog
 
class  _ChangelogEntry
 
class  _ConfigEntry
 
class  _Missing
 
class  _RemoveKey
 
class  _Updates
 
class  BaseError
 Base class for exceptions from this module. More...
 
class  DynamicConfig
 Simple dynamic config backend. More...
 
class  DynamicConfigNotFoundError
 Config parameter was not found and no default was provided. More...
 
class  DynamicConfigUninitialized
 Calling dynamic_config.get before defaults are fetched from the service. More...
 
class  InvalidDefaultsError
 Dynamic config defaults action returned invalid response. More...
 
class  UnknownConfigError
 Invalid dynamic config name in @pytest.mark.config More...
 
class  UseStaticDefault
 

Functions

_ConfigDict _create_config_dict (ConfigValuesDict values, Optional[Set[str]] kill_switches_disabled=None)
 

Variables

 ConfigValuesDict = Dict[str, Any]
 
 _REMOVE_KEY = _RemoveKey()
 
 _MISSING = _Missing()
 
 _ConfigDict = Dict[str, _ConfigEntry | _RemoveKey]
 
 USE_STATIC_DEFAULT = UseStaticDefault()
 

Function Documentation

◆ _create_config_dict()

_ConfigDict pytest_userver.dynconf._create_config_dict ( ConfigValuesDict  values,
Optional[Set[str]]   kill_switches_disabled = None 
)
protected

Definition at line 74 of file dynconf.py.

Variable Documentation

◆ _ConfigDict

pytest_userver.dynconf._ConfigDict = Dict[str, _ConfigEntry | _RemoveKey]
protected

Definition at line 71 of file dynconf.py.

◆ _MISSING

pytest_userver.dynconf._MISSING = _Missing()
protected

Definition at line 62 of file dynconf.py.

◆ _REMOVE_KEY

pytest_userver.dynconf._REMOVE_KEY = _RemoveKey()
protected

Definition at line 55 of file dynconf.py.

◆ ConfigValuesDict

pytest_userver.dynconf.ConfigValuesDict = Dict[str, Any]

Definition at line 48 of file dynconf.py.

◆ USE_STATIC_DEFAULT

pytest_userver.dynconf.USE_STATIC_DEFAULT = UseStaticDefault()

Definition at line 387 of file dynconf.py.