James R. Barlow
|
cff37bf681
|
Make test_german more Windows-friendly
|
2019-12-04 21:01:09 -08:00 |
|
James R. Barlow
|
66d04dd6e3
|
Don't expect filenames to be replicated on NT
|
2019-12-04 21:01:09 -08:00 |
|
James R. Barlow
|
06a1f987d4
|
Use _OCRMYPDF_TEST_PATH for testing and .py stubs to simulate symlinks
|
2019-12-04 21:01:06 -08:00 |
|
James R. Barlow
|
ca9669742d
|
Move gs tests to test_ghostscript
|
2019-12-04 17:14:27 -08:00 |
|
James R. Barlow
|
0cd424ffcb
|
Enforce str-only environment for Windows since it's more strict
|
2019-12-04 17:14:27 -08:00 |
|
James R. Barlow
|
fde550f9a7
|
test: Replace many instances of run_ocrmypdf in subprocess with inline
|
2019-12-04 17:14:27 -08:00 |
|
James R. Barlow
|
37f6f72df3
|
tests: a few Windows fixes
|
2019-12-04 17:13:51 -08:00 |
|
James R. Barlow
|
72d3ee3a87
|
Refactor symlink usage to support Windows
|
2019-12-04 17:13:51 -08:00 |
|
James R. Barlow
|
4d26867dee
|
Delinting
|
2019-09-20 17:17:11 -07:00 |
|
James R. Barlow
|
68c852acec
|
Remove test_tesseract_config_invalid from suite
Also causes problems in CI
|
2019-09-18 13:28:02 -07:00 |
|
James R. Barlow
|
d7b7ca0574
|
v9.0.3 notes; Remove test_tesseract_config_notfound from suite
|
2019-09-05 13:39:43 -07:00 |
|
James R. Barlow
|
19ba3ae011
|
Allow test_german to xfail if deu language is not installed
|
2019-09-03 17:38:54 -07:00 |
|
James R. Barlow
|
feff1e38bb
|
Use context managers to ensure Pillow images are closed
|
2019-09-03 17:19:12 -07:00 |
|
James R. Barlow
|
638eb556ef
|
Reactivate user-words test that was always skipped
|
2019-08-27 14:52:59 -07:00 |
|
James R. Barlow
|
a1a7b973e9
|
tests: split out stdin/stdout tests
|
2019-08-09 01:23:49 -07:00 |
|
James R. Barlow
|
77bbc22c50
|
Ensure --image-dpi on non-image produces a warning
|
2019-08-09 01:08:16 -07:00 |
|
James R. Barlow
|
db4598f76a
|
Add PDF linearization
|
2019-07-27 16:15:48 -07:00 |
|
James R. Barlow
|
6fbeb6347d
|
Merge api (without plugins)
|
2019-07-27 02:04:01 -07:00 |
|
James R. Barlow
|
12769b96e5
|
Drop support for omitting pdfminer.six
|
2019-07-10 13:37:01 -07:00 |
|
James R. Barlow
|
cbeddab35f
|
rename ocrmypdf.run -> ocrmypdf.ocr
|
2019-07-07 02:11:44 -07:00 |
|
James R. Barlow
|
16990890d8
|
Remove "from ocrmypdf import ocrmypdf"
Messes up future imports from ocrmypdf, so don't do it.
|
2019-06-12 17:52:25 -07:00 |
|
James R. Barlow
|
eb5200d26a
|
Change most tests to use ocrmypdf API instead of subprocess
The main benefit of this is code coverage gains can actually follow it.
Also removes most ugly os.environ hacks.
|
2019-06-03 01:45:27 -07:00 |
|
James R. Barlow
|
fb933edc0f
|
Use newer pytest tmp_path API
|
2019-06-01 01:55:51 -07:00 |
|
James R. Barlow
|
c14f62752b
|
Tests: add an API test
|
2019-05-25 16:24:09 -07:00 |
|
James R. Barlow
|
8df1ea2754
|
Mark some slow tests
|
2019-05-17 01:42:27 -07:00 |
|
James R. Barlow
|
e528adc603
|
pylint removal
|
2019-05-17 01:09:06 -07:00 |
|
James R. Barlow
|
5e025c3382
|
Reinstate log level in messages to be closer to old behavior
|
2019-05-15 15:46:36 -07:00 |
|
James R. Barlow
|
486f73d5d6
|
Remove custom logger
|
2019-05-15 02:28:13 -07:00 |
|
mawi
|
c92ccc6134
|
fix: tests
|
2019-04-08 14:57:42 +02:00 |
|
mawi
|
783a128bd1
|
feat: move to sync (none ETL) implementation - remove ruffus
|
2019-04-04 21:02:38 +02:00 |
|
James R. Barlow
|
486dc7e22c
|
Fix some test failures missed in prev commit
|
2019-03-06 13:28:50 -08:00 |
|
James R. Barlow
|
dc616bb507
|
Fix test suite so --clean is not requested when unpaper is not installed
|
2019-03-05 22:33:13 -08:00 |
|
James R. Barlow
|
5da26e4c9c
|
Convert most uses of subprocess.Popen to subprocess.run in test suite
|
2019-03-05 22:25:22 -08:00 |
|
James R. Barlow
|
3f1d9ef99c
|
Fix tests for move to Alpine dockerfile
|
2019-02-26 12:30:21 -08:00 |
|
James R. Barlow
|
7d330afd81
|
Delinting
|
2019-01-02 13:34:45 -08:00 |
|
James R. Barlow
|
c771938907
|
Convert to f-strings where it makes sense
|
2018-12-31 15:01:19 -08:00 |
|
James R. Barlow
|
8c0009c5c8
|
Make pdfminer.six optional
Mainly since the current release of pdfminer.six lacks a sdist, blocking
homebrew packaging. Also in case other distros don't accept pdfminer.six.
|
2018-12-31 01:08:43 -08:00 |
|
James R. Barlow
|
0880b16491
|
Sort imports with isort
|
2018-12-30 01:28:15 -08:00 |
|
James R. Barlow
|
06308a22ce
|
Reformat with black
|
2018-12-30 01:27:49 -08:00 |
|
James R. Barlow
|
a2170ef8d6
|
test: test version check code
|
2018-11-10 00:56:22 -08:00 |
|
James R. Barlow
|
2ac028c759
|
test: Add a basic redo OCR test
|
2018-11-04 15:54:41 -08:00 |
|
James R. Barlow
|
5b8d197812
|
coverage: make it more likely timeout is tested
|
2018-11-02 00:41:15 -07:00 |
|
James R. Barlow
|
de80fb6bc8
|
Fix some failing tests after --redo-ocr changes
|
2018-10-29 11:49:38 -07:00 |
|
James R. Barlow
|
31ef2fe907
|
test: this error message changed case in newer Tesseract
|
2018-10-03 13:58:20 -07:00 |
|
James R. Barlow
|
686207ab7f
|
Check for and reject Adobe LiveCycle Designer PDFs
These are the ones that display a "Please wait..." message.
Closes #296
|
2018-09-13 21:50:51 -07:00 |
|
James R. Barlow
|
c171cb7286
|
Merge img2pdf 0.3.0 fix from v6.2.3
|
2018-08-01 15:17:33 -07:00 |
|
James R. Barlow
|
1d09061130
|
Revert previous commit amd reject input images with alpha channel
Decided on this for simplicity of old release branch.
Modifies baiona.png by stripping
alpha, adds baiona_alpha which
includes the alpha.
|
2018-07-31 23:45:28 -07:00 |
|
James R. Barlow
|
a2203b2447
|
Discard alpha channel when triaging images
|
2018-07-25 22:23:41 -04:00 |
|
James R. Barlow
|
e7d21dd826
|
Skip locale check on Python 3.7
|
2018-07-12 03:03:34 -07:00 |
|
James R. Barlow
|
ea69883386
|
Tests: Speed up a slow test (cherry-picked from v7)
|
2018-07-12 02:47:15 -07:00 |
|