Commit graph

9 commits

Author SHA1 Message Date
google-labs-jules[bot]
09c3317bcf test: add unit test for setup_dir in netsleuth.reputation
Added a test case `test_refresh_netsets_setup_dir` to `tests/test_reputation.py` to ensure that the `setup_dir` nested function in `refresh_netsets` creates the required cache directory.

The test utilizes `unittest.mock.patch` to spy on `pathlib.Path.mkdir`, verifying that the function is called with `parents=True, exist_ok=True`. By setting the mock's `side_effect` to the original `mkdir` function, we ensure side-effects still execute securely, without causing issues if the test suite is run concurrently. All tests pass successfully and test coverage is extended.

Co-authored-by: Horizontal42 <75383519+Horizontal42@users.noreply.github.com>
2026-08-19 11:32:31 +00:00
Andrew Pimenov
387e58949f add specific unit tests for parse_traceroute 2026-08-09 16:21:23 +03:00
Andrew Pimenov
2473822b93 add tests for finalize_hop 2026-08-09 16:13:29 +03:00
Andrew Pimenov
f59f860327 group build_trace_result arguments into TraceConfig dataclass 2026-08-09 16:08:52 +03:00
Andrew Pimenov
483989c1bc rename package netcheck to netsleuth (name taken on pypi) 2026-08-09 11:43:00 +03:00
Andrew Pimenov
6ebc9ac695 traceparse: os dispatcher and trace completion detection 2026-08-08 22:04:34 +03:00
Andrew Pimenov
e8e55278a7 traceparse: bsd/macos parser with multipath hops and annotations 2026-08-08 22:03:37 +03:00
Andrew Pimenov
61c22b218d traceparse: windows tracert parser, shape-based and code-page safe 2026-08-08 22:02:38 +03:00
Andrew Pimenov
5e4c9096a6 traceparse: gnu traceroute parser with per-hop stats 2026-08-08 22:01:30 +03:00