This commit is contained in:
Matthias Mair 2025-11-26 02:15:10 +01:00
parent 1e3ef9d259
commit 5927bbfc3e
No known key found for this signature in database
GPG Key ID: A593429DDA23B66A
1 changed files with 4 additions and 4 deletions

View File

@ -3,9 +3,9 @@
from django.core.exceptions import ValidationError
from django.test import TestCase
from common.models import InvenTreeSetting
from common.models import InvenTreeSetting, Parameter, ParameterTemplate
from .models import Part, PartCategory, PartParameter, PartParameterTemplate
from .models import Part, PartCategory
class CategoryTest(TestCase):
@ -164,8 +164,8 @@ class CategoryTest(TestCase):
for fastener in fasteners:
self.assertIsInstance(fastener, Part)
for parameter in fastener.parameters.all():
self.assertIsInstance(parameter, PartParameter)
self.assertIsInstance(parameter.template, PartParameterTemplate)
self.assertIsInstance(parameter, Parameter)
self.assertIsInstance(parameter.template, ParameterTemplate)
# Test number of unique parameters
self.assertEqual(