2
0
mirror of https://github.com/inventree/InvenTree.git synced 2025-07-01 03:00:54 +00:00

Fix simple tests

This commit is contained in:
Ben Charlton
2020-08-21 18:53:51 +01:00
parent f7ed48809c
commit c31b30bf83
3 changed files with 7 additions and 8 deletions

View File

@ -295,10 +295,7 @@ class StockTest(TestCase):
with self.assertRaises(ValidationError):
item.serializeStock(-1, [], self.user)
# Try invalid serial numbers
with self.assertRaises(ValidationError):
item.serializeStock(3, [1, 2, 'k'], self.user)
# Not enough serial numbers for all stock items.
with self.assertRaises(ValidationError):
item.serializeStock(3, "hello", self.user)