Commit graph

2 commits

Author SHA1 Message Date
google-labs-jules[bot]
73b843404d test: add error and happy path tests for _as_int and _us_to_ms
Added comprehensive test cases for the `_as_int` and `_us_to_ms` utility functions in `tests/test_speed.py`. These tests cover valid string numbers, non-numeric strings, empty strings, and `None` to ensure deterministic data coercion in `netsleuth.speed`.

Co-authored-by: Horizontal42 <75383519+Horizontal42@users.noreply.github.com>
2026-10-07 03:55:39 +00:00
Horizontal42
0f369ded04
🧪 Consolidate speed tests and add ndt7 test coverage (#30)
- Rename and consolidate `test_speed_math.py`, `test_speed_fastcom.py`, and `test_speed_cloudflare.py` into a single, comprehensive `tests/test_speed.py`.
- Add test coverage for `tier_ndt7` testing happy paths, network errors, and websocket exceptions via mocks.
- Ensure 100% pass rate with no regressions.

Co-authored-by: google-labs-jules[bot] <161369871+google-labs-jules[bot]@users.noreply.github.com>
2026-08-19 17:49:36 +03:00