tests: fix concurrency

This commit is contained in:
James R. Barlow
2021-01-24 23:46:33 -08:00
parent 173c0d1274
commit 7bccb8c748
+1 -1
View File
@@ -173,7 +173,7 @@ def test_false_action_store_true():
def test_no_progress_bar(progress_bar, resources):
opts = make_opts(progress_bar=progress_bar, input_file=(resources / 'trivial.pdf'))
plugin_manager = get_plugin_manager(opts.plugins)
with patch('ocrmypdf._concurrent.tqdm', autospec=True) as tqdmpatch:
with patch('ocrmypdf.builtin_plugins.concurrency.tqdm', autospec=True) as tqdmpatch:
vd._check_options(opts, plugin_manager, set())
pdfinfo = PdfInfo(opts.input_file, progbar=opts.progress_bar)
assert pdfinfo is not None