Composio powers 1000+ toolkits, tool search, context management, authentication, and a sandboxed workbench to help you build AI agents that turn intent into action.
Mirrored from https://github.com/Camo67/composio.git
Synced Nov 22, 10:45 UTC
feat(py): fix tests
jkomyno committed
Feb 2, 2026 at 20:26 UTC
cd4539e5df914ff3b25a498edf63b3a2af6e7b01
1 file changed
+3
-1
python/tests/test_files.py
+3
-1
@@ -1647,8 +1647,10 @@ class TestFetchFileFromUrlWithTruncation:
1647
"""Long real-world URLs should be handled correctly."""
1648
mock_response = MagicMock()
1649
mock_response.ok = True
1650
- mock_response.content = b"test content"
1650
+ mock_response.status_code = 200
1651
mock_response.headers = {"content-type": "application/pdf"}
1652
+ mock_response.iter_content.return_value = [b"test content"]
1653
+ mock_response.close = MagicMock()
1654
mock_get.return_value = mock_response
1655
1656
# Real-world long URL example (no extension, relies on mimetype)