MCPcopy Create free account
hub / github.com/crewAIInc/crewAI / test_get_cache_file

Method test_get_cache_file

lib/cli/tests/test_version.py:79–83  ·  view source on GitHub ↗

Test cache file path generation.

(self)

Source from the content-addressed store, hash-verified

77 assert len(version) > 0
78
79 def test_get_cache_file(self) -> None:
80 """Test cache file path generation."""
81 cache_file = _get_cache_file()
82 assert isinstance(cache_file, Path)
83 assert cache_file.name == "version_cache.json"
84
85 def test_is_cache_valid_with_fresh_cache(self) -> None:
86 """Test cache validation with fresh cache."""

Callers

nothing calls this directly

Calls 1

_get_cache_fileFunction · 0.90

Tested by

no test coverage detected