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

Method assert_request_with_org_id

lib/cli/tests/test_plus_api.py:150–164  ·  view source on GitHub ↗
(
        self, mock_client_instance, method: str, endpoint: str, **kwargs
    )

Source from the content-addressed store, hash-verified

148 self.assertEqual(response, mock_response)
149
150 def assert_request_with_org_id(
151 self, mock_client_instance, method: str, endpoint: str, **kwargs
152 ):
153 mock_client_instance.request.assert_called_once_with(
154 method,
155 f"{os.getenv('CREWAI_PLUS_URL')}{endpoint}",
156 headers={
157 "Authorization": ANY,
158 "Content-Type": ANY,
159 "User-Agent": ANY,
160 "X-Crewai-Version": ANY,
161 "X-Crewai-Organization-Id": self.org_uuid,
162 },
163 **kwargs,
164 )
165
166 @patch("crewai_core.plus_api.Settings")
167 @patch("crewai_core.plus_api.httpx.Client")

Calls

no outgoing calls

Tested by

no test coverage detected