-
Notifications
You must be signed in to change notification settings - Fork 30
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
theodu
committed
Aug 21, 2023
1 parent
82b4f76
commit 0cf719f
Showing
4 changed files
with
14 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,16 @@ | ||
from kili.services.issues import IssueUseCases | ||
from kili.services.issues.types import IssueToCreateServiceInput | ||
from kili.services.issue import IssueService | ||
from kili.services.issue.types import IssueToCreateServiceInput | ||
|
||
|
||
def test_create_one_issue(graphql_gateway): | ||
issue_use_case = IssueUseCases(graphql_gateway) | ||
issue_service = IssueService(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"]) | ||
|
||
# when creating one issue | ||
issues = issue_use_case.create_issues(project_id="project_id", issues=issues) | ||
issues = issue_service.create_issues(project_id="project_id", issues=issues) | ||
|
||
# then | ||
assert issues == ["issue_id"] |