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

Method setUp

lib/cli/tests/test_token_manager.py:22–25  ·  view source on GitHub ↗

Set up test fixtures.

(self, mock_get_key: unittest.mock.MagicMock)

Source from the content-addressed store, hash-verified

20
21 @patch("crewai_core.token_manager.TokenManager._get_or_create_key")
22 def setUp(self, mock_get_key: unittest.mock.MagicMock) -> None:
23 """Set up test fixtures."""
24 mock_get_key.return_value = Fernet.generate_key()
25 self.token_manager = TokenManager()
26
27 @patch("crewai_core.token_manager.TokenManager._read_secure_file")
28 @patch("crewai_core.token_manager.TokenManager._get_or_create_key")

Callers

nothing calls this directly

Calls 1

TokenManagerClass · 0.90

Tested by

no test coverage detected