add config options and documentation

Signed-off-by: florian on nixos (Florian Brandes) <florian.brandes@posteo.de>
This commit is contained in:
florian on nixos (Florian Brandes)
2022-03-26 10:16:23 +01:00
committed by Florian Brandes
parent 73c39cdd58
commit e34bd748fc
5 changed files with 39 additions and 8 deletions

View File

@@ -98,7 +98,8 @@ class TestTasks(DirectoriesMixin, TestCase):
"patch-code-t.pbm",
)
img = Image.open(test_file)
self.assertEqual(tasks.barcode_reader(img), ["b'PATCHT'"])
separator_barcode = "b'" + str(settings.CONSUMER_BARCODE_STRING) + "'"
self.assertEqual(tasks.barcode_reader(img), [separator_barcode])
def test_barcode_reader2(self):
test_file = os.path.join(os.path.dirname(__file__), "samples", "simple.png")