(fail_import: int, fail_run: int)
| 532 | ) |
| 533 | |
| 534 | def rlf(fail_import: int, fail_run: int) -> Any: |
| 535 | monkeypatch.setenv(class="st">"FAILIMPORT", str(fail_import)) |
| 536 | monkeypatch.setenv(class="st">"FAILTEST", str(fail_run)) |
| 537 | |
| 538 | pytester.runpytest(class="st">"-q") |
| 539 | config = pytester.parseconfigure() |
| 540 | assert config.cache is not None |
| 541 | lastfailed = config.cache.get(class="st">"cache/lastfailed", -1) |
| 542 | return lastfailed |
| 543 | |
| 544 | lastfailed = rlf(fail_import=0, fail_run=0) |
| 545 | assert lastfailed == -1 |
nothing calls this directly
no test coverage detected