Skip to content

Commit

Permalink
馃帹 [pre-commit.ci] Auto format from pre-commit.com hooks
Browse files Browse the repository at this point in the history
  • Loading branch information
pre-commit-ci[bot] committed Oct 7, 2022
1 parent 30f0ca3 commit b5a22a2
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 4 deletions.
4 changes: 3 additions & 1 deletion tests/test_tutorial/test_body/test_tutorial001.py
Expand Up @@ -255,7 +255,9 @@ def test_wrong_headers():
]
}

response = client.post("/items/", content=data, headers={"Content-Type": "text/plain"})
response = client.post(
"/items/", content=data, headers={"Content-Type": "text/plain"}
)
assert response.status_code == 422, response.text
assert response.json() == invalid_dict

Expand Down
4 changes: 3 additions & 1 deletion tests/test_tutorial/test_body/test_tutorial001_py310.py
Expand Up @@ -269,7 +269,9 @@ def test_wrong_headers(client: TestClient):
]
}

response = client.post("/items/", content=data, headers={"Content-Type": "text/plain"})
response = client.post(
"/items/", content=data, headers={"Content-Type": "text/plain"}
)
assert response.status_code == 422, response.text
assert response.json() == invalid_dict

Expand Down
1 change: 0 additions & 1 deletion tests/test_tutorial/test_cookie_params/test_tutorial001.py
Expand Up @@ -3,7 +3,6 @@

from docs_src.cookie_params.tutorial001 import app


openapi_schema = {
"openapi": "3.0.2",
"info": {"title": "FastAPI", "version": "0.1.0"},
Expand Down
@@ -1,9 +1,10 @@
import pytest
from fastapi.testclient import TestClient

from ...utils import needs_py310
from docs_src.cookie_params.tutorial001_py310 import app

from ...utils import needs_py310

openapi_schema = {
"openapi": "3.0.2",
"info": {"title": "FastAPI", "version": "0.1.0"},
Expand Down

0 comments on commit b5a22a2

Please sign in to comment.