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

Method test_init

lib/cli/tests/test_plus_api.py:20–25  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

18 self.org_uuid = "test-org-uuid"
19
20 def test_init(self):
21 self.assertEqual(self.api.api_key, self.api_key)
22 self.assertEqual(self.api.headers["Authorization"], f"Bearer {self.api_key}")
23 self.assertEqual(self.api.headers["Content-Type"], "application/json")
24 self.assertIn("CrewAI-CLI/", self.api.headers["User-Agent"])
25 self.assertTrue(self.api.headers["X-Crewai-Version"])
26
27 @patch("crewai_core.plus_api.PlusAPI._make_request")
28 def test_create_evaluation(self, mock_make_request):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected