Style corrections

This commit is contained in:
Ben Charlton 2020-08-28 17:30:16 +01:00
parent 6b1696f8df
commit 06552832cb
2 changed files with 1 additions and 3 deletions

View File

@ -343,7 +343,6 @@ class Part(MPTTModel):
# No serial numbers found # No serial numbers found
return 0 return 0
def getNextSerialNumber(self): def getNextSerialNumber(self):
""" """
Return the next-available serial number for this Part. Return the next-available serial number for this Part.
@ -356,7 +355,6 @@ class Part(MPTTModel):
else: else:
return int(n) + 1 return int(n) + 1
def getSerialNumberString(self, quantity): def getSerialNumberString(self, quantity):
""" """
Return a formatted string representing the next available serial numbers, Return a formatted string representing the next available serial numbers,

View File

@ -392,7 +392,7 @@ class VariantTest(StockTest):
item.save() item.save()
# Verify items with a non-numeric serial don't offer a next serial. # Verify items with a non-numeric serial don't offer a next serial.
item.serial="string" item.serial = "string"
item.save() item.save()
self.assertEqual(variant.getNextSerialNumber(), None) self.assertEqual(variant.getNextSerialNumber(), None)