Skip to content

Commit 5443402

Browse files
gijzelaerrclaude
andauthored
Add tests to improve coverage from 78% to 84% (gijzelaerr#642)
* Add tests to improve coverage from 78% to ~85% Add test suites for untested code paths that don't require a real PLC: - error.py: error routing, check_error(), error_wrap() decorator - connection.py: socket mocking, COTP parsing, exception paths - server/__main__.py: CLI entrypoint test - s7protocol.py: response parser tests with crafted PDUs - util/db.py: DB/Row type conversions, dict-like interface Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com> * Fix test_server_cli.py when click is not installed Use pytest.importorskip to gracefully skip CLI tests when click (an optional dependency) is not available in the test environment. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com> --------- Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 4bded55 commit 5443402

File tree

5 files changed

+1767
-0
lines changed

5 files changed

+1767
-0
lines changed

0 commit comments

Comments
 (0)