Fix tests

This commit is contained in:
Oliver Walters 2020-02-11 22:38:50 +11:00
parent f865573e48
commit 882bda46b4

View File

@ -81,7 +81,7 @@ class PartDetailTest(PartViewTestCase):
def test_bom_download(self): def test_bom_download(self):
""" Test downloading a BOM for a valid part """ """ Test downloading a BOM for a valid part """
response = self.client.get(reverse('bom-export', args=(1,)), HTTP_X_REQUESTED_WITH='XMLHttpRequest') response = self.client.get(reverse('bom-download', args=(1,)), HTTP_X_REQUESTED_WITH='XMLHttpRequest')
self.assertEqual(response.status_code, 200) self.assertEqual(response.status_code, 200)
self.assertIn('streaming_content', dir(response)) self.assertIn('streaming_content', dir(response))