userver: pytest_userver.plugins.caches Namespace Reference
Loading...
Searching...
No Matches
pytest_userver.plugins.caches Namespace Reference

Detailed Description

Fixtures for controlling userver caches.

Classes

class  UserverCachePlugin
class  InvalidationState
class  CacheControlAction
class  CacheControlRequest
class  CacheControl

Functions

 pytest_configure (config)
InvalidationState cache_invalidation_state ()
 A fixture for notifying the service of changes in cache data sources.
dict[Any, Any] _userver_cache_control_context (daemon_scoped_mark)
dict[str, Callable[[...], Any]] _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()

dict[Any, Any] _userver_cache_control_context ( daemon_scoped_mark)
protected

Definition at line 167 of file caches.py.

◆ _userver_cache_fixtures()

dict[str, Callable[[...], Any]] _userver_cache_fixtures ( pytestconfig,
request )
protected

Definition at line 172 of file caches.py.

◆ pytest_configure()

pytest_configure ( config)

Definition at line 145 of file caches.py.

◆ userver_allow_all_caches_invalidation()

userver_allow_all_caches_invalidation ( )

Allows use of invalidate_caches() without cache_names.

Definition at line 238 of file caches.py.