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,8 +77,13 @@ class PartDetailTest(PartViewTestCase):
|
||||
self.assertEqual(response.status_code, 200)
|
||||
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):
|
||||
""" Tests for Part editing form """
|
||||
|
Loading…
Reference in New Issue
Block a user