Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion dev_requirements/requirements-formatting.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
#
# pip-compile requirements-formatting.in
#
black==23.12.1
black==24.1.1
# via -r dev_requirements/requirements-formatting.in
click==8.1.7
# via black
Expand Down
1 change: 1 addition & 0 deletions main.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
"""
a small click based script to extract all EBDs from a given file.
"""

# invoke like this:
# main.py -i unittests/test_data/ebd20230619_v33.docx
# -o ../machine-readable_entscheidungsbaumdiagramme/FV2304
Expand Down
1 change: 1 addition & 0 deletions src/ebddocx2table/__init__.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
"""
Contains high level functions to process .docx files
"""

import itertools
import logging
import re
Expand Down
1 change: 1 addition & 0 deletions src/ebddocx2table/docxtableconverter.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
"""
This module converts tables read from the docx file into a format that is easily accessible (but still a table).
"""

import logging
import re
from enum import Enum
Expand Down
1 change: 1 addition & 0 deletions unittests/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
This file is here, because this allows for best de-coupling of tests and application/library logic.
Further reading: https://docs.pytest.org/en/6.2.x/goodpractices.html#tests-outside-application-code
"""

from pathlib import Path
from typing import Dict, List, Tuple

Expand Down
2 changes: 1 addition & 1 deletion unittests/test_highlevel.py
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ def test_get_ebd_keys(
[
pytest.param("ebd20221128.docx", "E_0003", 1, id="E_0003: One table on only one page"),
pytest.param("ebd20221128.docx", "E_0015", 1, id="E_0015: one table spanning multiple pages"),
pytest.param("ebd20221128.docx", "E_0901", 2, id="E_0901: multiple tables on multiple pages")
pytest.param("ebd20221128.docx", "E_0901", 2, id="E_0901: multiple tables on multiple pages"),
# pytest.param("ebd20221128.docx", "E_0461"), # https://github.com/Hochfrequenz/ebd_docx_to_table/issues/6
],
)
Expand Down