test non-numeric serials are handled correctly for ranges

This commit is contained in:
Ben Charlton committed 2020-08-24 20:04:10 +01:00
1 parent 0da2682c68
commit 9c2d13b487
1 file changed
+3
+3
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()