Skip to content

Commit

Permalink
Update unit tests (#5446)
Browse files Browse the repository at this point in the history
- Remove failing test which no longer applies
  • Loading branch information
SchrodingersGat committed Aug 14, 2023
1 parent b5c7cf0 commit ea03964
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions InvenTree/part/test_param.py
Expand Up @@ -168,12 +168,6 @@ def test_param_unit_validation(self):
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"""

Expand Down

0 comments on commit ea03964

Please sign in to comment.