mirror of
https://github.com/fastapi/fastapi.git
synced 2026-05-18 13:27:45 -04:00
📝 Update source examples and docs from Python 3.9 to 3.10 (#14900)
This commit is contained in:
committed by
GitHub
parent
d06ab3f5c7
commit
c9e2277d8b
@@ -8,8 +8,8 @@ from inline_snapshot import snapshot
|
||||
@pytest.fixture(
|
||||
name="client",
|
||||
params=[
|
||||
"tutorial001_py39",
|
||||
"tutorial001_an_py39",
|
||||
"tutorial001_py310",
|
||||
"tutorial001_an_py310",
|
||||
],
|
||||
)
|
||||
def get_client(request: pytest.FixtureRequest):
|
||||
|
||||
@@ -11,9 +11,7 @@ from ...utils import needs_py310
|
||||
@pytest.fixture(
|
||||
name="client",
|
||||
params=[
|
||||
pytest.param("tutorial001_02_py39"),
|
||||
pytest.param("tutorial001_02_py310", marks=needs_py310),
|
||||
pytest.param("tutorial001_02_an_py39"),
|
||||
pytest.param("tutorial001_02_an_py310", marks=needs_py310),
|
||||
],
|
||||
)
|
||||
|
||||
@@ -8,8 +8,8 @@ from inline_snapshot import snapshot
|
||||
@pytest.fixture(
|
||||
name="client",
|
||||
params=[
|
||||
"tutorial001_03_py39",
|
||||
"tutorial001_03_an_py39",
|
||||
"tutorial001_03_py310",
|
||||
"tutorial001_03_an_py310",
|
||||
],
|
||||
)
|
||||
def get_client(request: pytest.FixtureRequest):
|
||||
|
||||
@@ -9,8 +9,8 @@ from inline_snapshot import snapshot
|
||||
@pytest.fixture(
|
||||
name="app",
|
||||
params=[
|
||||
"tutorial002_py39",
|
||||
"tutorial002_an_py39",
|
||||
"tutorial002_py310",
|
||||
"tutorial002_an_py310",
|
||||
],
|
||||
)
|
||||
def get_app(request: pytest.FixtureRequest):
|
||||
|
||||
@@ -9,8 +9,8 @@ from inline_snapshot import snapshot
|
||||
@pytest.fixture(
|
||||
name="app",
|
||||
params=[
|
||||
"tutorial003_py39",
|
||||
"tutorial003_an_py39",
|
||||
"tutorial003_py310",
|
||||
"tutorial003_an_py310",
|
||||
],
|
||||
)
|
||||
def get_app(request: pytest.FixtureRequest):
|
||||
|
||||
Reference in New Issue
Block a user