Skip to content

Develop#883

Merged
jhao104 merged 12 commits into
masterfrom
develop
Jun 15, 2026
Merged

Develop#883
jhao104 merged 12 commits into
masterfrom
develop

Conversation

@jhao104

@jhao104 jhao104 commented Jun 15, 2026

Copy link
Copy Markdown
Owner

No description provided.

jhao104 added 12 commits June 15, 2026 20:40
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

codecov Bot commented Jun 15, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 86.98%. Comparing base (c742f84) to head (a18e011).
⚠️ Report is 2 commits behind head on master.

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.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@jhao104 jhao104 merged commit 9cc0cad into master Jun 15, 2026
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant