Skip to content

Commit 79de2e8

Browse files
committed
:chore: Updated Respx for testing
:feat: Improved httpx calls
1 parent 28bb69e commit 79de2e8

File tree

3 files changed

+8
-8
lines changed

3 files changed

+8
-8
lines changed

poetry.lock

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

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ myst-parser = {version = ">=0.16.1"}
5050
pytest-cov = "^3.0.0"
5151
fastapi = "^0.78.0"
5252
uvicorn = "^0.18.1"
53-
respx = "^0.19.2"
53+
respx = "^0.20.1"
5454

5555
[tool.poetry.scripts]
5656
openapi-python-generator = "openapi_python_generator.__main__:main"

src/openapi_python_generator/language_converters/python/templates/httpx.jinja2

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,8 @@ async with httpx.AsyncClient(base_url=base_path) as client:
2121
with httpx.Client(base_url=base_path) as client:
2222
response = client.request(
2323
{% endif %}
24-
method='{{ method }}',
25-
url=path,
24+
'{{ method }}',
25+
httpx.URL(path),
2626
headers=headers,
2727
params=query_params,
2828
{% if body_param %}

0 commit comments

Comments
 (0)