mirror of
https://github.com/inventree/InvenTree
synced 2024-08-30 18:33:04 +00:00
Merge pull request #2990 from matmair/matmair/issue2989
Remove static label tests
This commit is contained in:
commit
db026c935b
@ -7,13 +7,12 @@ import os
|
|||||||
|
|
||||||
from django.conf import settings
|
from django.conf import settings
|
||||||
from django.apps import apps
|
from django.apps import apps
|
||||||
from django.urls import reverse
|
|
||||||
from django.core.exceptions import ValidationError
|
from django.core.exceptions import ValidationError
|
||||||
|
|
||||||
from InvenTree.helpers import validateFilterString
|
from InvenTree.helpers import validateFilterString
|
||||||
from InvenTree.api_tester import InvenTreeAPITestCase
|
from InvenTree.api_tester import InvenTreeAPITestCase
|
||||||
|
|
||||||
from .models import StockItemLabel, StockLocationLabel, PartLabel
|
from .models import StockItemLabel, StockLocationLabel
|
||||||
from stock.models import StockItem
|
from stock.models import StockItem
|
||||||
|
|
||||||
|
|
||||||
@ -86,13 +85,3 @@ class LabelTest(InvenTreeAPITestCase):
|
|||||||
|
|
||||||
with self.assertRaises(ValidationError):
|
with self.assertRaises(ValidationError):
|
||||||
validateFilterString(bad_filter_string, model=StockItem)
|
validateFilterString(bad_filter_string, model=StockItem)
|
||||||
|
|
||||||
def test_label_rendering(self):
|
|
||||||
"""Test label rendering"""
|
|
||||||
|
|
||||||
labels = PartLabel.objects.all()
|
|
||||||
part = PartLabel.objects.first()
|
|
||||||
|
|
||||||
for label in labels:
|
|
||||||
url = reverse('api-part-label-print', kwargs={'pk': label.pk})
|
|
||||||
self.get(f'{url}?parts={part.pk}', expected_code=200)
|
|
||||||
|
Loading…
Reference in New Issue
Block a user