Fixes reference to renamed view

This commit is contained in:
Mouse Reeve 2022-07-11 08:05:32 -07:00
parent 42e29e40b3
commit 9104d1f8db

View file

@ -56,7 +56,7 @@ class ExportViews(TestCase):
)
request = self.factory.post("")
request.user = self.local_user
export = views.export_user_book_data(request)
export = views.Export.as_view()(request)
self.assertIsInstance(export, StreamingHttpResponse)
self.assertEqual(export.status_code, 200)
result = list(export.streaming_content)