mirror of
https://github.com/inventree/InvenTree.git
synced 2025-05-02 21:38:48 +00:00
test non-numeric serials are handled correctly for ranges
This commit is contained in:
parent
0da2682c68
commit
9c2d13b487
@ -396,6 +396,9 @@ class VariantTest(StockTest):
|
||||
item.save()
|
||||
self.assertEqual(variant.getNextSerialNumber(), None)
|
||||
|
||||
# And the same for the range when serializing.
|
||||
self.assertEqual(variant.getSerialNumberString(5), None)
|
||||
|
||||
# This should pass, although not strictly an int field now.
|
||||
item.serial = int(n) + 1
|
||||
item.save()
|
||||
|
Loading…
x
Reference in New Issue
Block a user