Files
crewAI/tests
Devin AI abd1d341da Address GitHub review feedback: add URL validation, helper functions, and edge case tests
- Add _validate_url() helper function with proper URL validation using urllib.parse
- Add _construct_embeddings_url() helper function to refactor URL construction logic
- Add comprehensive error handling with ValueError for invalid URLs
- Fix test mocking to use correct chromadb import path
- Add edge case tests for invalid URLs with pytest markers
- Organize tests with @pytest.mark.url_configuration and @pytest.mark.error_handling
- Remove unused imports (pytest, MagicMock) to fix lint issues

This addresses all suggestions from joaomdmoura's AI review while maintaining backward compatibility.

Co-Authored-By: João <joao@crewai.com>
2025-07-01 22:07:13 +00:00
..
2025-03-14 03:00:30 -03:00
2023-10-29 19:51:59 -03:00