diff --git a/InvenTree/order/test_sales_order.py b/InvenTree/order/test_sales_order.py index c619aec5bc..fce6fcb904 100644 --- a/InvenTree/order/test_sales_order.py +++ b/InvenTree/order/test_sales_order.py @@ -73,10 +73,10 @@ class SalesOrderTest(TestCase): self.assertFalse(self.order.is_fully_allocated()) def test_add_duplicate_line_item(self): - # Adding a duplicate line item to a SalesOrder must throw an error + # Adding a duplicate line item to a SalesOrder is accepted - with self.assertRaises(IntegrityError): - SalesOrderLineItem.objects.create(order=self.order, part=self.part) + for ii in range(1, 5): + SalesOrderLineItem.objects.create(order=self.order, part=self.part, quantity=ii) def allocate_stock(self, full=True):