Remove code examples for Python 3.8 in `request_forms`

This commit is contained in:
Yurii Motov 2025-12-11 15:56:58 +01:00
parent 9589fd6864
commit 7cbbe561f7
3 changed files with 2 additions and 14 deletions

View File

@ -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}

View File

@ -4,15 +4,12 @@ import pytest
from dirty_equals import IsDict
from fastapi.testclient import TestClient
from ...utils import needs_py39
@pytest.fixture(
name="client",
params=[
"tutorial001",
"tutorial001_an",
pytest.param("tutorial001_an_py39", marks=needs_py39),
"tutorial001_py39",
"tutorial001_an_py39",
],
)
def get_client(request: pytest.FixtureRequest):