mirror of
https://github.com/inventree/InvenTree
synced 2024-08-30 18:33:04 +00:00
Test for BOM download
This commit is contained in:
parent
f299248063
commit
ab3e66d578
@ -77,7 +77,12 @@ class PartDetailTest(PartViewTestCase):
|
|||||||
self.assertEqual(response.status_code, 200)
|
self.assertEqual(response.status_code, 200)
|
||||||
self.assertTrue(response.context['editing_enabled'])
|
self.assertTrue(response.context['editing_enabled'])
|
||||||
|
|
||||||
|
def test_bom_download(self):
|
||||||
|
""" Test downloading a BOM for a valid part """
|
||||||
|
|
||||||
|
response = self.client.get(reverse('bom-export', args=(1,)), HTTP_X_REQUESTED_WITH='XMLHttpRequest')
|
||||||
|
self.assertEqual(response.status_code, 200)
|
||||||
|
self.assertIn('streaming_content', dir(response))
|
||||||
|
|
||||||
|
|
||||||
class PartEditTest(PartViewTestCase):
|
class PartEditTest(PartViewTestCase):
|
||||||
|
Loading…
Reference in New Issue
Block a user