mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2025-12-12 09:37:04 +01:00
make list checks consistent
Signed-off-by: Florian Brandes <florian.brandes@posteo.de>
This commit is contained in:
parent
0ea5f5d584
commit
793f641af6
2 changed files with 7 additions and 13 deletions
|
|
@ -187,9 +187,9 @@ class TestTasks(DirectoriesMixin, TestCase):
|
|||
)
|
||||
tempdir = tempfile.mkdtemp(prefix="paperless-", dir=settings.SCRATCH_DIR)
|
||||
separators = tasks.scan_file_for_separating_barcodes(test_file)
|
||||
self.assertTrue(separators != [])
|
||||
self.assertTrue(separators)
|
||||
document_list = tasks.separate_pages(test_file, separators)
|
||||
self.assertTrue(document_list != [])
|
||||
self.assertTrue(document_list)
|
||||
for document in document_list:
|
||||
tasks.save_to_dir(document, target_dir=tempdir)
|
||||
target_file1 = os.path.join(tempdir, "patch-code-t-middle_document_0.pdf")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue