Commit Graph

4 Commits

Author SHA1 Message Date
Devin AI
3129e7a4bc fix: Update I18N mocking strategy to use constructor mock
- Replace @patch('load_prompts') with @patch('I18N') decorator
- Mock I18N constructor to return MagicMock instance
- Prevent 'Prompt file None not found' errors during Agent instantiation
- Follow same mocking pattern as other tests in codebase

Co-Authored-By: João <joao@crewai.com>
2025-06-18 11:37:24 +00:00
Devin AI
469ddea415 fix: Update I18N mocking strategy for Docker validation tests
- Replace @patch decorator with module-level load_prompts mocking
- Prevent 'Prompt file None not found' errors during Agent instantiation
- Ensure tests are isolated and don't require external prompt files

Co-Authored-By: João <joao@crewai.com>
2025-06-18 11:28:45 +00:00
Devin AI
968d0a0e2c fix: Add proper I18N mocking to Docker validation tests
- Mock I18N initialization to prevent 'Prompt file None not found' errors
- Follow existing test patterns for Agent dependency mocking
- Ensure tests are isolated and don't require external files

Co-Authored-By: João <joao@crewai.com>
2025-06-18 11:17:09 +00:00
Devin AI
6938ca5a33 fix: Docker validation in container environments
- Add CREWAI_SKIP_DOCKER_VALIDATION environment variable
- Detect container environments and skip Docker validation
- Improve error messages with alternative solutions
- Add comprehensive tests for Docker validation scenarios
- Maintain backward compatibility

Fixes #3028

Co-Authored-By: João <joao@crewai.com>
2025-06-18 11:09:11 +00:00