diff options
| author | Michael Williamson <mike@zwobble.org> | 2024-11-30 13:56:29 +0000 |
|---|---|---|
| committer | Michael Williamson <mike@zwobble.org> | 2024-11-30 13:56:29 +0000 |
| commit | fe6fb7ea7380280c8589548fd61b121a917a356a (patch) | |
| tree | 810e648b0132ff4931e91d2cd986689d6600e450 /tests/docx/document_matchers.py | |
| parent | fe7708b65b7d479e795f379e11ab486d2d08af4e (diff) | |
Read complex field checkboxes, always unchecked
Diffstat (limited to 'tests/docx/document_matchers.py')
| -rw-r--r-- | tests/docx/document_matchers.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/docx/document_matchers.py b/tests/docx/document_matchers.py index d2e5d5c..6b02cf9 100644 --- a/tests/docx/document_matchers.py +++ b/tests/docx/document_matchers.py @@ -9,13 +9,14 @@ def create_element_matcher(element_type): instance_of(element_type), has_attrs(**kwargs), ) - + return matcher is_paragraph = create_element_matcher(documents.Paragraph) is_run = create_element_matcher(documents.Run) is_hyperlink = create_element_matcher(documents.Hyperlink) +is_checkbox = create_element_matcher(documents.Checkbox) is_table = create_element_matcher(documents.Table) is_row = create_element_matcher(documents.TableRow) |
