diff --git a/InvenTree/part/test_param.py b/InvenTree/part/test_param.py index a8a6ac4f90a..314fe11eb51 100644 --- a/InvenTree/part/test_param.py +++ b/InvenTree/part/test_param.py @@ -195,8 +195,7 @@ def test_param_unit_validation(self): # Invalid units also pass, but will be converted to the template units for value in bad_values: param = PartParameter(part=prt, template=template, data=value) - with self.assertRaises(django_exceptions.ValidationError): - param.full_clean() + param.full_clean() # Enable enforcing of part parameter units InvenTreeSetting.set_setting(