Skip to content

Commit

Permalink
feat: fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
theodu committed Aug 21, 2023
1 parent b40e9fa commit f7a8bd9
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions tests/services/test_issues.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
from kili.domain.issues import Issue
from kili.services.issue import IssueService
from kili.services.issue.types import IssueToCreateServiceInput

Expand All @@ -7,10 +8,11 @@ def test_create_one_issue(graphql_gateway):

# given one issue to create
issues = [IssueToCreateServiceInput(label_id="label_id", text="text", object_mid="object_mid")]
graphql_gateway.create_issues.return_value(["issue_id"])
issue_entities = [Issue(id="issue_id")]
graphql_gateway.create_issues.return_value(issue_entities)

# when creating one issue
issues = issue_service.create_issues(project_id="project_id", issues=issues)

# then
assert issues == ["issue_id"]
assert issues == issue_entities

0 comments on commit f7a8bd9

Please sign in to comment.