test(platform): update missing token assertion

This commit is contained in:
ViditOstwal
2026-09-18 12:55:17 +05:30
committed by GitHub
parent a1670b13b1
commit f84538e5ee

View File

@@ -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(