From 73985fcb3c2843ab7f658b9a73421aa42537ca7e Mon Sep 17 00:00:00 2001 From: jbpenrath Date: Thu, 28 Sep 2023 16:31:56 +0200 Subject: [PATCH] =?UTF-8?q?=E2=9C=85(backend)=20replace=20deprecated=20met?= =?UTF-8?q?hod=20assertQuerysetEqual?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit `assertQuerysetEqual` has been deprecated in favor of `assertQuerySetEqual`. --- tests/apps/core/test_core_factories_groups.py | 6 +++--- tests/apps/core/test_core_factories_meetings.py | 4 ++-- tests/apps/core/test_core_factories_rooms.py | 6 +++--- 3 files changed, 8 insertions(+), 8 deletions(-) diff --git a/tests/apps/core/test_core_factories_groups.py b/tests/apps/core/test_core_factories_groups.py index 2172290b8..51ada685b 100644 --- a/tests/apps/core/test_core_factories_groups.py +++ b/tests/apps/core/test_core_factories_groups.py @@ -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]) @@ -34,7 +34,7 @@ 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): @@ -42,5 +42,5 @@ def test_factories_groups_administrators(self): 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]) diff --git a/tests/apps/core/test_core_factories_meetings.py b/tests/apps/core/test_core_factories_meetings.py index 140340dfb..220830ac7 100644 --- a/tests/apps/core/test_core_factories_meetings.py +++ b/tests/apps/core/test_core_factories_meetings.py @@ -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, @@ -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, diff --git a/tests/apps/core/test_core_factories_rooms.py b/tests/apps/core/test_core_factories_rooms.py index 97fdb9867..2ec786e10 100644 --- a/tests/apps/core/test_core_factories_rooms.py +++ b/tests/apps/core/test_core_factories_rooms.py @@ -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)