1
0
Fork 0

fix tests

This commit is contained in:
Hugh Rundle 2024-01-29 12:28:37 +11:00
parent 2c231acebe
commit 765fc1e43d
No known key found for this signature in database
GPG key ID: A7E35779918253F9
2 changed files with 130 additions and 15 deletions

View file

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