mirror of
https://github.com/inventree/InvenTree
synced 2024-08-30 18:33:04 +00:00
Fix unit tests
This commit is contained in:
parent
6175c5408c
commit
5167f54268
@ -31,11 +31,11 @@ class OrderTest(TestCase):
|
|||||||
|
|
||||||
self.assertEqual(order.get_absolute_url(), '/order/purchase-order/1/')
|
self.assertEqual(order.get_absolute_url(), '/order/purchase-order/1/')
|
||||||
|
|
||||||
self.assertEqual(str(order), 'PO 1 - ACME')
|
self.assertEqual(str(order), 'PO 0001 - ACME')
|
||||||
|
|
||||||
line = PurchaseOrderLineItem.objects.get(pk=1)
|
line = PurchaseOrderLineItem.objects.get(pk=1)
|
||||||
|
|
||||||
self.assertEqual(str(line), "100 x ACME0001 from ACME (for PO 1 - ACME)")
|
self.assertEqual(str(line), "100 x ACME0001 from ACME (for PO 0001 - ACME)")
|
||||||
|
|
||||||
def test_increment(self):
|
def test_increment(self):
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user