Commit graph

4 commits

Author SHA1 Message Date
google-labs-jules[bot]
177ec93555 🧹 Refactor trace_argv to use a TraceCommandOpts dataclass
Co-authored-by: Horizontal42 <75383519+Horizontal42@users.noreply.github.com>
2026-09-10 08:44:35 +00:00
Andrew Pimenov
94fbfdcb17 fix: use PurePosixPath in os_timezone symlink test so it doesn't break on Windows 2026-08-19 17:48:00 +03:00
Horizontal42
45ce7509d2
🧪 Add test file for cli.py (#21)
* Add initial test suite for cli.py

Co-authored-by: Horizontal42 <75383519+Horizontal42@users.noreply.github.com>

* drop redundant pytest-cov dep addition

---------

Co-authored-by: google-labs-jules[bot] <161369871+google-labs-jules[bot]@users.noreply.github.com>
2026-08-19 17:36:36 +03:00
Horizontal42
44ca9c1786
Add tests for _os_timezone function (#22)
This commit adds a new test file, `tests/test_cli.py`, containing
unit tests for the `_os_timezone` function in `netsleuth.cli`.

The tests cover:
- Happy paths (TZ variable, /etc/localtime symlink, /etc/timezone file)
- The edge case of an `OSError` exception being thrown when reading the
  /etc/timezone file.

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