rkn-block-checker/tests
Vladislav Yaroslavlev 48148d9e28
fix: security holes, misclassifications, and edge cases
Phase 1 (critical): Handle sys_ip=OK/doh_ip=None gracefully, make
--white --black mutually exclusive, downgrade confidence to MEDIUM
on DNS mismatch with OK verdict.

Phase 2 (medium): Catch ConnectionAbortedError in check_tls, fix JSON
mode get_self_info ignoring --timeout, count TIMEOUT separately in
summary (70% threshold uses only real blocks), tighten overly broad
stub markers, validate --workers and --timeout.

Phase 3 (low): Add --no-self-info flag, fix table alignment with ANSI
colors, handle unexpected exceptions in iter_check_urls futures.

Phase 4 (tests): Add test_cli.py, test_dns.py, test_network.py,
test_http.py; extend test_core.py, test_stub_detection.py,
test_summary.py, test_streaming.py. All 89 tests passing.
2026-05-06 14:39:33 +03:00
..
__init__.py initial commit 2026-04-14 21:42:11 +03:00
test_cli.py fix: security holes, misclassifications, and edge cases 2026-05-06 14:39:33 +03:00
test_core.py fix: security holes, misclassifications, and edge cases 2026-05-06 14:39:33 +03:00
test_dns.py fix: security holes, misclassifications, and edge cases 2026-05-06 14:39:33 +03:00
test_http.py fix: security holes, misclassifications, and edge cases 2026-05-06 14:39:33 +03:00
test_lists.py feat: support custom white/black list files via --white-file / --black-file 2026-05-06 11:26:53 +03:00
test_models.py tests: CheckResult json round-trip 2026-04-24 22:24:07 +03:00
test_network.py fix: security holes, misclassifications, and edge cases 2026-05-06 14:39:33 +03:00
test_streaming.py fix: security holes, misclassifications, and edge cases 2026-05-06 14:39:33 +03:00
test_stub_detection.py fix: security holes, misclassifications, and edge cases 2026-05-06 14:39:33 +03:00
test_summary.py fix: security holes, misclassifications, and edge cases 2026-05-06 14:39:33 +03:00