Browse Source

💡 Tweak TODO comments to make them easier for me to find them

pull/14569/head
Sebastián Ramírez 7 months ago
parent
commit
8e1aad2ecf
  1. 2
      tests/test_tutorial/test_body/test_tutorial002.py
  2. 2
      tests/test_tutorial/test_body/test_tutorial003.py
  3. 2
      tests/test_tutorial/test_body/test_tutorial004.py
  4. 2
      tests/test_tutorial/test_body_updates/test_tutorial002.py
  5. 2
      tests/test_tutorial/test_extra_models/test_tutorial001_tutorial002.py

2
tests/test_tutorial/test_body/test_tutorial002.py

@ -6,7 +6,7 @@ from fastapi.testclient import TestClient
from ...utils import needs_py310, needs_pydanticv2
# Remove when deprecating Pydantic v1
# TODO: Remove when deprecating Pydantic v1
pytestmark = [
pytest.mark.filterwarnings(
"ignore:The `dict` method is deprecated; use `model_dump` instead.:DeprecationWarning"

2
tests/test_tutorial/test_body/test_tutorial003.py

@ -5,7 +5,7 @@ from fastapi.testclient import TestClient
from ...utils import needs_py310, needs_pydanticv2
# Remove when deprecating Pydantic v1
# TODO: Remove when deprecating Pydantic v1
pytestmark = [
pytest.mark.filterwarnings(
"ignore:The `dict` method is deprecated; use `model_dump` instead.:DeprecationWarning"

2
tests/test_tutorial/test_body/test_tutorial004.py

@ -5,7 +5,7 @@ from fastapi.testclient import TestClient
from ...utils import needs_py310, needs_pydanticv2
# Remove when deprecating Pydantic v1
# TODO: Remove when deprecating Pydantic v1
pytestmark = [
pytest.mark.filterwarnings(
"ignore:The `dict` method is deprecated; use `model_dump` instead.:DeprecationWarning"

2
tests/test_tutorial/test_body_updates/test_tutorial002.py

@ -5,7 +5,7 @@ from fastapi.testclient import TestClient
from ...utils import needs_py310, needs_pydanticv2
# Remove when deprecating Pydantic v1
# TODO: Remove when deprecating Pydantic v1
pytestmark = [
pytest.mark.filterwarnings(
"ignore:The `copy` method is deprecated; use `model_copy` instead.:DeprecationWarning",

2
tests/test_tutorial/test_extra_models/test_tutorial001_tutorial002.py

@ -6,7 +6,7 @@ from fastapi.testclient import TestClient
from ...utils import needs_py310, needs_pydanticv2
# Remove when deprecating Pydantic v1
# TODO: Remove when deprecating Pydantic v1
pytestmark = [
pytest.mark.filterwarnings(
"ignore:The `dict` method is deprecated; use `model_dump` instead.:DeprecationWarning",

Loading…
Cancel
Save