2
0
mirror of https://github.com/inventree/InvenTree.git synced 2025-05-02 05:26:45 +00:00

test non-numeric serials are handled correctly for ranges

This commit is contained in:
Ben Charlton 2020-08-24 20:04:10 +01:00
parent 0da2682c68
commit 9c2d13b487

View File

@ -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()