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, Set[str]|None kill_switches_disabled=None)
 

Variables

 _REMOVE_KEY = _RemoveKey()
 
 _MISSING = _Missing()
 
 USE_STATIC_DEFAULT = UseStaticDefault()
 

Function Documentation

◆ _create_config_dict()

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

Definition at line 73 of file dynconf.py.

Variable Documentation

◆ _MISSING

pytest_userver.dynconf._MISSING = _Missing()
protected

Definition at line 61 of file dynconf.py.

◆ _REMOVE_KEY

pytest_userver.dynconf._REMOVE_KEY = _RemoveKey()
protected

Definition at line 54 of file dynconf.py.

◆ USE_STATIC_DEFAULT

pytest_userver.dynconf.USE_STATIC_DEFAULT = UseStaticDefault()

Definition at line 387 of file dynconf.py.