(
self, mock_client_instance, method: str, endpoint: str, **kwargs
)
| 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") |
no outgoing calls
no test coverage detected