The `fastcom_api_token` in `src/netsleuth/config.py` was previously hardcoded
to a default secret string, leaving it exposed. This patch converts the type
to `SecretStr | None` defaulting to `None`, securing it so it can be managed
safely via environment variables.
It also updates `tier_fastcom` in `src/netsleuth/speed.py` to extract the secret
value properly when provided and gracefully fallback to an empty string. The corresponding
tests in `tests/test_speed.py` have been updated to expect this empty string by default.
Co-authored-by: Horizontal42 <75383519+Horizontal42@users.noreply.github.com>
- 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>