MCPcopy Create free account
hub / github.com/pytest-dev/pytest / get_cached_last_failed

Method get_cached_last_failed

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

Source from the content-addressed store, hash-verified

671 assert "rerun previous" in result.stdout.str()
672
673 def get_cached_last_failed(self, pytester: Pytester) -> List[str]:
674 config = pytester.parseconfigure()
675 assert config.cache is not None
676 return sorted(config.cache.get("cache/lastfailed", {}))
677
678 def test_cache_cumulative(self, pytester: Pytester) -> None:
679 """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