userver: pytest_userver.plugins.caches Namespace Reference
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages Concepts
pytest_userver.plugins.caches Namespace Reference

Your opinion will help to improve our service

Leave a feedback >

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 (daemon_scoped_mark)
 
typing.Dict[str, typing.Callable] _userver_cache_fixtures (pytestconfig, request)
 
CacheControl userver_cache_control (_userver_cache_control_context, _userver_cache_fixtures, request)
 Userver cache control handler.
 
 userver_allow_all_caches_invalidation ()
 Allows use of invalidate_caches() without cache_names.
 

Function Documentation

◆ _userver_cache_control_context()

typing.Dict pytest_userver.plugins.caches._userver_cache_control_context ( daemon_scoped_mark)
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 144 of file caches.py.

◆ userver_allow_all_caches_invalidation()

pytest_userver.plugins.caches.userver_allow_all_caches_invalidation ( )

Allows use of invalidate_caches() without cache_names.

Definition at line 241 of file caches.py.