Skip to content

Commit

Permalink
fix: assertEqual in unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
francesco-filicetti committed Dec 2, 2024
1 parent 9b70a9a commit d947377
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions uniticket/tests/test_06_generic.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit d947377

Please sign in to comment.