Update unit tests (#5446)

- Remove failing test which no longer applies
This commit is contained in:
Oliver 2023-08-14 16:39:00 +10:00 committed by GitHub
parent b5c7cf0779
commit ea039645c3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -168,12 +168,6 @@ class ParameterTests(TestCase):
param = PartParameter(part=prt, template=template, data=value)
param.full_clean()
# Test that invalid parameters fail
for value in ['3 Amps', '-3 zogs', '3.14F']:
param = PartParameter(part=prt, template=template, data=value)
with self.assertRaises(django_exceptions.ValidationError):
param.full_clean()
def test_param_unit_conversion(self):
"""Test that parameters are correctly converted to template units"""