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

Method setUp

lib/cli/tests/test_token_manager.py:147–155  ·  view source on GitHub ↗

Set up test fixtures with temp directory.

(self)

Source from the content-addressed store, hash-verified

145 """Test atomic file operations directly."""
146
147 def setUp(self) -> None:
148 """Set up test fixtures with temp directory."""
149 self.temp_dir = tempfile.mkdtemp()
150 self.original_get_path = TokenManager._get_secure_storage_path
151
152 def mock_get_path() -> Path:
153 return Path(self.temp_dir)
154
155 TokenManager._get_secure_storage_path = staticmethod(mock_get_path)
156
157 def tearDown(self) -> None:
158 """Clean up temp directory."""

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected