mirror of https://github.com/tiangolo/fastapi.git
Remove code examples for Python 3.8 in `request_forms`
This commit is contained in:
parent
9589fd6864
commit
7cbbe561f7
|
|
@ -1,9 +0,0 @@
|
||||||
from fastapi import FastAPI, Form
|
|
||||||
from typing_extensions import Annotated
|
|
||||||
|
|
||||||
app = FastAPI()
|
|
||||||
|
|
||||||
|
|
||||||
@app.post("/login/")
|
|
||||||
async def login(username: Annotated[str, Form()], password: Annotated[str, Form()]):
|
|
||||||
return {"username": username}
|
|
||||||
|
|
@ -4,15 +4,12 @@ import pytest
|
||||||
from dirty_equals import IsDict
|
from dirty_equals import IsDict
|
||||||
from fastapi.testclient import TestClient
|
from fastapi.testclient import TestClient
|
||||||
|
|
||||||
from ...utils import needs_py39
|
|
||||||
|
|
||||||
|
|
||||||
@pytest.fixture(
|
@pytest.fixture(
|
||||||
name="client",
|
name="client",
|
||||||
params=[
|
params=[
|
||||||
"tutorial001",
|
"tutorial001_py39",
|
||||||
"tutorial001_an",
|
"tutorial001_an_py39",
|
||||||
pytest.param("tutorial001_an_py39", marks=needs_py39),
|
|
||||||
],
|
],
|
||||||
)
|
)
|
||||||
def get_client(request: pytest.FixtureRequest):
|
def get_client(request: pytest.FixtureRequest):
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue