1
0
Fork 0

linting and tests

This commit is contained in:
Hugh Rundle 2024-01-28 20:35:47 +11:00
parent a3e05254b5
commit 2c231acebe
No known key found for this signature in database
GPG key ID: A7E35779918253F9
5 changed files with 28 additions and 106 deletions

View file

@ -41,8 +41,7 @@ class ExportUserViews(TestCase):
request = self.factory.post("")
request.user = self.local_user
with patch("bookwyrm.models.bookwyrm_export_job.start_export_task.delay"):
export = views.ExportUser.as_view()(request)
export = views.ExportUser.as_view()(request)
self.assertIsInstance(export, HttpResponse)
self.assertEqual(export.status_code, 302)