Skip to content

Commit 822f21c

Browse files
committed
reduce converting quality criterion
1 parent 55a5e37 commit 822f21c

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

test/test.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,15 +7,15 @@
77
addition, an installation of Microsoft Word is required.
88
99
To leverage the benefit of Github Action, the testing process is divided into three parts:
10-
1. Convert sample pdf to docx with this module.
10+
1. Convert sample pdf to docx with `pdf2docx`.
1111
2. Convert generated docx to pdf for comparing.
12-
3. Convert page to image and compare similarity with python-opencv.
12+
3. Convert page to image and compare similarity with `python-opencv`.
1313
1414
Test scripts on Part One and Three are applied with two test class respectively in this module,
1515
so they could be run seperately with pytest command, e.g.
1616
17-
- pytest -v test.py::TestConversion for Part One
18-
- pytest -v test.py::TestQuality for Part Three
17+
- pytest -vs --no-header test.py::TestConversion for Part One
18+
- pytest -vs --no-header test.py::TestQuality for Part Three
1919
2020
Links on MS Word to PDF conversion:
2121
- https://github.com/cognidox/OfficeToPDF/releases
@@ -302,7 +302,7 @@ class TestQuality:
302302
'demo-table-nested.pdf': 0.84,
303303
'demo-table-shading-highlight.pdf': 0.55,
304304
'demo-table-shading.pdf': 0.80,
305-
'demo-table-stream.pdf': 0.60,
305+
'demo-table-stream.pdf': 0.55,
306306
'demo-table.pdf': 0.90,
307307
'demo-text-alignment.pdf': 0.90,
308308
'demo-text-scaling.pdf': 0.80,

0 commit comments

Comments
 (0)