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-19 02:08:58 +03:00
2025-10-19 17:01:37 +03:00
2025-10-22 21:45:51 +03:00
2025-10-19 15:50:25 +03:00
2025-10-22 22:08:02 +03:00
2025-10-19 15:19:53 +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-22 22:46:02 +03:00
2025-10-22 22:08:02 +03:00
2025-10-22 22:53:49 +03:00
2025-10-23 21:43:05 +03:00
2025-10-23 21:43:05 +03:00
2025-10-23 21:43:05 +03:00
2025-10-19 16:56:55 -07:00
2025-10-22 22:08:02 +03:00
2025-10-22 22:08:02 +03:00