Add missing fixture to test_unpaper
This commit is contained in:
@@ -87,11 +87,6 @@ def spoof_qpdf_always_error(tmpdir_factory):
|
||||
return spoof(tmpdir_factory, qpdf='qpdf_dummy_return2.py')
|
||||
|
||||
|
||||
@pytest.fixture(scope='session')
|
||||
def spoof_unpaper_oldversion(tmpdir_factory):
|
||||
return spoof(tmpdir_factory, unpaper='unpaper_oldversion.py')
|
||||
|
||||
|
||||
def test_quick(spoof_tesseract_cache, resources, outpdf):
|
||||
check_ocrmypdf(resources / 'ccitt.pdf', outpdf, env=spoof_tesseract_cache)
|
||||
|
||||
|
||||
@@ -27,6 +27,10 @@ check_ocrmypdf = pytest.helpers.check_ocrmypdf
|
||||
run_ocrmypdf = pytest.helpers.run_ocrmypdf
|
||||
spoof = pytest.helpers.spoof
|
||||
|
||||
@pytest.fixture(scope='session')
|
||||
def spoof_unpaper_oldversion(tmpdir_factory):
|
||||
return spoof(tmpdir_factory, unpaper='unpaper_oldversion.py')
|
||||
|
||||
|
||||
@pytest.mark.skipif(True,
|
||||
reason="needs new fixture implementation")
|
||||
|
||||
Reference in New Issue
Block a user