mirror of
https://github.com/inventree/InvenTree
synced 2024-08-30 18:33:04 +00:00
fix: tests
This commit is contained in:
parent
f2c76dc674
commit
09525f4ada
@ -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,
|
||||
)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user