Definition at line 100 of file caches.py.
|
| __init__ (self, *bool enabled, typing.Dict context, typing.List[str] fixtures, typing.Set[str] caches_disabled) |
|
typing.Tuple[ typing.Dict, typing.List[typing.Tuple[str, CacheControlAction]],] | query_caches (self, typing.Optional[typing.List[str]] cache_names) |
| Query cache control handlers.
|
|
None | commit_staged (self, typing.Dict[str, typing.Any] staged) |
| Apply recently commited state.
|
|
◆ __init__()
pytest_userver.plugins.caches.CacheControl.__init__ |
( |
| self, |
|
|
*bool | enabled, |
|
|
typing.Dict | context, |
|
|
typing.List[str] | fixtures, |
|
|
typing.Set[str] | caches_disabled ) |
◆ commit_staged()
None pytest_userver.plugins.caches.CacheControl.commit_staged |
( |
| self, |
|
|
typing.Dict[str, typing.Any] | staged ) |
Apply recently commited state.
Definition at line 141 of file caches.py.
◆ query_caches()
typing.Tuple[
typing.Dict, typing.List[typing.Tuple[str, CacheControlAction]],
] pytest_userver.plugins.caches.CacheControl.query_caches |
( |
| self, |
|
|
typing.Optional[typing.List[str]] | 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 |
|
protected |
◆ _context
pytest_userver.plugins.caches.CacheControl._context |
|
protected |
◆ _enabled
pytest_userver.plugins.caches.CacheControl._enabled |
|
protected |
◆ _fixtures
pytest_userver.plugins.caches.CacheControl._fixtures |
|
protected |
The documentation for this class was generated from the following file:
- /data/code/userver/testsuite/pytest_plugins/pytest_userver/plugins/caches.py