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

Detailed Description

Definition at line 107 of file dynamic_config.py.

Public Member Functions

 __init__ (self)
 
str service_timestamp (self)
 
str next_timestamp (self)
 
_ChangelogEntry commit (self)
 Commit staged changed if any and return last commited entry.
 
Updates get_updated_since (self, ConfigDict values, str updated_since, typing.Optional[typing.List[str]] ids=None)
 
 add_entries (self, ConfigDict values)
 
 rollback (self, ConfigDict defaults)
 

Public Attributes

 timestamp
 
 commited_entries
 
 staged_entry
 

Static Public Attributes

datetime timestamp .datetime
 
typing commited_entries .List[_ChangelogEntry]
 
_ChangelogEntry staged_entry
 

Protected Member Functions

typing.Tuple[ConfigDict, typing.List[str]] _get_updated_since (self, ConfigDict values, str updated_since)
 
 _do_rollback (self, ConfigDict defaults)
 

Constructor & Destructor Documentation

◆ __init__()

pytest_userver.plugins.dynamic_config._Changelog.__init__ ( self)

Definition at line 112 of file dynamic_config.py.

Member Function Documentation

◆ _do_rollback()

pytest_userver.plugins.dynamic_config._Changelog._do_rollback ( self,
ConfigDict defaults )
protected

Definition at line 189 of file dynamic_config.py.

◆ _get_updated_since()

typing.Tuple[ConfigDict, typing.List[str]] pytest_userver.plugins.dynamic_config._Changelog._get_updated_since ( self,
ConfigDict values,
str updated_since )
protected

Definition at line 153 of file dynamic_config.py.

◆ add_entries()

pytest_userver.plugins.dynamic_config._Changelog.add_entries ( self,
ConfigDict values )

Definition at line 179 of file dynamic_config.py.

◆ commit()

_ChangelogEntry pytest_userver.plugins.dynamic_config._Changelog.commit ( self)

Commit staged changed if any and return last commited entry.

Definition at line 128 of file dynamic_config.py.

◆ get_updated_since()

Updates pytest_userver.plugins.dynamic_config._Changelog.get_updated_since ( self,
ConfigDict values,
str updated_since,
typing.Optional[typing.List[str]] ids = None )

Definition at line 138 of file dynamic_config.py.

◆ next_timestamp()

str pytest_userver.plugins.dynamic_config._Changelog.next_timestamp ( self)

Definition at line 124 of file dynamic_config.py.

◆ rollback()

pytest_userver.plugins.dynamic_config._Changelog.rollback ( self,
ConfigDict defaults )

Definition at line 183 of file dynamic_config.py.

◆ service_timestamp()

str pytest_userver.plugins.dynamic_config._Changelog.service_timestamp ( self)

Definition at line 121 of file dynamic_config.py.

Member Data Documentation

◆ commited_entries [1/2]

typing pytest_userver.plugins.dynamic_config._Changelog.commited_entries .List[_ChangelogEntry]
static

Definition at line 109 of file dynamic_config.py.

◆ commited_entries [2/2]

pytest_userver.plugins.dynamic_config._Changelog.commited_entries

Definition at line 116 of file dynamic_config.py.

◆ staged_entry [1/2]

_ChangelogEntry pytest_userver.plugins.dynamic_config._Changelog.staged_entry
static

Definition at line 110 of file dynamic_config.py.

◆ staged_entry [2/2]

pytest_userver.plugins.dynamic_config._Changelog.staged_entry

Definition at line 117 of file dynamic_config.py.

◆ timestamp [1/2]

datetime pytest_userver.plugins.dynamic_config._Changelog.timestamp .datetime
static

Definition at line 108 of file dynamic_config.py.

◆ timestamp [2/2]

pytest_userver.plugins.dynamic_config._Changelog.timestamp

Definition at line 113 of file dynamic_config.py.


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