]> git.ipfire.org Git - thirdparty/paperless-ngx.git/commit
Feature: split documents on ASN barcode (#2554)
authorFabian Ohler <muued@users.noreply.github.com>
Wed, 1 Feb 2023 09:13:30 +0000 (10:13 +0100)
committerGitHub <noreply@github.com>
Wed, 1 Feb 2023 09:13:30 +0000 (01:13 -0800)
commit658d372cd2e98d009fabd115855e374d64dca5a9
tree8d58a184388efe75a6267ca0defa5ba003b962a3
parent61f7e73961f74c4aae184f28a11deee7dbc819a5
Feature: split documents on ASN barcode (#2554)

* also split documents when an ASN barcode is found

* linter

* fix test case parameters

* avoid pre-python-3.9 features

* simplify dict-creation in tests

* simplify dict-creation in tests for empty dicts

* Add test cases for the splitting by ASN barcode feature

* deleted supporting files for test case construction
src/documents/barcodes.py
src/documents/tests/samples/barcodes/split-by-asn-1.pdf [new file with mode: 0644]
src/documents/tests/samples/barcodes/split-by-asn-2.pdf [new file with mode: 0644]
src/documents/tests/test_barcodes.py