Conversation
Tests for all ProxyHandler methods: get, pop, put, delete, getAll, exists, getCount. Mock DbClient to avoid external dependencies. 11 new tests, all passing.
Tests for init (stream/file/platform), stream level override, file level override, log dir creation. 10 new tests, all passing.
…ator (B3) Add tests for httpTimeOutValidator, httpsTimeOutValidator, customValidatorExample. Mock requests.head to avoid real HTTP calls. 7 new tests, all passing.
Add tests for /refresh/ endpoint, JsonResponse.force_type with dict/list, runFlask on Windows. 3 new tests, all passing.
Add tests for DbClient init (redis/ssdb) and all 11 delegation methods. 13 new tests, all passing.
Tests for get/post (success, header merge, retry exhaustion), tree, text, json, user_agent/header. Note: get() retry exhaustion doesn't assign self.response (inconsistent with post()). 13 new tests, all passing.
Tests for --version, schedule, server, fetcher commands using click.testing.CliRunner. 4 new tests, all passing.
Tests for DoValidator.validator (http/https pass/fail, fail_count, region), regionGetter (success/exception), _ThreadChecker.__ifRaw/__ifUse logic. 14 new tests, all passing.
Tests for _get_sources_dir, _load_module (fresh/cache/reload/error), _discover_fetchers (enabled/exclude/sorted/prune), _ThreadFetcher (collect/merge). 11 new tests, all passing.
Tests for startServer/startScheduler (call order), __beforeStart (exit/continue), __checkDBConfig (returns db.test() result). 5 new tests, all passing.
Tests for __runProxyFetch (queue flow), __runProxyCheck (low pool triggers fetch), runScheduler (2 jobs, 5min fetch, 2min check intervals). 6 new tests, all passing.
- test_scheduler.py: pre-mock apscheduler modules before import - test_fetch.py: fix test_import_exception_returns_none for py311 reload path
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #883 +/- ##
===========================================
+ Coverage 61.42% 86.98% +25.55%
===========================================
Files 38 38
Lines 1252 1252
===========================================
+ Hits 769 1089 +320
+ Misses 483 163 -320 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.