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

Method tearDown

lib/cli/tests/test_token_manager.py:157–161  ·  view source on GitHub ↗

Clean up temp directory.

(self)

Source from the content-addressed store, hash-verified

155 TokenManager._get_secure_storage_path = staticmethod(mock_get_path)
156
157 def tearDown(self) -> None:
158 """Clean up temp directory."""
159 TokenManager._get_secure_storage_path = staticmethod(self.original_get_path)
160 import shutil
161 shutil.rmtree(self.temp_dir, ignore_errors=True)
162
163 @patch("crewai_core.token_manager.TokenManager._get_or_create_key")
164 def test_atomic_create_new_file(

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected