mirror of
https://github.com/crewAIInc/crewAI.git
synced 2026-09-22 19:06:25 +00:00
test(platform): update missing token assertion
This commit is contained in:
@@ -164,7 +164,9 @@ class TestCrewaiPlatformTools(unittest.TestCase):
|
||||
with patch.dict("os.environ", {}, clear=True):
|
||||
with self.assertRaises(ValueError) as context:
|
||||
CrewaiPlatformTools(apps=["github"])
|
||||
assert "No platform integration token found" in str(context.exception)
|
||||
assert "No Platform Enterprise Action Auth Token found" in str(
|
||||
context.exception
|
||||
)
|
||||
|
||||
@patch.dict("os.environ", {"CREWAI_PLATFORM_INTEGRATION_TOKEN": "test_token"})
|
||||
@patch(
|
||||
|
||||
Reference in New Issue
Block a user