This commit is contained in:
Oliver Walters 2022-04-22 00:40:23 +10:00
parent a7c18891b5
commit aa4df62ac9

View File

@ -348,7 +348,7 @@ class PartSettingsTest(TestCase):
with self.assertRaises(ValidationError):
part = Part(name='Hello', description='A thing', IPN='IPN123', revision='C')
part.full_clean()
# Any duplicate IPN should raise an error
Part.objects.create(name='xyz', revision='1', description='A part', IPN='UNIQUE')