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

Detailed Description

Simple dynamic config backend.

Definition at line 168 of file

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


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

Member Function Documentation

◆ _sync_with_service()

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

Definition at line 233 of file

◆ get()

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

Definition at line 198 of file

◆ get_values_unsafe()

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

Definition at line 195 of file

◆ modify()

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

Definition at line 220 of file

◆ 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

◆ remove()

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

Definition at line 216 of file

◆ remove_values()

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

Definition at line 205 of file

◆ set()

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

Definition at line 192 of file

◆ set_values()

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

Definition at line 184 of file

◆ set_values_unsafe()

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

Definition at line 187 of file

Member Data Documentation

◆ _cache_invalidation_state


Definition at line 180 of file

◆ _changelog


Definition at line 182 of file

◆ _config_cache_components


Definition at line 181 of file

◆ _values


Definition at line 179 of file

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