From 030b893a826cd2032743a454baf92c0a5b6ee375 Mon Sep 17 00:00:00 2001 From: theodu Date: Mon, 21 Aug 2023 15:54:40 +0200 Subject: [PATCH] feat: fix tests --- tests/services/test_issues.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/tests/services/test_issues.py b/tests/services/test_issues.py index 5f96dba1b..929386f96 100644 --- a/tests/services/test_issues.py +++ b/tests/services/test_issues.py @@ -1,3 +1,4 @@ +from kili.domain.issues import Issue from kili.services.issue import IssueService from kili.services.issue.types import IssueToCreateServiceInput @@ -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