Definition at line 100 of file caches.py.
|
| | __init__ (self, *, bool enabled, dict[Any, Any] context, dict[str, Callable[[...], Any]] fixtures, Set[str] caches_disabled) |
| |
| tuple[dict[Any, Any], list[tuple[str, CacheControlAction]]] | query_caches (self, list[str]|None cache_names) |
| | Query cache control handlers.
|
| |
| None | commit_staged (self, dict[str, Any] staged) |
| | Apply recently committed state.
|
| |
◆ __init__()
| pytest_userver.plugins.caches.CacheControl.__init__ |
( |
| self, |
|
|
* | , |
|
|
bool | enabled, |
|
|
dict[Any, Any] | context, |
|
|
dict[str, Callable[[...], Any]] | fixtures, |
|
|
Set[str] | caches_disabled ) |
◆ commit_staged()
| None pytest_userver.plugins.caches.CacheControl.commit_staged |
( |
| self, |
|
|
dict[str, Any] | staged ) |
Apply recently committed state.
Definition at line 140 of file caches.py.
◆ query_caches()
| tuple[dict[Any, Any], list[tuple[str, CacheControlAction]]] pytest_userver.plugins.caches.CacheControl.query_caches |
( |
| self, |
|
|
list[str] | None | cache_names ) |
Query cache control handlers.
Returns pair (staged, [(cache_name, action), ...])
Definition at line 114 of file caches.py.
◆ _caches_disabled
| pytest_userver.plugins.caches.CacheControl._caches_disabled = caches_disabled |
|
protected |
◆ _context
| pytest_userver.plugins.caches.CacheControl._context = context |
|
protected |
◆ _enabled
| pytest_userver.plugins.caches.CacheControl._enabled = enabled |
|
protected |
◆ _fixtures
| pytest_userver.plugins.caches.CacheControl._fixtures = fixtures |
|
protected |
The documentation for this class was generated from the following file:
- /data/code/userver/testsuite/pytest_plugins/pytest_userver/plugins/caches.py