Update unit tests
This commit is contained in:
parent
7d38507785
commit
43e03ed023
|
|
@ -25,6 +25,8 @@ def hash_barcode(barcode_data):
|
|||
TODO: Work out a way around this!
|
||||
"""
|
||||
|
||||
barcode_data = str(barcode_data).strip()
|
||||
|
||||
printable_chars = filter(lambda x: x in string.printable, barcode_data)
|
||||
|
||||
barcode_data = ''.join(list(printable_chars))
|
||||
|
|
|
|||
|
|
@ -100,7 +100,7 @@ class PartTest(TestCase):
|
|||
self.assertEqual(r.available_stock, 0)
|
||||
|
||||
def test_barcode(self):
|
||||
barcode = self.r1.format_barcode()
|
||||
barcode = self.r1.format_barcode(brief=False)
|
||||
self.assertIn('InvenTree', barcode)
|
||||
self.assertIn(self.r1.name, barcode)
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue