Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: make tests lighter #228

Merged
merged 2 commits into from
Nov 4, 2024
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 .github/workflows/checks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ jobs:
run: |
for file in docs/examples/*.py; do
# Skip batch_convert.py
if [[ "$(basename "$file")" == "batch_convert.py" ]]; then
if [[ "$(basename "$file")" =~ ^(batch_convert|minimal|export_multimodal|custom_convert|develop_picture_enrichment).py ]]; then
echo "Skipping $file"
continue
fi
Expand Down
3 changes: 1 addition & 2 deletions docs/examples/batch_convert.py
Original file line number Diff line number Diff line change
Expand Up @@ -106,8 +106,7 @@ def main():
Path("./tests/data/2206.01062.pdf"),
Path("./tests/data/2203.01017v2.pdf"),
Path("./tests/data/2305.03393v1.pdf"),
Path("./tests/data/redp5110.pdf"),
Path("./tests/data/redp5695.pdf"),
Path("./tests/data/redp5110_sampled.pdf"),
]

# buf = BytesIO(Path("./test/data/2206.01062.pdf").open("rb").read())
Expand Down
1,883 changes: 0 additions & 1,883 deletions tests/data/groundtruth/docling_v1/redp5110.doctags.txt

This file was deleted.

1 change: 0 additions & 1 deletion tests/data/groundtruth/docling_v1/redp5110.json

This file was deleted.

2,732 changes: 0 additions & 2,732 deletions tests/data/groundtruth/docling_v1/redp5110.md

This file was deleted.

1 change: 0 additions & 1 deletion tests/data/groundtruth/docling_v1/redp5110.pages.json

This file was deleted.

299 changes: 299 additions & 0 deletions tests/data/groundtruth/docling_v1/redp5110_sampled.doctags.txt

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions tests/data/groundtruth/docling_v1/redp5110_sampled.json

Large diffs are not rendered by default.

421 changes: 421 additions & 0 deletions tests/data/groundtruth/docling_v1/redp5110_sampled.md

Large diffs are not rendered by default.

Large diffs are not rendered by default.

460 changes: 0 additions & 460 deletions tests/data/groundtruth/docling_v1/redp5695.doctags.txt

This file was deleted.

1 change: 0 additions & 1 deletion tests/data/groundtruth/docling_v1/redp5695.json

This file was deleted.

726 changes: 0 additions & 726 deletions tests/data/groundtruth/docling_v1/redp5695.md

This file was deleted.

1 change: 0 additions & 1 deletion tests/data/groundtruth/docling_v1/redp5695.pages.json

This file was deleted.

1,883 changes: 0 additions & 1,883 deletions tests/data/groundtruth/docling_v2/redp5110.doctags.txt

This file was deleted.

1 change: 0 additions & 1 deletion tests/data/groundtruth/docling_v2/redp5110.json

This file was deleted.

2,615 changes: 0 additions & 2,615 deletions tests/data/groundtruth/docling_v2/redp5110.md

This file was deleted.

1 change: 0 additions & 1 deletion tests/data/groundtruth/docling_v2/redp5110.pages.json

This file was deleted.

299 changes: 299 additions & 0 deletions tests/data/groundtruth/docling_v2/redp5110_sampled.doctags.txt

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions tests/data/groundtruth/docling_v2/redp5110_sampled.json

Large diffs are not rendered by default.

395 changes: 395 additions & 0 deletions tests/data/groundtruth/docling_v2/redp5110_sampled.md

Large diffs are not rendered by default.

Large diffs are not rendered by default.

460 changes: 0 additions & 460 deletions tests/data/groundtruth/docling_v2/redp5695.doctags.txt

This file was deleted.

1 change: 0 additions & 1 deletion tests/data/groundtruth/docling_v2/redp5695.json

This file was deleted.

666 changes: 0 additions & 666 deletions tests/data/groundtruth/docling_v2/redp5695.md

This file was deleted.

1 change: 0 additions & 1 deletion tests/data/groundtruth/docling_v2/redp5695.pages.json

This file was deleted.

Binary file removed tests/data/redp5110.pdf
Binary file not shown.
Binary file added tests/data/redp5110_sampled.pdf
Binary file not shown.
Binary file removed tests/data/redp5695.pdf
Binary file not shown.
2 changes: 1 addition & 1 deletion tests/test_backend_docling_parse.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ def _get_backend(pdf_doc):


def test_text_cell_counts():
pdf_doc = Path("./tests/data/redp5695.pdf")
pdf_doc = Path("./tests/data/redp5110_sampled.pdf")

doc_backend = _get_backend(pdf_doc)

Expand Down
2 changes: 1 addition & 1 deletion tests/test_backend_docling_parse_v2.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ def _get_backend(pdf_doc):


def test_text_cell_counts():
pdf_doc = Path("./tests/data/redp5695.pdf")
pdf_doc = Path("./tests/data/redp5110_sampled.pdf")

doc_backend = _get_backend(pdf_doc)

Expand Down
2 changes: 1 addition & 1 deletion tests/test_backend_pdfium.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ def _get_backend(pdf_doc):


def test_text_cell_counts():
pdf_doc = Path("./tests/data/redp5695.pdf")
pdf_doc = Path("./tests/data/redp5110_sampled.pdf")

doc_backend = _get_backend(pdf_doc)

Expand Down
Loading