Repository navigation
Commit a7719ff
authored
* refactor: move the resolution methods into a RevisionManager mixin (ROADMAP.md #73)
Completes the track_changes package split: manager.py keeps only the
RevisionManager class header and __init__, and the 21 accept/reject
methods move verbatim into _ResolutionMixin. base.py gains six stubs for
the cross-cluster callees the cluster reaches (_find_revision_element,
list_revisions, _unhandled_elements, group_revisions, changeset_groups,
_paragraph_mark_rPr).
scripts/check_pure_move.py --base main: 3/3 ok.
* test: cover rejecting a w:pPrChange placed outside w:pPr (ROADMAP.md #73)
The schema-invalid-placement guard in _restore_paragraph_properties had
no test: a record whose parent is not w:pPr is dropped rather than
restored into whatever parent it has. Takes resolution.py to 100%
statement and branch coverage.
1 parent c53ce37 commit a7719ff
4 files changed
Lines changed: 717 additions & 658 deletions
File tree
- docx_editor/track_changes
- tests
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
23 | | - | |
| 23 | + | |
24 | 24 | | |
25 | 25 | | |
26 | 26 | | |
| |||
145 | 145 | | |
146 | 146 | | |
147 | 147 | | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
0 commit comments