Skip to content

Commit

Permalink
OP-2220: fixed tests
Browse files Browse the repository at this point in the history
  • Loading branch information
sniedzielski committed Dec 13, 2024
1 parent 7dd7273 commit 2cc8515
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ def test_create_comment_individual_success(self):
_ = self.gql_client.execute(payload, context=self.gql_context)
mutation_log = MutationLog.objects.get(client_mutation_id=mutation_id)
self.assertFalse(mutation_log.error)
comment = Comment.objects.get(id=self.existing_ticket.id)
comment = Comment.objects.get(ticket_id=self.existing_ticket.id)
self.assertEquals(comment.ticket.id, self.existing_ticket.id)
self.assertEquals(comment.comment, self.comment)
self.assertEquals(comment.commenter_id, self.individual.id)
Expand All @@ -78,7 +78,7 @@ def test_create_comment_anonymous_user_success(self):
_ = self.gql_client.execute(payload, context=self.gql_context)
mutation_log = MutationLog.objects.get(client_mutation_id=mutation_id)
self.assertFalse(mutation_log.error)
comment = Comment.objects.get(id=self.existing_ticket.id)
comment = Comment.objects.get(ticket_id=self.existing_ticket.id)
self.assertEquals(comment.ticket.id, self.existing_ticket.id)
self.assertEquals(comment.comment, self.comment)
self.assertEquals(comment.commenter_id, None)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ def setUpClass(cls):
def test_resolve_ticket_by_comment_success(self):
mutation_id = "99g154h5b92h11sd33"
payload = gql_mutation_resolve_ticket_by_comment % (
self.comment.id,
self.existing_comment.id,
mutation_id
)

Expand Down

0 comments on commit 2cc8515

Please sign in to comment.