update check

This commit is contained in:
Matthias 2022-05-19 01:06:14 +02:00
parent 4d4a164923
commit c97a2531a0
No known key found for this signature in database
GPG Key ID: AB6D0E6C4CB65093

View File

@ -11,6 +11,7 @@ from InvenTree.helpers import validateFilterString
from InvenTree.api_tester import InvenTreeAPITestCase
from .models import StockItemLabel, StockLocationLabel, PartLabel
from part.models import Part
from stock.models import StockItem
@ -88,7 +89,7 @@ class LabelTest(InvenTreeAPITestCase):
"""Test label rendering"""
labels = PartLabel.objects.all()
part = PartLabel.objects.first()
part = Part.objects.first()
for label in labels:
url = reverse('api-part-label-print', kwargs={'pk': label.pk})