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

Method test_custom_base_url_from_env

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

Source from the content-addressed store, hash-verified

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")

Callers

nothing calls this directly

Calls 1

PlusAPIClass · 0.90

Tested by

no test coverage detected