Skip to content

Commit 55ed958

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

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

tests/test_client.py

+1-3
Original file line numberDiff line numberDiff line change
@@ -30,9 +30,7 @@ def test_simple_client_init(api_client: ApiClient):
3030

3131

3232
def test_base_url_override(respx_mock: respx.mock):
33-
respx_mock.get(url__startswith="https://test/repos/foo/bar/import/issues").mock(
34-
return_value=RESPONSE_STATUS_MULTIPLE_ISSUES
35-
)
33+
respx_mock.get(url="https://test/repos/foo/bar/import/issues").mock(return_value=RESPONSE_STATUS_MULTIPLE_ISSUES)
3634

3735
api_client = ApiClient(http_client=HttpClient(token=GITHUB_TOKEN, base_url="https://test"))
3836
api_client.get_status_multiple("foo", "bar", datetime.now(tz=UTC))

0 commit comments

Comments
 (0)