Skip to content

Commit

Permalink
test(core): Ensure that when ticket is assigned it's status is update…
Browse files Browse the repository at this point in the history
…d to assigned

ref: #15 #375 #383
  • Loading branch information
jon-nfc committed Nov 27, 2024
1 parent ad9ed13 commit 5987e62
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions app/core/tests/abstract/test_ticket_serializer.py
Original file line number Diff line number Diff line change
Expand Up @@ -462,7 +462,20 @@ def setUpTestData(self):



def test_assigned_ticket_status_updates(self):

ticket = Ticket.objects.create(
organization=self.organization,
title = 'ticket title test status',
description = 'some text',
opened_by = self.add_user,
status = Ticket.TicketStatus.All.NEW,
ticket_type = self.ticket_type_enum,
)

ticket.assigned_users.add(self.triage_user.id)

assert ticket.status == Ticket.TicketStatus.All.ASSIGNED


def test_serializer_validation_add_valid_ok(self):
Expand Down

0 comments on commit 5987e62

Please sign in to comment.