mirror of
https://github.com/inventree/InvenTree.git
synced 2025-06-19 21:45:39 +00:00
Simplify code for exporting PurchaseOrder
- New resource for managing import/export of POLineItem model
This commit is contained in:
@ -139,13 +139,3 @@ class OrderTest(TestCase):
|
||||
order.receive_line_item(line, loc, line.quantity, user=None)
|
||||
|
||||
self.assertEqual(order.status, OrderStatus.COMPLETE)
|
||||
|
||||
def test_export(self):
|
||||
""" Test order exporting """
|
||||
|
||||
order = PurchaseOrder.objects.get(pk=1)
|
||||
|
||||
output = order.export_to_file(format='csv')
|
||||
|
||||
self.assertIn('M2x4 LPHS', output)
|
||||
self.assertIn('Line,Part,Description', output)
|
||||
|
Reference in New Issue
Block a user