mirror of
https://github.com/inventree/InvenTree.git
synced 2025-08-06 03:51:34 +00:00
Add some unit tests
This commit is contained in:
@@ -31,7 +31,7 @@ class OrderTest(APITestCase):
|
||||
|
||||
return self.client.get(url + "?" + options, format='json')
|
||||
|
||||
def test_po_list(self,):
|
||||
def test_po_list(self):
|
||||
|
||||
url = reverse('api-po-list')
|
||||
|
||||
@@ -42,3 +42,19 @@ class OrderTest(APITestCase):
|
||||
# Filter by stuff
|
||||
response = self.doGet(url, 'status=10&part=1&supplier_part=1')
|
||||
self.assertEqual(response.status_code, status.HTTP_200_OK)
|
||||
|
||||
def test_po_attachments(self):
|
||||
|
||||
url = reverse('api-po-attachment-list')
|
||||
|
||||
response = self.doGet(url)
|
||||
|
||||
self.assertEqual(response.status_code, status.HTTP_200_OK)
|
||||
|
||||
def test_so_attachments(self):
|
||||
|
||||
url = reverse('api-so-attachment-list')
|
||||
|
||||
response = self.doGet(url)
|
||||
|
||||
self.assertEqual(response.status_code, status.HTTP_200_OK)
|
Reference in New Issue
Block a user