Skip to content
This repository was archived by the owner on Apr 13, 2023. It is now read-only.

Commit a03e2ae

Browse files
committed
Merge branch 'main' into feature/python-3.11
2 parents 1cd0611 + 5b8a313 commit a03e2ae

File tree

3 files changed

+25
-14
lines changed

3 files changed

+25
-14
lines changed

.github/workflows/constraints.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
pip==22.3.1
2-
nox==2022.8.7
2+
nox==2022.11.21
33
nox-poetry==1.0.2
44
poetry==1.2.2
55
virtualenv==20.16.7

poetry.lock

Lines changed: 13 additions & 13 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

tests/test_views.py

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,17 @@ def test_action_with_filters() -> None:
3030
assert response.value == DOMAIN_ISSUES
3131

3232

33+
def test_action_handles_invalid_request(mocker: MockerFixture) -> None:
34+
"""It returns a paramters error."""
35+
mock = mocker.patch("git_portfolio.github_service.GithubService", autospec=True)
36+
request = il.IssueListInvalidRequest()
37+
38+
response = views.issues(REPO, mock.return_value, request)
39+
40+
assert isinstance(response, res.ResponseFailure)
41+
assert response.value == {"type": res.ResponseTypes.PARAMETERS_ERROR, "message": ""}
42+
43+
3344
def test_action_handles_generic_error(mocker: MockerFixture) -> None:
3445
"""It returns a system error."""
3546
mock = mocker.patch("git_portfolio.github_service.GithubService", autospec=True)

0 commit comments

Comments
 (0)