update tests

This commit is contained in:
Hugh Rundle 2021-10-05 21:29:46 +11:00
parent 6fde19e9b1
commit b3dc81dea0

View file

@ -37,7 +37,6 @@ class GroupViews(TestCase):
outbox="https://example.com/users/rat/outbox",
)
with patch():
self.testgroup = models.Group.objects.create(
id=999,
name="Test Group",
@ -83,7 +82,7 @@ class GroupViews(TestCase):
def test_group_post(self, _):
"""edit a "group" database entry"""
view = views.Group.as_view()
self.factory.post(
view.post(
group_id=999,
name="Test Group",
user=self.local_user,