(self)
| 510 | |
| 511 | @patch.dict(os.environ, {"CREWAI_PLUS_URL": "https://custom-url-from-env.com"}) |
| 512 | def test_custom_base_url_from_env(self): |
| 513 | custom_api = PlusAPI("test_key") |
| 514 | self.assertEqual( |
| 515 | custom_api.base_url, |
| 516 | "https://custom-url-from-env.com", |
| 517 | ) |
| 518 | |
| 519 | |
| 520 | @patch("crewai_core.plus_api.PlusAPI._make_request") |