2
0
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:
Oliver Walters
2019-09-15 22:04:52 +10:00
parent 204cd967aa
commit ed20e9d4a1
4 changed files with 28 additions and 60 deletions

View File

@ -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)