Skip to content

Transforms complex documents like PDFs and Office docs into LLM-ready markdown/JSON for your Agentic workflows.

feat: add magic-pdf-dev case

quyuanfea2b7bd3742
diff --git a/.github/workflows/cli.yml b/.github/workflows/cli.yml
index 04aa69b1..4eae7a65 100644
--- a/.github/workflows/cli.yml
+++ b/.github/workflows/cli.yml
@@ -39,7 +39,7 @@ jobs:
- name: unit test
run: |
cd $GITHUB_WORKSPACE && python tests/clean_coverage.py
- cd $GITHUB_WORKSPACE && export PYTHONPATH=. && coverage run -m pytest tests/test_unit.py --cov=magic_pdf/ --cov-report term-missing --cov-report html
+ cd $GITHUB_WORKSPACE && export PYTHONPATH=. && coverage run -m pytest tests/unittest --cov=magic_pdf/ --cov-report term-missing --cov-report html
cd $GITHUB_WORKSPACE && python tests/get_coverage.py
- name: cli test
run: |
diff --git a/.pytest_cache/.gitignore b/.pytest_cache/.gitignore
new file mode 100644
index 00000000..bc1a1f61
--- /dev/null
+++ b/.pytest_cache/.gitignore
@@ -0,0 +1,2 @@
+# Created by pytest automatically.
+*
diff --git a/.pytest_cache/CACHEDIR.TAG b/.pytest_cache/CACHEDIR.TAG
new file mode 100644
index 00000000..fce15ad7
--- /dev/null
+++ b/.pytest_cache/CACHEDIR.TAG
@@ -0,0 +1,4 @@
+Signature: 8a477f597d28d172789f06886806bc55
+# This file is a cache directory tag created by pytest.
+# For information about cache directory tags, see:
+# https://bford.info/cachedir/spec.html
diff --git a/.pytest_cache/README.md b/.pytest_cache/README.md
new file mode 100644
index 00000000..b89018ce
--- /dev/null
+++ b/.pytest_cache/README.md
@@ -0,0 +1,8 @@
+# pytest cache directory #
+
+This directory contains data from the pytest's cache plugin,
+which provides the `--lf` and `--ff` options, as well as the `cache` fixture.
+
+**Do not** commit this to version control.
+
+See [the docs](https://docs.pytest.org/en/stable/how-to/cache.html) for more information.
diff --git a/.pytest_cache/v/cache/lastfailed b/.pytest_cache/v/cache/lastfailed
new file mode 100644
index 00000000..5af991f6
--- /dev/null
+++ b/.pytest_cache/v/cache/lastfailed
@@ -0,0 +1,4 @@
+{
+ "tests/unittest/test_unit.py": true,
+ "tests/unittest/test_table/test_tablemaster.py": true
+}
\ No newline at end of file
diff --git a/.pytest_cache/v/cache/nodeids b/.pytest_cache/v/cache/nodeids
new file mode 100644
index 00000000..0637a088
--- /dev/null
+++ b/.pytest_cache/v/cache/nodeids
@@ -0,0 +1 @@
+[]
\ No newline at end of file
diff --git a/.pytest_cache/v/cache/stepwise b/.pytest_cache/v/cache/stepwise
new file mode 100644
index 00000000..0637a088
--- /dev/null
+++ b/.pytest_cache/v/cache/stepwise
@@ -0,0 +1 @@
+[]
\ No newline at end of file
diff --git a/magic_pdf/libs/__pycache__/__init__.cpython-312.pyc b/magic_pdf/libs/__pycache__/__init__.cpython-312.pyc
deleted file mode 100644
index 0137df23..00000000
Binary files a/magic_pdf/libs/__pycache__/__init__.cpython-312.pyc and /dev/null differ
diff --git a/magic_pdf/libs/__pycache__/__init__.cpython-39.pyc b/magic_pdf/libs/__pycache__/__init__.cpython-39.pyc
deleted file mode 100644
index c4914656..00000000
Binary files a/magic_pdf/libs/__pycache__/__init__.cpython-39.pyc and /dev/null differ
diff --git a/magic_pdf/libs/__pycache__/version.cpython-312.pyc b/magic_pdf/libs/__pycache__/version.cpython-312.pyc
deleted file mode 100644
index 94c3be46..00000000
Binary files a/magic_pdf/libs/__pycache__/version.cpython-312.pyc and /dev/null differ
diff --git a/magic_pdf/libs/__pycache__/version.cpython-39.pyc b/magic_pdf/libs/__pycache__/version.cpython-39.pyc
deleted file mode 100644
index d4c98aed..00000000
Binary files a/magic_pdf/libs/__pycache__/version.cpython-39.pyc and /dev/null differ
diff --git a/tests/test_unit.py b/tests/unittest/test_unit.py
similarity index 100%
rename from tests/test_unit.py
rename to tests/unittest/test_unit.py