From d94737711dd6c2bb9054c4d15fcc68e9c93b3046 Mon Sep 17 00:00:00 2001 From: Francesco Filicetti Date: Mon, 2 Dec 2024 15:56:16 +0100 Subject: [PATCH] fix: assertEqual in unit tests --- uniticket/tests/test_06_generic.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/uniticket/tests/test_06_generic.py b/uniticket/tests/test_06_generic.py index d1cb9a41..cc5e7b41 100644 --- a/uniticket/tests/test_06_generic.py +++ b/uniticket/tests/test_06_generic.py @@ -16,21 +16,21 @@ def test_opened_tickets_page(self): kwargs={'structure_slug': self.structure_1.slug}), follow=True) assert response.status_code == 200 - self.assertEquals(response.context['structure'], self.structure_1) + self.assertEqual(response.context['structure'], self.structure_1) def test_closed_tickets_page(self): response = self.client.get(reverse('uni_ticket:manager_closed_ticket', kwargs={'structure_slug': self.structure_1.slug}), follow=True) assert response.status_code == 200 - self.assertEquals(response.context['structure'], self.structure_1) + self.assertEqual(response.context['structure'], self.structure_1) def test_unassigned_tickets_page(self): response = self.client.get(reverse('uni_ticket:manager_unassigned_ticket', kwargs={'structure_slug': self.structure_1.slug}), follow=True) assert response.status_code == 200 - self.assertEquals(response.context['structure'], self.structure_1) + self.assertEqual(response.context['structure'], self.structure_1) def test_email_notify_change(self): self.structure_1_default_office_operator_login()