mirror of
https://github.com/bookwyrm-social/bookwyrm.git
synced 2024-11-26 11:31:08 +00:00
Test for PermissionDenied error, not isNone
This commit is contained in:
parent
4f1283ff52
commit
73c4a01a6e
1 changed files with 2 additions and 2 deletions
|
@ -183,9 +183,9 @@ class ShelfActionViews(TestCase):
|
|||
request = self.factory.post("", form.data)
|
||||
request.user = self.local_user
|
||||
|
||||
views.create_shelf(request)
|
||||
with self.assertRaises(PermissionDenied):
|
||||
views.create_shelf(request)
|
||||
|
||||
self.assertIsNone(models.Shelf.objects.filter(name="new shelf name"))
|
||||
|
||||
def test_delete_shelf(self, *_):
|
||||
"""delete a brand new custom shelf"""
|
||||
|
|
Loading…
Reference in a new issue