mirror of
https://github.com/django-helpdesk/django-helpdesk.git
synced 2025-01-31 10:29:15 +01:00
UPDATED: Renamed test <tests.test_ticket_submission.test_create_ticket_direct> to <tests.test_ticket_submission.test_create_ticket_from_email> so the new upcoming test names (including CC, In-Reply etc) are easier to understand.
This commit is contained in:
parent
6ff2b014e4
commit
4d00dd3d6e
@ -24,14 +24,13 @@ class TicketBasicsTestCase(TestCase):
|
||||
|
||||
self.client = Client()
|
||||
|
||||
def test_create_ticket_direct(self):
|
||||
def test_create_ticket_from_email(self):
|
||||
email_count = len(mail.outbox)
|
||||
ticket_data = dict(queue=self.queue_public, **self.ticket_data)
|
||||
ticket = Ticket.objects.create(**ticket_data)
|
||||
self.assertEqual(ticket.ticket_for_url, "q1-%s" % ticket.id)
|
||||
self.assertEqual(email_count, len(mail.outbox))
|
||||
|
||||
|
||||
def test_create_ticket_public(self):
|
||||
email_count = len(mail.outbox)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user