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 216 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 219 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 281 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 246 of file dynamic_config.py.

◆ get_values_unsafe()

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

Definition at line 243 of file dynamic_config.py.

◆ modify()

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

Definition at line 268 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 274 of file dynamic_config.py.

◆ remove()

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

Definition at line 264 of file dynamic_config.py.

◆ remove_values()

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

Definition at line 253 of file dynamic_config.py.

◆ set()

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

Definition at line 240 of file dynamic_config.py.

◆ set_values()

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

Definition at line 232 of file dynamic_config.py.

◆ set_values_unsafe()

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

Definition at line 235 of file dynamic_config.py.

Member Data Documentation

◆ _cache_invalidation_state

pytest_userver.plugins.dynamic_config.DynamicConfig._cache_invalidation_state
protected

Definition at line 228 of file dynamic_config.py.

◆ _changelog

pytest_userver.plugins.dynamic_config.DynamicConfig._changelog
protected

Definition at line 230 of file dynamic_config.py.

◆ _config_cache_components

pytest_userver.plugins.dynamic_config.DynamicConfig._config_cache_components
protected

Definition at line 229 of file dynamic_config.py.

◆ _values

pytest_userver.plugins.dynamic_config.DynamicConfig._values
protected

Definition at line 227 of file dynamic_config.py.


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