Edgar I.
e88a4b0fcc
fix: add retries, markdown validation, and test mocking to downloader
- Implement retry logic with exponential backoff (default: 3 retries)
- Add markdown validation to check for markdown patterns
- Replace flaky HTTP tests with comprehensive mocking
- Add 10 test cases covering all scenarios:
- Successful download
- Timeout with retry
- Empty content rejection (<100 chars)
- Non-markdown rejection
- HTTP error handling
- Exponential backoff validation
- Markdown pattern detection
- Custom timeout parameter
- Custom max_retries parameter
- User agent header verification
All tests now pass reliably (10/10) without making real HTTP requests.
2025-10-24 18:26:10 +04:00
..
2025-10-22 22:46:02 +03:00
2025-10-22 21:38:56 +03:00
2025-10-22 21:45:51 +03:00
2025-10-22 22:46:02 +03:00
2025-10-19 20:48:03 +03:00
2025-10-24 18:26:10 +04:00
2025-10-24 18:26:10 +04:00
2025-10-24 18:26:10 +04:00
2025-10-19 20:48:03 +03:00
2025-10-22 21:45:51 +03:00
2025-10-23 21:43:05 +03:00
2025-10-23 00:23:16 +03:00
2025-10-19 15:19:53 +03:00
2025-10-19 20:48:03 +03:00
2025-10-19 22:17:23 +03:00
2025-10-19 22:17:23 +03:00