Repository navigation
Commit 7635483
committed
test: increase code coverage from 74% to 98%
Add comprehensive tests for all modules:
- xml_editor.py: error handling, utility functions, edge cases
- track_changes.py: revision parsing, accept/reject operations
- comments.py: comment operations, error handling
- workspace.py: sync checks, error paths
- document.py: settings updates, relationship handling
- ooxml/pack.py and unpack.py: error cases
Mark LibreOffice validation code as pragma: no cover since it
requires external tools not available in CI.1 parent d21cfe1 commit 7635483
8 files changed
Lines changed: 3709 additions & 2 deletions
File tree
- docx_editor/ooxml
- tests
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
54 | 54 | | |
55 | 55 | | |
56 | 56 | | |
| 57 | + | |
57 | 58 | | |
58 | 59 | | |
59 | 60 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
50 | 50 | | |
51 | 51 | | |
52 | 52 | | |
53 | | - | |
| 53 | + | |
54 | 54 | | |
55 | 55 | | |
56 | 56 | | |
57 | 57 | | |
58 | 58 | | |
59 | 59 | | |
60 | 60 | | |
61 | | - | |
| 61 | + | |
62 | 62 | | |
63 | 63 | | |
64 | 64 | | |
| |||
0 commit comments