userver: pytest_userver.plugins.caches.InvalidationState Class Reference
⚠️ This is the documentation for an old userver version. Click here to switch to the latest version.
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages Concepts
pytest_userver.plugins.caches.InvalidationState Class Reference

Public Member Functions

 __init__ (self)
 
None invalidate_all (self)
 
None invalidate (self, typing.Iterable[str] caches)
 
bool should_update_all_caches (self)
 
typing.FrozenSet[str] caches_to_update (self)
 
bool has_caches_to_update (self)
 
None on_caches_updated (self, typing.Iterable[str] caches)
 
None on_all_caches_updated (self)
 
None assign_copy (self, 'InvalidationState' other)
 

Protected Attributes

 _invalidated_caches
 

Detailed Description

Definition at line 10 of file caches.py.

Constructor & Destructor Documentation

◆ __init__()

pytest_userver.plugins.caches.InvalidationState.__init__ (   self)

Definition at line 11 of file caches.py.

Member Function Documentation

◆ assign_copy()

None pytest_userver.plugins.caches.InvalidationState.assign_copy (   self,
'InvalidationState other 
)

Definition at line 44 of file caches.py.

◆ caches_to_update()

typing.FrozenSet[str] pytest_userver.plugins.caches.InvalidationState.caches_to_update (   self)

Definition at line 28 of file caches.py.

◆ has_caches_to_update()

bool pytest_userver.plugins.caches.InvalidationState.has_caches_to_update (   self)

Definition at line 33 of file caches.py.

◆ invalidate()

None pytest_userver.plugins.caches.InvalidationState.invalidate (   self,
typing.Iterable[str]  caches 
)

Definition at line 19 of file caches.py.

◆ invalidate_all()

None pytest_userver.plugins.caches.InvalidationState.invalidate_all (   self)

Definition at line 16 of file caches.py.

◆ on_all_caches_updated()

None pytest_userver.plugins.caches.InvalidationState.on_all_caches_updated (   self)

Definition at line 41 of file caches.py.

◆ on_caches_updated()

None pytest_userver.plugins.caches.InvalidationState.on_caches_updated (   self,
typing.Iterable[str]  caches 
)

Definition at line 37 of file caches.py.

◆ should_update_all_caches()

bool pytest_userver.plugins.caches.InvalidationState.should_update_all_caches (   self)

Definition at line 24 of file caches.py.

Member Data Documentation

◆ _invalidated_caches

pytest_userver.plugins.caches.InvalidationState._invalidated_caches
protected

Definition at line 17 of file caches.py.


The documentation for this class was generated from the following file:
  • /data/code/service_template/third_party/userver/testsuite/pytest_plugins/pytest_userver/plugins/caches.py