mirror of
https://github.com/inventree/InvenTree
synced 2024-08-30 18:33:04 +00:00
create labels on startup
This commit is contained in:
parent
041128ff9c
commit
444c8b871e
@ -10,6 +10,7 @@ from django.core.exceptions import ValidationError
|
||||
from InvenTree.helpers import validateFilterString
|
||||
from InvenTree.api_tester import InvenTreeAPITestCase
|
||||
|
||||
from .apps import LabelConfig
|
||||
from .models import StockItemLabel, StockLocationLabel, PartLabel
|
||||
from stock.models import StockItem
|
||||
|
||||
@ -87,6 +88,9 @@ class LabelTest(InvenTreeAPITestCase):
|
||||
def test_label_rendering(self):
|
||||
"""Test label rendering"""
|
||||
|
||||
# make sure the labels exsist
|
||||
LabelConfig.create_labels()
|
||||
|
||||
labels = PartLabel.objects.all()
|
||||
part = PartLabel.objects.first()
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user