From 09525f4ada9fe8b4ba1b262c0bd363812d4d5347 Mon Sep 17 00:00:00 2001 From: wolflu05 <76838159+wolflu05@users.noreply.github.com> Date: Mon, 15 Jul 2024 12:54:33 +0200 Subject: [PATCH] fix: tests --- .../plugin/builtin/barcodes/test_inventree_barcode.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/backend/InvenTree/plugin/builtin/barcodes/test_inventree_barcode.py b/src/backend/InvenTree/plugin/builtin/barcodes/test_inventree_barcode.py index da9301f496..40ad5d5b91 100644 --- a/src/backend/InvenTree/plugin/builtin/barcodes/test_inventree_barcode.py +++ b/src/backend/InvenTree/plugin/builtin/barcodes/test_inventree_barcode.py @@ -55,7 +55,8 @@ class TestInvenTreeBarcode(InvenTreeAPITestCase): def generate(self, model: str, pk: int, expected_code: int): """Generate a barcode for a given model instance.""" return self.post( - reverse('api-barcode-generate', kwargs={'model': model, 'pk': pk}), + reverse('api-barcode-generate'), + data={'model': model, 'pk': pk}, expected_code=expected_code, )