The cache's state for one pytest session.
Definition at line 1195 of file cache.py.
◆ __init__()
| None oct.testing.cache._CacheRun.__init__ |
( |
| self, |
|
|
Any | config ) |
◆ _candidates()
| tuple[str, ...] oct.testing.cache._CacheRun._candidates |
( |
| self, |
|
|
ParallelManifest | manifest ) |
|
protected |
Eligible files this invocation's arguments actually reach.
Definition at line 1257 of file cache.py.
◆ _in_scope()
| tuple[str, ...] oct.testing.cache._CacheRun._in_scope |
( |
| self, |
|
|
tuple[str, ...] | paths ) |
|
protected |
Paths this invocation's arguments actually reach.
Definition at line 1237 of file cache.py.
◆ _manifest_path()
| Path | None oct.testing.cache._CacheRun._manifest_path |
( |
| self | ) |
|
|
protected |
The classification to read: pinned, else discovered.
Definition at line 1213 of file cache.py.
◆ _workspace_roots()
| tuple[Path, ...] oct.testing.cache._CacheRun._workspace_roots |
( |
| self | ) |
|
|
protected |
The subproject roots the key treats as first party.
Definition at line 1222 of file cache.py.
◆ decision()
This run's decision, computed once.
Definition at line 1307 of file cache.py.
◆ prepare()
| None oct.testing.cache._CacheRun.prepare |
( |
| self | ) |
|
Load the manifest and the store, and take the decision.
A run that was not asked for the cache does NOTHING here: it
loads no manifest, opens no store and builds no key. Being off
has to be free, or every uncached suite - every gate run -
would pay for a mechanism it never consults.
Definition at line 1261 of file cache.py.
◆ record()
| None oct.testing.cache._CacheRun.record |
( |
| self, |
|
|
Any | terminalreporter ) |
Write the store from what the run actually reported (P2).
Definition at line 1320 of file cache.py.
◆ store()
| CacheStore | None oct.testing.cache._CacheRun.store |
( |
| self | ) |
|
This run's store, or None when there is no classification.
Definition at line 1314 of file cache.py.
◆ _decision
| CacheDecision | None oct.testing.cache._CacheRun._decision = None |
|
protected |
◆ _prepared
| bool oct.testing.cache._CacheRun._prepared = False |
|
protected |
◆ _store
| CacheStore | None oct.testing.cache._CacheRun._store = None |
|
protected |
◆ clearing
| oct.testing.cache._CacheRun.clearing |
Initial value:= bool(
config.getoption(CACHE_CLEAR_OPTION, default=False),
)
Definition at line 1202 of file cache.py.
◆ config
| oct.testing.cache._CacheRun.config = config |
◆ enabled
| str oct.testing.cache._CacheRun.enabled = "1" |
◆ is_worker
| oct.testing.cache._CacheRun.is_worker = hasattr(config, "workerinput") |
◆ root
| oct.testing.cache._CacheRun.root = Path(str(config.rootpath)) |
The documentation for this class was generated from the following file:
- G:/PythonApps/option_c/oct/oct/testing/cache.py