mirror of
https://github.com/fastapi/fastapi.git
synced 2026-02-15 16:51:24 -05:00
✅ Remove tests for removed files
This commit is contained in:
@@ -12,7 +12,6 @@ from tests.utils import needs_py310
|
||||
@pytest.fixture(
|
||||
name="client",
|
||||
params=[
|
||||
pytest.param("tutorial002_py39"),
|
||||
pytest.param("tutorial002_py310", marks=needs_py310),
|
||||
],
|
||||
)
|
||||
|
||||
@@ -12,7 +12,6 @@ from tests.utils import needs_py310
|
||||
@pytest.fixture(
|
||||
name="client",
|
||||
params=[
|
||||
pytest.param("tutorial004_py39"),
|
||||
pytest.param("tutorial004_py310", marks=needs_py310),
|
||||
],
|
||||
)
|
||||
|
||||
@@ -9,9 +9,7 @@ from ...utils import needs_py310
|
||||
@pytest.fixture(
|
||||
name="client",
|
||||
params=[
|
||||
"tutorial001_py39",
|
||||
pytest.param("tutorial001_py310", marks=needs_py310),
|
||||
"tutorial001_an_py39",
|
||||
pytest.param("tutorial001_an_py310", marks=needs_py310),
|
||||
],
|
||||
)
|
||||
|
||||
@@ -11,9 +11,7 @@ from ...utils import needs_py310
|
||||
@pytest.fixture(
|
||||
name="client",
|
||||
params=[
|
||||
"tutorial002_py39",
|
||||
pytest.param("tutorial002_py310", marks=needs_py310),
|
||||
"tutorial002_an_py39",
|
||||
pytest.param("tutorial002_an_py310", marks=needs_py310),
|
||||
],
|
||||
)
|
||||
|
||||
@@ -11,7 +11,6 @@ from ...utils import needs_py310
|
||||
@pytest.fixture(
|
||||
name="client",
|
||||
params=[
|
||||
"tutorial001_py39",
|
||||
pytest.param("tutorial001_py310", marks=needs_py310),
|
||||
],
|
||||
)
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
import importlib
|
||||
from typing import Union
|
||||
|
||||
import pytest
|
||||
from fastapi.testclient import TestClient
|
||||
@@ -11,7 +10,6 @@ from ...utils import needs_py310
|
||||
@pytest.fixture(
|
||||
name="client",
|
||||
params=[
|
||||
pytest.param("tutorial002_py39"),
|
||||
pytest.param("tutorial002_py310", marks=needs_py310),
|
||||
],
|
||||
)
|
||||
@@ -23,7 +21,7 @@ def get_client(request: pytest.FixtureRequest):
|
||||
|
||||
|
||||
@pytest.mark.parametrize("price", ["50.5", 50.5])
|
||||
def test_post_with_tax(client: TestClient, price: Union[str, float]):
|
||||
def test_post_with_tax(client: TestClient, price: str | float):
|
||||
response = client.post(
|
||||
"/items/",
|
||||
json={"name": "Foo", "price": price, "description": "Some Foo", "tax": 0.3},
|
||||
@@ -39,7 +37,7 @@ def test_post_with_tax(client: TestClient, price: Union[str, float]):
|
||||
|
||||
|
||||
@pytest.mark.parametrize("price", ["50.5", 50.5])
|
||||
def test_post_without_tax(client: TestClient, price: Union[str, float]):
|
||||
def test_post_without_tax(client: TestClient, price: str | float):
|
||||
response = client.post(
|
||||
"/items/", json={"name": "Foo", "price": price, "description": "Some Foo"}
|
||||
)
|
||||
|
||||
@@ -10,7 +10,6 @@ from ...utils import needs_py310
|
||||
@pytest.fixture(
|
||||
name="client",
|
||||
params=[
|
||||
pytest.param("tutorial003_py39"),
|
||||
pytest.param("tutorial003_py310", marks=needs_py310),
|
||||
],
|
||||
)
|
||||
|
||||
@@ -10,7 +10,6 @@ from ...utils import needs_py310
|
||||
@pytest.fixture(
|
||||
name="client",
|
||||
params=[
|
||||
pytest.param("tutorial004_py39"),
|
||||
pytest.param("tutorial004_py310", marks=needs_py310),
|
||||
],
|
||||
)
|
||||
|
||||
@@ -10,9 +10,7 @@ from ...utils import needs_py310
|
||||
@pytest.fixture(
|
||||
name="client",
|
||||
params=[
|
||||
"tutorial001_py39",
|
||||
pytest.param("tutorial001_py310", marks=needs_py310),
|
||||
"tutorial001_an_py39",
|
||||
pytest.param("tutorial001_an_py310", marks=needs_py310),
|
||||
],
|
||||
)
|
||||
|
||||
@@ -10,9 +10,7 @@ from ...utils import needs_py310
|
||||
@pytest.fixture(
|
||||
name="client",
|
||||
params=[
|
||||
"tutorial001_py39",
|
||||
pytest.param("tutorial001_py310", marks=needs_py310),
|
||||
"tutorial001_an_py39",
|
||||
pytest.param("tutorial001_an_py310", marks=needs_py310),
|
||||
],
|
||||
)
|
||||
|
||||
@@ -10,7 +10,6 @@ from ...utils import needs_py310
|
||||
@pytest.fixture(
|
||||
name="client",
|
||||
params=[
|
||||
pytest.param("tutorial002_py39"),
|
||||
pytest.param("tutorial002_py310", marks=needs_py310),
|
||||
],
|
||||
)
|
||||
|
||||
@@ -10,9 +10,7 @@ from ...utils import needs_py310
|
||||
@pytest.fixture(
|
||||
name="client",
|
||||
params=[
|
||||
"tutorial003_py39",
|
||||
pytest.param("tutorial003_py310", marks=needs_py310),
|
||||
"tutorial003_an_py39",
|
||||
pytest.param("tutorial003_an_py310", marks=needs_py310),
|
||||
],
|
||||
)
|
||||
|
||||
@@ -10,9 +10,7 @@ from ...utils import needs_py310
|
||||
@pytest.fixture(
|
||||
name="client",
|
||||
params=[
|
||||
pytest.param("tutorial004_py39"),
|
||||
pytest.param("tutorial004_py310", marks=needs_py310),
|
||||
pytest.param("tutorial004_an_py39"),
|
||||
pytest.param("tutorial004_an_py310", marks=needs_py310),
|
||||
],
|
||||
)
|
||||
|
||||
@@ -10,9 +10,7 @@ from ...utils import needs_py310
|
||||
@pytest.fixture(
|
||||
name="client",
|
||||
params=[
|
||||
pytest.param("tutorial005_py39"),
|
||||
pytest.param("tutorial005_py310", marks=needs_py310),
|
||||
pytest.param("tutorial005_an_py39"),
|
||||
pytest.param("tutorial005_an_py310", marks=needs_py310),
|
||||
],
|
||||
)
|
||||
|
||||
@@ -17,11 +17,8 @@ SET_OF_STR_SCHEMA = {"type": "array", "items": {"type": "string"}, "uniqueItems"
|
||||
@pytest.fixture(
|
||||
name="mod_name",
|
||||
params=[
|
||||
pytest.param("tutorial001_py39"),
|
||||
pytest.param("tutorial001_py310", marks=needs_py310),
|
||||
pytest.param("tutorial002_py39"),
|
||||
pytest.param("tutorial002_py310", marks=needs_py310),
|
||||
pytest.param("tutorial003_py39"),
|
||||
pytest.param("tutorial003_py310", marks=needs_py310),
|
||||
],
|
||||
)
|
||||
|
||||
@@ -11,7 +11,6 @@ from ...utils import needs_py310
|
||||
@pytest.fixture(
|
||||
name="client",
|
||||
params=[
|
||||
pytest.param("tutorial004_py39"),
|
||||
pytest.param("tutorial004_py310", marks=needs_py310),
|
||||
],
|
||||
)
|
||||
|
||||
@@ -11,7 +11,6 @@ from ...utils import needs_py310
|
||||
@pytest.fixture(
|
||||
name="client",
|
||||
params=[
|
||||
pytest.param("tutorial005_py39"),
|
||||
pytest.param("tutorial005_py310", marks=needs_py310),
|
||||
],
|
||||
)
|
||||
|
||||
@@ -11,7 +11,6 @@ from ...utils import needs_py310
|
||||
@pytest.fixture(
|
||||
name="client",
|
||||
params=[
|
||||
pytest.param("tutorial006_py39"),
|
||||
pytest.param("tutorial006_py310", marks=needs_py310),
|
||||
],
|
||||
)
|
||||
|
||||
@@ -10,7 +10,6 @@ from ...utils import needs_py310
|
||||
@pytest.fixture(
|
||||
name="client",
|
||||
params=[
|
||||
pytest.param("tutorial007_py39"),
|
||||
pytest.param("tutorial007_py310", marks=needs_py310),
|
||||
],
|
||||
)
|
||||
|
||||
@@ -10,7 +10,6 @@ from ...utils import needs_py310
|
||||
@pytest.fixture(
|
||||
name="client",
|
||||
params=[
|
||||
"tutorial001_py39",
|
||||
pytest.param("tutorial001_py310", marks=needs_py310),
|
||||
],
|
||||
)
|
||||
|
||||
@@ -10,7 +10,6 @@ from ...utils import needs_py310
|
||||
@pytest.fixture(
|
||||
name="client",
|
||||
params=[
|
||||
pytest.param("tutorial002_py39"),
|
||||
pytest.param("tutorial002_py310", marks=needs_py310),
|
||||
],
|
||||
)
|
||||
|
||||
@@ -10,9 +10,7 @@ from tests.utils import needs_py310
|
||||
@pytest.fixture(
|
||||
name="client",
|
||||
params=[
|
||||
"tutorial001_py39",
|
||||
pytest.param("tutorial001_py310", marks=needs_py310),
|
||||
"tutorial001_an_py39",
|
||||
pytest.param("tutorial001_an_py310", marks=needs_py310),
|
||||
],
|
||||
)
|
||||
|
||||
@@ -10,9 +10,7 @@ from tests.utils import needs_py310
|
||||
@pytest.fixture(
|
||||
name="client",
|
||||
params=[
|
||||
pytest.param("tutorial002_py39"),
|
||||
pytest.param("tutorial002_py310", marks=[needs_py310]),
|
||||
pytest.param("tutorial002_an_py39"),
|
||||
pytest.param("tutorial002_an_py310", marks=[needs_py310]),
|
||||
],
|
||||
)
|
||||
|
||||
@@ -11,9 +11,7 @@ from ...utils import needs_py310
|
||||
@pytest.fixture(
|
||||
name="mod",
|
||||
params=[
|
||||
"tutorial001_py39",
|
||||
pytest.param("tutorial001_py310", marks=needs_py310),
|
||||
"tutorial001_an_py39",
|
||||
pytest.param("tutorial001_an_py310", marks=needs_py310),
|
||||
],
|
||||
)
|
||||
|
||||
@@ -12,9 +12,7 @@ from tests.utils import needs_py310
|
||||
@pytest.fixture(
|
||||
name="client",
|
||||
params=[
|
||||
pytest.param("tutorial001_py39"),
|
||||
pytest.param("tutorial001_py310", marks=needs_py310),
|
||||
pytest.param("tutorial001_an_py39"),
|
||||
pytest.param("tutorial001_an_py310", marks=needs_py310),
|
||||
],
|
||||
)
|
||||
|
||||
@@ -10,9 +10,7 @@ from tests.utils import needs_py310
|
||||
@pytest.fixture(
|
||||
name="client",
|
||||
params=[
|
||||
pytest.param("tutorial002_py39"),
|
||||
pytest.param("tutorial002_py310", marks=needs_py310),
|
||||
pytest.param("tutorial002_an_py39"),
|
||||
pytest.param("tutorial002_an_py310", marks=needs_py310),
|
||||
],
|
||||
)
|
||||
|
||||
@@ -9,7 +9,6 @@ from tests.utils import needs_py310
|
||||
@pytest.fixture(
|
||||
name="client",
|
||||
params=[
|
||||
pytest.param("tutorial003_py39"),
|
||||
pytest.param("tutorial003_py310", marks=needs_py310),
|
||||
],
|
||||
)
|
||||
|
||||
@@ -10,7 +10,6 @@ from tests.utils import needs_py310
|
||||
@pytest.fixture(
|
||||
name="client",
|
||||
params=[
|
||||
pytest.param("tutorial001_py39"),
|
||||
pytest.param("tutorial001_py310", marks=needs_py310),
|
||||
],
|
||||
)
|
||||
|
||||
@@ -10,7 +10,6 @@ from tests.utils import needs_py310
|
||||
@pytest.fixture(
|
||||
name="client",
|
||||
params=[
|
||||
pytest.param("tutorial002_py39"),
|
||||
pytest.param("tutorial002_py310", marks=needs_py310),
|
||||
],
|
||||
)
|
||||
|
||||
@@ -10,7 +10,6 @@ from ...utils import needs_py310
|
||||
@pytest.fixture(
|
||||
name="client",
|
||||
params=[
|
||||
pytest.param("tutorial003_py39"),
|
||||
pytest.param("tutorial003_py310", marks=needs_py310),
|
||||
],
|
||||
)
|
||||
|
||||
@@ -10,11 +10,8 @@ from ...utils import needs_py310
|
||||
@pytest.fixture(
|
||||
name="client",
|
||||
params=[
|
||||
pytest.param("tutorial001_py39"),
|
||||
pytest.param("tutorial001_py310", marks=needs_py310),
|
||||
pytest.param("tutorial001_an_py39"),
|
||||
pytest.param("tutorial001_an_py310", marks=needs_py310),
|
||||
pytest.param("tutorial001_02_an_py39"),
|
||||
pytest.param("tutorial001_02_an_py310", marks=needs_py310),
|
||||
],
|
||||
)
|
||||
|
||||
@@ -10,17 +10,11 @@ from ...utils import needs_py310
|
||||
@pytest.fixture(
|
||||
name="client",
|
||||
params=[
|
||||
pytest.param("tutorial002_py39"),
|
||||
pytest.param("tutorial002_py310", marks=needs_py310),
|
||||
pytest.param("tutorial002_an_py39"),
|
||||
pytest.param("tutorial002_an_py310", marks=needs_py310),
|
||||
pytest.param("tutorial003_py39"),
|
||||
pytest.param("tutorial003_py310", marks=needs_py310),
|
||||
pytest.param("tutorial003_an_py39"),
|
||||
pytest.param("tutorial003_an_py310", marks=needs_py310),
|
||||
pytest.param("tutorial004_py39"),
|
||||
pytest.param("tutorial004_py310", marks=needs_py310),
|
||||
pytest.param("tutorial004_an_py39"),
|
||||
pytest.param("tutorial004_an_py310", marks=needs_py310),
|
||||
],
|
||||
)
|
||||
|
||||
@@ -10,9 +10,7 @@ from ...utils import needs_py310
|
||||
@pytest.fixture(
|
||||
name="client",
|
||||
params=[
|
||||
pytest.param("tutorial005_py39"),
|
||||
pytest.param("tutorial005_py310", marks=needs_py310),
|
||||
pytest.param("tutorial005_an_py39"),
|
||||
pytest.param("tutorial005_an_py310", marks=needs_py310),
|
||||
],
|
||||
)
|
||||
|
||||
@@ -11,7 +11,6 @@ from ...utils import needs_py310
|
||||
@pytest.fixture(
|
||||
name="mod",
|
||||
params=[
|
||||
pytest.param("tutorial001_py39"),
|
||||
pytest.param("tutorial001_py310", marks=needs_py310),
|
||||
],
|
||||
)
|
||||
|
||||
@@ -10,9 +10,7 @@ from ...utils import needs_py310
|
||||
@pytest.fixture(
|
||||
name="client",
|
||||
params=[
|
||||
pytest.param("tutorial001_py39"),
|
||||
pytest.param("tutorial001_py310", marks=needs_py310),
|
||||
pytest.param("tutorial001_an_py39"),
|
||||
pytest.param("tutorial001_an_py310", marks=needs_py310),
|
||||
],
|
||||
)
|
||||
|
||||
@@ -11,9 +11,7 @@ from ...utils import needs_py310
|
||||
@pytest.fixture(
|
||||
name="client",
|
||||
params=[
|
||||
pytest.param("tutorial001_py39"),
|
||||
pytest.param("tutorial001_py310", marks=needs_py310),
|
||||
pytest.param("tutorial002_py39"),
|
||||
pytest.param("tutorial002_py310", marks=needs_py310),
|
||||
],
|
||||
)
|
||||
|
||||
@@ -10,7 +10,6 @@ from ...utils import needs_py310
|
||||
@pytest.fixture(
|
||||
name="client",
|
||||
params=[
|
||||
pytest.param("tutorial003_py39"),
|
||||
pytest.param("tutorial003_py310", marks=needs_py310),
|
||||
],
|
||||
)
|
||||
|
||||
@@ -10,9 +10,7 @@ from tests.utils import needs_py310
|
||||
@pytest.fixture(
|
||||
name="client",
|
||||
params=[
|
||||
pytest.param("tutorial001_py39"),
|
||||
pytest.param("tutorial001_py310", marks=needs_py310),
|
||||
pytest.param("tutorial001_an_py39"),
|
||||
pytest.param("tutorial001_an_py310", marks=needs_py310),
|
||||
],
|
||||
)
|
||||
|
||||
@@ -10,9 +10,7 @@ from tests.utils import needs_py310
|
||||
@pytest.fixture(
|
||||
name="client",
|
||||
params=[
|
||||
pytest.param("tutorial002_py39"),
|
||||
pytest.param("tutorial002_py310", marks=[needs_py310]),
|
||||
pytest.param("tutorial002_an_py39"),
|
||||
pytest.param("tutorial002_an_py310", marks=[needs_py310]),
|
||||
],
|
||||
)
|
||||
|
||||
@@ -10,9 +10,7 @@ from tests.utils import needs_py310
|
||||
@pytest.fixture(
|
||||
name="client",
|
||||
params=[
|
||||
pytest.param("tutorial003_py39"),
|
||||
pytest.param("tutorial003_py310", marks=needs_py310),
|
||||
pytest.param("tutorial003_an_py39"),
|
||||
pytest.param("tutorial003_an_py310", marks=needs_py310),
|
||||
],
|
||||
)
|
||||
|
||||
@@ -10,9 +10,7 @@ from ...utils import needs_py310
|
||||
@pytest.fixture(
|
||||
name="client",
|
||||
params=[
|
||||
pytest.param("tutorial001_py39"),
|
||||
pytest.param("tutorial001_py310", marks=needs_py310),
|
||||
pytest.param("tutorial001_an_py39"),
|
||||
pytest.param("tutorial001_an_py310", marks=needs_py310),
|
||||
],
|
||||
)
|
||||
|
||||
@@ -10,9 +10,7 @@ from ...utils import needs_py310
|
||||
@pytest.fixture(
|
||||
name="client",
|
||||
params=[
|
||||
pytest.param("tutorial002_py39"),
|
||||
pytest.param("tutorial002_py310", marks=needs_py310),
|
||||
pytest.param("tutorial002_an_py39"),
|
||||
pytest.param("tutorial002_an_py310", marks=needs_py310),
|
||||
],
|
||||
)
|
||||
|
||||
@@ -10,9 +10,7 @@ from ...utils import needs_py310
|
||||
@pytest.fixture(
|
||||
name="client",
|
||||
params=[
|
||||
pytest.param("tutorial003_py39"),
|
||||
pytest.param("tutorial003_py310", marks=needs_py310),
|
||||
pytest.param("tutorial003_an_py39"),
|
||||
pytest.param("tutorial003_an_py310", marks=needs_py310),
|
||||
],
|
||||
)
|
||||
|
||||
@@ -11,7 +11,6 @@ from tests.utils import needs_py310
|
||||
@pytest.fixture(
|
||||
name="mod",
|
||||
params=[
|
||||
pytest.param("tutorial001_py39"),
|
||||
pytest.param("tutorial001_py310", marks=needs_py310),
|
||||
],
|
||||
)
|
||||
|
||||
@@ -10,7 +10,6 @@ from ...utils import needs_py310
|
||||
@pytest.fixture(
|
||||
name="client",
|
||||
params=[
|
||||
pytest.param("tutorial004_py39"),
|
||||
pytest.param("tutorial004_py310", marks=needs_py310),
|
||||
],
|
||||
)
|
||||
|
||||
@@ -11,7 +11,6 @@ from ...utils import needs_py310
|
||||
@pytest.fixture(
|
||||
name="client",
|
||||
params=[
|
||||
pytest.param("tutorial001_py39"),
|
||||
pytest.param("tutorial001_py310", marks=needs_py310),
|
||||
],
|
||||
)
|
||||
|
||||
@@ -11,7 +11,6 @@ from ...utils import needs_py310
|
||||
@pytest.fixture(
|
||||
name="client",
|
||||
params=[
|
||||
pytest.param("tutorial002_py39"),
|
||||
pytest.param("tutorial002_py310", marks=needs_py310),
|
||||
],
|
||||
)
|
||||
|
||||
@@ -25,9 +25,7 @@ DESCRIPTIONS = {
|
||||
@pytest.fixture(
|
||||
name="mod_name",
|
||||
params=[
|
||||
pytest.param("tutorial003_py39"),
|
||||
pytest.param("tutorial003_py310", marks=needs_py310),
|
||||
pytest.param("tutorial004_py39"),
|
||||
pytest.param("tutorial004_py310", marks=needs_py310),
|
||||
],
|
||||
)
|
||||
|
||||
@@ -10,7 +10,6 @@ from ...utils import needs_py310
|
||||
@pytest.fixture(
|
||||
name="client",
|
||||
params=[
|
||||
pytest.param("tutorial005_py39"),
|
||||
pytest.param("tutorial005_py310", marks=needs_py310),
|
||||
],
|
||||
)
|
||||
|
||||
@@ -10,9 +10,7 @@ from ...utils import needs_py310
|
||||
@pytest.fixture(
|
||||
name="client",
|
||||
params=[
|
||||
pytest.param("tutorial001_py39"),
|
||||
pytest.param("tutorial001_py310", marks=needs_py310),
|
||||
pytest.param("tutorial001_an_py39"),
|
||||
pytest.param("tutorial001_an_py310", marks=needs_py310),
|
||||
],
|
||||
)
|
||||
|
||||
@@ -9,7 +9,6 @@ from ...utils import needs_py310
|
||||
@pytest.mark.parametrize(
|
||||
"module_name",
|
||||
[
|
||||
pytest.param("tutorial011_py39"),
|
||||
pytest.param("tutorial011_py310", marks=needs_py310),
|
||||
],
|
||||
)
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
from docs_src.python_types.tutorial012_py39 import User
|
||||
from docs_src.python_types.tutorial012_py310 import User
|
||||
|
||||
|
||||
def test_user():
|
||||
|
||||
@@ -10,9 +10,7 @@ from tests.utils import needs_py310
|
||||
@pytest.fixture(
|
||||
name="client",
|
||||
params=[
|
||||
pytest.param("tutorial001_py39"),
|
||||
pytest.param("tutorial001_py310", marks=needs_py310),
|
||||
pytest.param("tutorial001_an_py39"),
|
||||
pytest.param("tutorial001_an_py310", marks=needs_py310),
|
||||
],
|
||||
)
|
||||
|
||||
@@ -10,9 +10,7 @@ from tests.utils import needs_py310
|
||||
@pytest.fixture(
|
||||
name="client",
|
||||
params=[
|
||||
pytest.param("tutorial002_py39"),
|
||||
pytest.param("tutorial002_py310", marks=[needs_py310]),
|
||||
pytest.param("tutorial002_an_py39"),
|
||||
pytest.param("tutorial002_an_py310", marks=[needs_py310]),
|
||||
],
|
||||
)
|
||||
|
||||
@@ -10,7 +10,6 @@ from ...utils import needs_py310
|
||||
@pytest.fixture(
|
||||
name="client",
|
||||
params=[
|
||||
pytest.param("tutorial002_py39"),
|
||||
pytest.param("tutorial002_py310", marks=needs_py310),
|
||||
],
|
||||
)
|
||||
|
||||
@@ -10,7 +10,6 @@ from ...utils import needs_py310
|
||||
@pytest.fixture(
|
||||
name="client",
|
||||
params=[
|
||||
pytest.param("tutorial003_py39"),
|
||||
pytest.param("tutorial003_py310", marks=needs_py310),
|
||||
],
|
||||
)
|
||||
|
||||
@@ -10,7 +10,6 @@ from ...utils import needs_py310
|
||||
@pytest.fixture(
|
||||
name="client",
|
||||
params=[
|
||||
pytest.param("tutorial004_py39"),
|
||||
pytest.param("tutorial004_py310", marks=needs_py310),
|
||||
],
|
||||
)
|
||||
|
||||
@@ -10,7 +10,6 @@ from ...utils import needs_py310
|
||||
@pytest.fixture(
|
||||
name="client",
|
||||
params=[
|
||||
pytest.param("tutorial006_py39"),
|
||||
pytest.param("tutorial006_py310", marks=needs_py310),
|
||||
],
|
||||
)
|
||||
|
||||
@@ -10,7 +10,6 @@ from ...utils import needs_py310
|
||||
@pytest.fixture(
|
||||
name="client",
|
||||
params=[
|
||||
pytest.param("tutorial001_py39"),
|
||||
pytest.param("tutorial001_py310", marks=needs_py310),
|
||||
],
|
||||
)
|
||||
|
||||
@@ -10,9 +10,7 @@ from ...utils import needs_py310
|
||||
@pytest.fixture(
|
||||
name="client",
|
||||
params=[
|
||||
pytest.param("tutorial002_py39"),
|
||||
pytest.param("tutorial002_py310", marks=needs_py310),
|
||||
pytest.param("tutorial002_an_py39"),
|
||||
pytest.param("tutorial002_an_py310", marks=needs_py310),
|
||||
],
|
||||
)
|
||||
|
||||
@@ -10,9 +10,7 @@ from ...utils import needs_py310
|
||||
@pytest.fixture(
|
||||
name="client",
|
||||
params=[
|
||||
pytest.param("tutorial003_py39"),
|
||||
pytest.param("tutorial003_py310", marks=needs_py310),
|
||||
pytest.param("tutorial003_an_py39"),
|
||||
pytest.param("tutorial003_an_py310", marks=needs_py310),
|
||||
],
|
||||
)
|
||||
|
||||
@@ -10,19 +10,8 @@ from ...utils import needs_py310
|
||||
@pytest.fixture(
|
||||
name="client",
|
||||
params=[
|
||||
pytest.param("tutorial004_py39"),
|
||||
pytest.param("tutorial004_py310", marks=needs_py310),
|
||||
pytest.param("tutorial004_an_py39"),
|
||||
pytest.param("tutorial004_an_py310", marks=needs_py310),
|
||||
pytest.param(
|
||||
"tutorial004_regex_an_py310",
|
||||
marks=(
|
||||
needs_py310,
|
||||
pytest.mark.filterwarnings(
|
||||
"ignore:`regex` has been deprecated, please use `pattern` instead:fastapi.exceptions.FastAPIDeprecationWarning"
|
||||
),
|
||||
),
|
||||
),
|
||||
],
|
||||
)
|
||||
def get_client(request: pytest.FixtureRequest):
|
||||
|
||||
@@ -10,9 +10,7 @@ from ...utils import needs_py310
|
||||
@pytest.fixture(
|
||||
name="client",
|
||||
params=[
|
||||
pytest.param("tutorial006c_py39"),
|
||||
pytest.param("tutorial006c_py310", marks=needs_py310),
|
||||
pytest.param("tutorial006c_an_py39"),
|
||||
pytest.param("tutorial006c_an_py310", marks=needs_py310),
|
||||
],
|
||||
)
|
||||
|
||||
@@ -10,9 +10,7 @@ from ...utils import needs_py310
|
||||
@pytest.fixture(
|
||||
name="client",
|
||||
params=[
|
||||
pytest.param("tutorial007_py39"),
|
||||
pytest.param("tutorial007_py310", marks=needs_py310),
|
||||
pytest.param("tutorial007_an_py39"),
|
||||
pytest.param("tutorial007_an_py310", marks=needs_py310),
|
||||
],
|
||||
)
|
||||
|
||||
@@ -10,9 +10,7 @@ from ...utils import needs_py310
|
||||
@pytest.fixture(
|
||||
name="client",
|
||||
params=[
|
||||
pytest.param("tutorial008_py39"),
|
||||
pytest.param("tutorial008_py310", marks=needs_py310),
|
||||
pytest.param("tutorial008_an_py39"),
|
||||
pytest.param("tutorial008_an_py310", marks=needs_py310),
|
||||
],
|
||||
)
|
||||
|
||||
@@ -10,9 +10,7 @@ from ...utils import needs_py310
|
||||
@pytest.fixture(
|
||||
name="client",
|
||||
params=[
|
||||
pytest.param("tutorial009_py39"),
|
||||
pytest.param("tutorial009_py310", marks=needs_py310),
|
||||
pytest.param("tutorial009_an_py39"),
|
||||
pytest.param("tutorial009_an_py310", marks=needs_py310),
|
||||
],
|
||||
)
|
||||
|
||||
@@ -11,9 +11,7 @@ from ...utils import needs_py310
|
||||
@pytest.fixture(
|
||||
name="client",
|
||||
params=[
|
||||
pytest.param("tutorial010_py39"),
|
||||
pytest.param("tutorial010_py310", marks=needs_py310),
|
||||
pytest.param("tutorial010_an_py39"),
|
||||
pytest.param("tutorial010_an_py310", marks=needs_py310),
|
||||
],
|
||||
)
|
||||
|
||||
@@ -10,9 +10,7 @@ from ...utils import needs_py310
|
||||
@pytest.fixture(
|
||||
name="client",
|
||||
params=[
|
||||
pytest.param("tutorial011_py39"),
|
||||
pytest.param("tutorial011_py310", marks=needs_py310),
|
||||
pytest.param("tutorial011_an_py39"),
|
||||
pytest.param("tutorial011_an_py310", marks=needs_py310),
|
||||
],
|
||||
)
|
||||
|
||||
@@ -10,9 +10,7 @@ from ...utils import needs_py310
|
||||
@pytest.fixture(
|
||||
name="client",
|
||||
params=[
|
||||
pytest.param("tutorial014_py39"),
|
||||
pytest.param("tutorial014_py310", marks=needs_py310),
|
||||
pytest.param("tutorial014_an_py39"),
|
||||
pytest.param("tutorial014_an_py310", marks=needs_py310),
|
||||
],
|
||||
)
|
||||
|
||||
@@ -11,7 +11,6 @@ from ...utils import needs_py310
|
||||
@pytest.fixture(
|
||||
name="client",
|
||||
params=[
|
||||
pytest.param("tutorial015_an_py39"),
|
||||
pytest.param("tutorial015_an_py310", marks=[needs_py310]),
|
||||
],
|
||||
)
|
||||
|
||||
@@ -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),
|
||||
],
|
||||
)
|
||||
|
||||
@@ -10,7 +10,6 @@ from ...utils import needs_py310
|
||||
@pytest.fixture(
|
||||
name="client",
|
||||
params=[
|
||||
pytest.param("tutorial001_py39"),
|
||||
pytest.param("tutorial001_py310", marks=needs_py310),
|
||||
],
|
||||
)
|
||||
|
||||
@@ -10,9 +10,7 @@ from ...utils import needs_py310
|
||||
@pytest.fixture(
|
||||
name="client",
|
||||
params=[
|
||||
pytest.param("tutorial001_py39"),
|
||||
pytest.param("tutorial001_py310", marks=needs_py310),
|
||||
pytest.param("tutorial001_01_py39"),
|
||||
pytest.param("tutorial001_01_py310", marks=needs_py310),
|
||||
],
|
||||
)
|
||||
|
||||
@@ -10,7 +10,6 @@ from ...utils import needs_py310
|
||||
@pytest.fixture(
|
||||
name="client",
|
||||
params=[
|
||||
pytest.param("tutorial002_py39"),
|
||||
pytest.param("tutorial002_py310", marks=needs_py310),
|
||||
],
|
||||
)
|
||||
|
||||
@@ -10,7 +10,6 @@ from ...utils import needs_py310
|
||||
@pytest.fixture(
|
||||
name="client",
|
||||
params=[
|
||||
pytest.param("tutorial003_py39"),
|
||||
pytest.param("tutorial003_py310", marks=needs_py310),
|
||||
],
|
||||
)
|
||||
|
||||
@@ -10,7 +10,6 @@ from ...utils import needs_py310
|
||||
@pytest.fixture(
|
||||
name="client",
|
||||
params=[
|
||||
pytest.param("tutorial003_01_py39"),
|
||||
pytest.param("tutorial003_01_py310", marks=needs_py310),
|
||||
],
|
||||
)
|
||||
|
||||
@@ -9,7 +9,6 @@ from ...utils import needs_py310
|
||||
@pytest.mark.parametrize(
|
||||
"module_name",
|
||||
[
|
||||
pytest.param("tutorial003_04_py39"),
|
||||
pytest.param("tutorial003_04_py310", marks=needs_py310),
|
||||
],
|
||||
)
|
||||
|
||||
@@ -10,7 +10,6 @@ from ...utils import needs_py310
|
||||
@pytest.fixture(
|
||||
name="client",
|
||||
params=[
|
||||
pytest.param("tutorial003_05_py39"),
|
||||
pytest.param("tutorial003_05_py310", marks=needs_py310),
|
||||
],
|
||||
)
|
||||
|
||||
@@ -10,7 +10,6 @@ from ...utils import needs_py310
|
||||
@pytest.fixture(
|
||||
name="client",
|
||||
params=[
|
||||
pytest.param("tutorial004_py39"),
|
||||
pytest.param("tutorial004_py310", marks=needs_py310),
|
||||
],
|
||||
)
|
||||
|
||||
@@ -10,7 +10,6 @@ from ...utils import needs_py310
|
||||
@pytest.fixture(
|
||||
name="client",
|
||||
params=[
|
||||
pytest.param("tutorial005_py39"),
|
||||
pytest.param("tutorial005_py310", marks=needs_py310),
|
||||
],
|
||||
)
|
||||
|
||||
@@ -10,7 +10,6 @@ from ...utils import needs_py310
|
||||
@pytest.fixture(
|
||||
name="client",
|
||||
params=[
|
||||
pytest.param("tutorial006_py39"),
|
||||
pytest.param("tutorial006_py310", marks=needs_py310),
|
||||
],
|
||||
)
|
||||
|
||||
@@ -10,7 +10,6 @@ from ...utils import needs_py310
|
||||
@pytest.fixture(
|
||||
name="client",
|
||||
params=[
|
||||
pytest.param("tutorial001_py39"),
|
||||
pytest.param("tutorial001_py310", marks=needs_py310),
|
||||
],
|
||||
)
|
||||
|
||||
@@ -10,7 +10,6 @@ from ...utils import needs_py310
|
||||
@pytest.fixture(
|
||||
name="client",
|
||||
params=[
|
||||
pytest.param("tutorial002_py39"),
|
||||
pytest.param("tutorial002_py310", marks=needs_py310),
|
||||
],
|
||||
)
|
||||
|
||||
@@ -10,9 +10,7 @@ from ...utils import needs_py310
|
||||
@pytest.fixture(
|
||||
name="client",
|
||||
params=[
|
||||
pytest.param("tutorial003_py39"),
|
||||
pytest.param("tutorial003_py310", marks=needs_py310),
|
||||
pytest.param("tutorial003_an_py39"),
|
||||
pytest.param("tutorial003_an_py310", marks=needs_py310),
|
||||
],
|
||||
)
|
||||
|
||||
@@ -10,9 +10,7 @@ from ...utils import needs_py310
|
||||
@pytest.fixture(
|
||||
name="client",
|
||||
params=[
|
||||
pytest.param("tutorial004_py39"),
|
||||
pytest.param("tutorial004_py310", marks=needs_py310),
|
||||
pytest.param("tutorial004_an_py39"),
|
||||
pytest.param("tutorial004_an_py310", marks=needs_py310),
|
||||
],
|
||||
)
|
||||
|
||||
@@ -10,9 +10,7 @@ from ...utils import needs_py310
|
||||
@pytest.fixture(
|
||||
name="client",
|
||||
params=[
|
||||
pytest.param("tutorial005_py39"),
|
||||
pytest.param("tutorial005_py310", marks=needs_py310),
|
||||
pytest.param("tutorial005_an_py39"),
|
||||
pytest.param("tutorial005_an_py310", marks=needs_py310),
|
||||
],
|
||||
)
|
||||
|
||||
@@ -10,9 +10,7 @@ from ...utils import needs_py310
|
||||
@pytest.fixture(
|
||||
name="client",
|
||||
params=[
|
||||
pytest.param("tutorial002_py39"),
|
||||
pytest.param("tutorial002_py310", marks=needs_py310),
|
||||
pytest.param("tutorial002_an_py39"),
|
||||
pytest.param("tutorial002_an_py310", marks=needs_py310),
|
||||
],
|
||||
)
|
||||
|
||||
@@ -10,9 +10,7 @@ from ...utils import needs_py310
|
||||
@pytest.fixture(
|
||||
name="client",
|
||||
params=[
|
||||
pytest.param("tutorial003_py39"),
|
||||
pytest.param("tutorial003_py310", marks=needs_py310),
|
||||
pytest.param("tutorial003_an_py39"),
|
||||
pytest.param("tutorial003_an_py310", marks=needs_py310),
|
||||
],
|
||||
)
|
||||
|
||||
@@ -12,9 +12,7 @@ from ...utils import needs_py310
|
||||
@pytest.fixture(
|
||||
name="mod",
|
||||
params=[
|
||||
pytest.param("tutorial004_py39"),
|
||||
pytest.param("tutorial004_py310", marks=needs_py310),
|
||||
pytest.param("tutorial004_an_py39"),
|
||||
pytest.param("tutorial004_an_py310", marks=needs_py310),
|
||||
],
|
||||
)
|
||||
|
||||
@@ -11,9 +11,7 @@ from ...utils import needs_py310
|
||||
@pytest.fixture(
|
||||
name="mod",
|
||||
params=[
|
||||
pytest.param("tutorial005_py39"),
|
||||
pytest.param("tutorial005_py310", marks=needs_py310),
|
||||
pytest.param("tutorial005_an_py39"),
|
||||
pytest.param("tutorial005_an_py310", marks=needs_py310),
|
||||
],
|
||||
)
|
||||
|
||||
@@ -10,7 +10,6 @@ from ...utils import needs_py310
|
||||
@pytest.fixture(
|
||||
name="client",
|
||||
params=[
|
||||
pytest.param("tutorial001_py39"),
|
||||
pytest.param("tutorial001_py310", marks=needs_py310),
|
||||
],
|
||||
)
|
||||
|
||||
@@ -10,7 +10,6 @@ from ...utils import needs_py310
|
||||
@pytest.fixture(
|
||||
name="client",
|
||||
params=[
|
||||
pytest.param("tutorial002_py39"),
|
||||
pytest.param("tutorial002_py310", marks=needs_py310),
|
||||
],
|
||||
)
|
||||
|
||||
@@ -22,9 +22,7 @@ def clear_sqlmodel():
|
||||
@pytest.fixture(
|
||||
name="client",
|
||||
params=[
|
||||
pytest.param("tutorial001_py39"),
|
||||
pytest.param("tutorial001_py310", marks=needs_py310),
|
||||
pytest.param("tutorial001_an_py39"),
|
||||
pytest.param("tutorial001_an_py310", marks=needs_py310),
|
||||
],
|
||||
)
|
||||
|
||||
@@ -22,9 +22,7 @@ def clear_sqlmodel():
|
||||
@pytest.fixture(
|
||||
name="client",
|
||||
params=[
|
||||
pytest.param("tutorial002_py39"),
|
||||
pytest.param("tutorial002_py310", marks=needs_py310),
|
||||
pytest.param("tutorial002_an_py39"),
|
||||
pytest.param("tutorial002_an_py310", marks=needs_py310),
|
||||
],
|
||||
)
|
||||
|
||||
@@ -9,9 +9,7 @@ from ...utils import needs_py310
|
||||
@pytest.fixture(
|
||||
name="test_module",
|
||||
params=[
|
||||
pytest.param("tutorial001_py39"),
|
||||
pytest.param("tutorial001_py310", marks=needs_py310),
|
||||
pytest.param("tutorial001_an_py39"),
|
||||
pytest.param("tutorial001_an_py310", marks=needs_py310),
|
||||
],
|
||||
)
|
||||
|
||||
@@ -11,9 +11,7 @@ from ...utils import needs_py310
|
||||
@pytest.fixture(
|
||||
name="app",
|
||||
params=[
|
||||
pytest.param("tutorial002_py39"),
|
||||
pytest.param("tutorial002_py310", marks=needs_py310),
|
||||
pytest.param("tutorial002_an_py39"),
|
||||
pytest.param("tutorial002_an_py310", marks=needs_py310),
|
||||
],
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user