mirror of
https://gitea.mueller.network/extern/django-helpdesk.git
synced 2025-01-13 01:19:00 +01:00
fixing style on tests
This commit is contained in:
parent
30e3aa55aa
commit
179ceb2f82
@ -11,6 +11,7 @@ class PublicActionsTestCase(TestCase):
|
||||
- Add a followup
|
||||
- Close resolved case
|
||||
"""
|
||||
|
||||
def setUp(self):
|
||||
"""
|
||||
Create a queue & ticket we can use for later tests.
|
||||
@ -59,7 +60,7 @@ class PublicActionsTestCase(TestCase):
|
||||
self.assertTemplateNotUsed(response, 'helpdesk/public_view_form.html')
|
||||
self.assertEqual(ticket.status, Ticket.CLOSED_STATUS)
|
||||
self.assertEqual(ticket.resolution, resolution_text)
|
||||
self.assertEqual(current_followups+1, ticket.followup_set.all().count())
|
||||
self.assertEqual(current_followups + 1, ticket.followup_set.all().count())
|
||||
|
||||
ticket.resolution = old_resolution
|
||||
ticket.status = old_status
|
||||
|
@ -67,7 +67,7 @@ class TicketBasicsTestCase(TestCase):
|
||||
self.assertEqual(urlparts.path, reverse('helpdesk_public_view'))
|
||||
|
||||
# Ensure submitter, new-queue + update-queue were all emailed.
|
||||
self.assertEqual(email_count+3, len(mail.outbox))
|
||||
self.assertEqual(email_count + 3, len(mail.outbox))
|
||||
|
||||
def test_create_ticket_private(self):
|
||||
email_count = len(mail.outbox)
|
||||
@ -122,4 +122,4 @@ class TicketBasicsTestCase(TestCase):
|
||||
self.assertEqual(urlparts.path, reverse('helpdesk_public_view'))
|
||||
|
||||
# Ensure only two e-mails were sent - submitter & updated.
|
||||
self.assertEqual(email_count+2, len(mail.outbox))
|
||||
self.assertEqual(email_count + 2, len(mail.outbox))
|
||||
|
Loading…
Reference in New Issue
Block a user