userver: pytest_userver.plugins.dynamic_config.DynamicConfig Class Reference
Loading...
Searching...
No Matches
pytest_userver.plugins.dynamic_config.DynamicConfig Class Reference

Detailed Description

Simple dynamic config backend.

Definition at line 168 of file dynamic_config.py.

Public Member Functions

 __init__ (self, *ConfigDict initial_values, typing.Iterable[str] config_cache_components, caches.InvalidationState cache_invalidation_state, _Changelog changelog)
 
 set_values (self, ConfigDict values)
 
 set_values_unsafe (self, ConfigDict values)
 
 set (self, **values)
 
ConfigDict get_values_unsafe (self)
 
typing.Any get (self, str key, typing.Any default=None)
 
 remove_values (self, keys)
 
 remove (self, key)
 
typing.Any modify (self, str key)
 
typing.Tuple[typing.Any,...] modify_many (self, *typing.Tuple[str,...] keys)
 

Protected Member Functions

 _sync_with_service (self)
 

Protected Attributes

 _values
 
 _cache_invalidation_state
 
 _config_cache_components
 
 _changelog
 

Constructor & Destructor Documentation

◆ __init__()

pytest_userver.plugins.dynamic_config.DynamicConfig.__init__ ( self,
*ConfigDict initial_values,
typing.Iterable[str] config_cache_components,
caches.InvalidationState cache_invalidation_state,
_Changelog changelog )

Definition at line 171 of file dynamic_config.py.

Member Function Documentation

◆ _sync_with_service()

pytest_userver.plugins.dynamic_config.DynamicConfig._sync_with_service ( self)
protected

Definition at line 233 of file dynamic_config.py.

◆ get()

typing.Any pytest_userver.plugins.dynamic_config.DynamicConfig.get ( self,
str key,
typing.Any default = None )

Definition at line 198 of file dynamic_config.py.

◆ get_values_unsafe()

ConfigDict pytest_userver.plugins.dynamic_config.DynamicConfig.get_values_unsafe ( self)

Definition at line 195 of file dynamic_config.py.

◆ modify()

typing.Any pytest_userver.plugins.dynamic_config.DynamicConfig.modify ( self,
str key )

Definition at line 220 of file dynamic_config.py.

◆ modify_many()

typing.Tuple[typing.Any, ...] pytest_userver.plugins.dynamic_config.DynamicConfig.modify_many ( self,
*typing.Tuple[str, ...] keys )

Definition at line 226 of file dynamic_config.py.

◆ remove()

pytest_userver.plugins.dynamic_config.DynamicConfig.remove ( self,
key )

Definition at line 216 of file dynamic_config.py.

◆ remove_values()

pytest_userver.plugins.dynamic_config.DynamicConfig.remove_values ( self,
keys )

Definition at line 205 of file dynamic_config.py.

◆ set()

pytest_userver.plugins.dynamic_config.DynamicConfig.set ( self,
** values )

Definition at line 192 of file dynamic_config.py.

◆ set_values()

pytest_userver.plugins.dynamic_config.DynamicConfig.set_values ( self,
ConfigDict values )

Definition at line 184 of file dynamic_config.py.

◆ set_values_unsafe()

pytest_userver.plugins.dynamic_config.DynamicConfig.set_values_unsafe ( self,
ConfigDict values )

Definition at line 187 of file dynamic_config.py.

Member Data Documentation

◆ _cache_invalidation_state

pytest_userver.plugins.dynamic_config.DynamicConfig._cache_invalidation_state
protected

Definition at line 180 of file dynamic_config.py.

◆ _changelog

pytest_userver.plugins.dynamic_config.DynamicConfig._changelog
protected

Definition at line 182 of file dynamic_config.py.

◆ _config_cache_components

pytest_userver.plugins.dynamic_config.DynamicConfig._config_cache_components
protected

Definition at line 181 of file dynamic_config.py.

◆ _values

pytest_userver.plugins.dynamic_config.DynamicConfig._values
protected

Definition at line 179 of file dynamic_config.py.


The documentation for this class was generated from the following file: