userver: pytest_userver.plugins.caches Namespace 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 Namespace Reference

Detailed Description

Fixtures for controlling userver caches.

Classes

class  CacheControl
 
class  CacheControlAction
 
class  CacheControlRequest
 
class  InvalidationState
 
class  UserverCachePlugin
 

Functions

 pytest_configure (config)
 
InvalidationState cache_invalidation_state ()
 A fixture for notifying the service of changes in cache data sources.
 
typing.Dict _userver_cache_control_context ()
 
typing.Dict[str, typing.Callable] _userver_cache_fixtures (pytestconfig, request)
 
typing.Callable[[DaemonInstance], CacheControluserver_cache_control (_userver_cache_control_context, _userver_cache_fixtures, request)
 Userver cache control handler.
 

Function Documentation

◆ _userver_cache_control_context()

typing.Dict pytest_userver.plugins.caches._userver_cache_control_context ( )
protected

Definition at line 166 of file caches.py.

◆ _userver_cache_fixtures()

typing.Dict[str, typing.Callable] pytest_userver.plugins.caches._userver_cache_fixtures ( pytestconfig,
request )
protected

Definition at line 171 of file caches.py.

◆ pytest_configure()

pytest_userver.plugins.caches.pytest_configure ( config)

Definition at line 145 of file caches.py.