Skip to content

Commit 9eca297

Browse files
committed
fixup! Migrate to respx from pytest_httpx and add override tests
1 parent 55ed958 commit 9eca297

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

tests/test_client.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import json
22
from datetime import UTC, datetime
3+
from http import HTTPMethod
34
from unittest.mock import MagicMock
45

56
import httpx
@@ -86,7 +87,7 @@ def test_import_issue(api_client: ApiClient, respx_mock: respx.mock):
8687
import_request = get_fixture("request-start-issue-import.json")
8788

8889
respx_mock.route(
89-
method="POST",
90+
method=HTTPMethod.POST,
9091
url="https://api.github.com/repos/owner/repository/import/issues",
9192
headers={"Authorization": f"Token {GITHUB_TOKEN}"} | HttpClient.HEADERS,
9293
).mock(return_value=httpx.Response(httpx.codes.ACCEPTED, text=import_response))

0 commit comments

Comments
 (0)