MCPcopy
hub / github.com/pytest-dev/pytest / get_cached_last_failed

Method get_cached_last_failed

testing/test_cacheprovider.py:698–701  ·  view source on GitHub ↗
(self, pytester: Pytester)

Source from the content-addressed store, hash-verified

696 assert "rerun previous" in result.stdout.str()
697
698 def get_cached_last_failed(self, pytester: Pytester) -> list[str]:
699 config = pytester.parseconfigure()
700 assert config.cache is not None
701 return sorted(config.cache.get("cache/lastfailed", {}))
702
703 def test_cache_cumulative(self, pytester: Pytester) -> None:
704 """Test workflow where user fixes errors gradually file by file using --lf."""

Calls 2

parseconfigureMethod · 0.45
getMethod · 0.45

Tested by

no test coverage detected