mirror of
https://github.com/inventree/InvenTree.git
synced 2026-10-10 04:06:14 +00:00
Fix simple tests
This commit is contained in:
1 parent
f7ed48809c
commit
c31b30bf83
3 files changed
+7
-8
No files matched your search
@@ -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)
|
||||
|
||||
|
||||
Reference in new issue
Block a user