mirror of https://github.com/tiangolo/fastapi.git
🎨 Auto format
This commit is contained in:
parent
a3aa8583d8
commit
5a639b7b0d
|
|
@ -4,14 +4,12 @@ import pytest
|
|||
from fastapi.testclient import TestClient
|
||||
|
||||
|
||||
|
||||
@pytest.fixture(
|
||||
name="client",
|
||||
params=[
|
||||
pytest.param("tutorial005_py310"),
|
||||
],
|
||||
)
|
||||
|
||||
def get_client(request: pytest.FixtureRequest):
|
||||
mod = importlib.import_module(f"docs_src.body.{request.param}")
|
||||
client = TestClient(mod.app)
|
||||
|
|
@ -28,4 +26,3 @@ def test_required_field_missing(client: TestClient):
|
|||
response = client.post("/items/", json={})
|
||||
assert response.status_code == 200
|
||||
assert response.json() == {"description": None}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue