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 222 of file dynamic_config.py.

Public Member Functions

 __init__ (self, *ConfigDict initial_values, typing.Optional[ConfigDict] defaults, 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
 
 _defaults
 
 _cache_invalidation_state
 
 _config_cache_components
 
 _changelog
 

Constructor & Destructor Documentation

◆ __init__()

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

Definition at line 225 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 300 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 256 of file dynamic_config.py.

◆ get_values_unsafe()

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

Definition at line 253 of file dynamic_config.py.

◆ modify()

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

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

◆ remove()

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

Definition at line 283 of file dynamic_config.py.

◆ remove_values()

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

Definition at line 272 of file dynamic_config.py.

◆ set()

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

Definition at line 250 of file dynamic_config.py.

◆ set_values()

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

Definition at line 242 of file dynamic_config.py.

◆ set_values_unsafe()

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

Definition at line 245 of file dynamic_config.py.

Member Data Documentation

◆ _cache_invalidation_state

pytest_userver.plugins.dynamic_config.DynamicConfig._cache_invalidation_state
protected

Definition at line 238 of file dynamic_config.py.

◆ _changelog

pytest_userver.plugins.dynamic_config.DynamicConfig._changelog
protected

Definition at line 240 of file dynamic_config.py.

◆ _config_cache_components

pytest_userver.plugins.dynamic_config.DynamicConfig._config_cache_components
protected

Definition at line 239 of file dynamic_config.py.

◆ _defaults

pytest_userver.plugins.dynamic_config.DynamicConfig._defaults
protected

Definition at line 237 of file dynamic_config.py.

◆ _values

pytest_userver.plugins.dynamic_config.DynamicConfig._values
protected

Definition at line 234 of file dynamic_config.py.


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