fix: tests

This commit is contained in:
wolflu05 2024-07-15 12:54:33 +02:00
parent f2c76dc674
commit 09525f4ada
No known key found for this signature in database
GPG Key ID: 9099EFC7C5EB963C

View File

@ -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,
)