Skip to content

Commit

Permalink
✅(backend) replace deprecated method assertQuerysetEqual
Browse files Browse the repository at this point in the history
`assertQuerysetEqual` has been deprecated in favor of `assertQuerySetEqual`.
  • Loading branch information
jbpenrath committed Sep 28, 2023
1 parent 9562447 commit 73985fc
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
6 changes: 3 additions & 3 deletions tests/apps/core/test_core_factories_groups.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ def test_factories_groups_rooms(self):
rooms = RoomFactory.create_batch(2)
group = GroupFactory(resources=rooms)

self.assertQuerysetEqual(
self.assertQuerySetEqual(
group.resources.all(), [r.resource for r in rooms], ordered=False
)
self.assertEqual(list(rooms[0].groups.all()), [group])
Expand All @@ -34,13 +34,13 @@ def test_factories_groups_members(self):
users = UserFactory.create_batch(2)
group = GroupFactory(members=users)

self.assertQuerysetEqual(group.members.all(), users, ordered=False)
self.assertQuerySetEqual(group.members.all(), users, ordered=False)
self.assertEqual(list(users[0].is_member_of.all()), [group])

def test_factories_groups_administrators(self):
"""We should be able to attach administrators to a group."""
users = UserFactory.create_batch(2)
group = GroupFactory(administrators=users)

self.assertQuerysetEqual(group.administrators.all(), users, ordered=False)
self.assertQuerySetEqual(group.administrators.all(), users, ordered=False)
self.assertEqual(list(users[0].is_administrator_of.all()), [group])
4 changes: 2 additions & 2 deletions tests/apps/core/test_core_factories_meetings.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ def test_factories_meetings_users(self):
"""We should be able to attach users to a meeting."""
users = UserFactory.create_batch(2)
MeetingFactory(users=users)
self.assertQuerysetEqual(
self.assertQuerySetEqual(
[access.user for access in MeetingAccess.objects.all()],
users,
ordered=False,
Expand All @@ -37,7 +37,7 @@ def test_factories_meetings_groups(self):
"""We should be able to attach groups to a meeting."""
groups = GroupFactory.create_batch(2)
MeetingFactory(groups=groups)
self.assertQuerysetEqual(
self.assertQuerySetEqual(
[access.group for access in MeetingAccess.objects.all()],
groups,
ordered=False,
Expand Down
6 changes: 3 additions & 3 deletions tests/apps/core/test_core_factories_rooms.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,16 +25,16 @@ def test_factories_rooms_users(self):
"""We should be able to attach users to a room."""
users = UserFactory.create_batch(2)
room = RoomFactory(users=users)
self.assertQuerysetEqual(room.users.all(), users, ordered=False)
self.assertQuerySetEqual(room.users.all(), users, ordered=False)

def test_factories_rooms_labels(self):
"""We should be able to attach labels to a room."""
labels = LabelFactory.create_batch(2)
room = RoomFactory(labels=labels)
self.assertQuerysetEqual(room.labels.all(), labels, ordered=False)
self.assertQuerySetEqual(room.labels.all(), labels, ordered=False)

def test_factories_rooms_groups(self):
"""We should be able to attach groups to a room."""
groups = GroupFactory.create_batch(2)
room = RoomFactory(groups=groups)
self.assertQuerysetEqual(room.groups.all(), groups, ordered=False)
self.assertQuerySetEqual(room.groups.all(), groups, ordered=False)

0 comments on commit 73985fc

Please sign in to comment.