mirror of
https://github.com/inventree/InvenTree.git
synced 2025-04-28 11:36:44 +00:00
Update unit tests (#5446)
- Remove failing test which no longer applies
This commit is contained in:
parent
b5c7cf0779
commit
ea039645c3
@ -168,12 +168,6 @@ class ParameterTests(TestCase):
|
|||||||
param = PartParameter(part=prt, template=template, data=value)
|
param = PartParameter(part=prt, template=template, data=value)
|
||||||
param.full_clean()
|
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):
|
def test_param_unit_conversion(self):
|
||||||
"""Test that parameters are correctly converted to template units"""
|
"""Test that parameters are correctly converted to template units"""
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user