diff --git a/tests/routing/test_syntax_enum.py b/tests/routing/test_syntax_enum.py index 76d5a984..20edf470 100644 --- a/tests/routing/test_syntax_enum.py +++ b/tests/routing/test_syntax_enum.py @@ -5,7 +5,7 @@ from esmerald import Gateway, JSONResponse, get from esmerald.testclient import create_client -pydantic_version = ".".join(__version__.split(".")[:2]) +pydantic_version = __version__ class ItemType(str, Enum): @@ -20,14 +20,12 @@ async def item(item_type: ItemType) -> JSONResponse: def test_syntax(): with create_client(routes=[Gateway(handler=item)]) as client: - response = client.get("/item/sold") assert response.json() == {"item_type": "sold"} def test_syntax_fail(): with create_client(routes=[Gateway(handler=item)]) as client: - response = client.get("/item/test") assert response.status_code == 400 diff --git a/tests/security/oauth/test_security_oauth2_optional_desc.py b/tests/security/oauth/test_security_oauth2_optional_desc.py index c28d7724..1ba97cec 100644 --- a/tests/security/oauth/test_security_oauth2_optional_desc.py +++ b/tests/security/oauth/test_security_oauth2_optional_desc.py @@ -6,7 +6,7 @@ from esmerald.security.oauth2 import OAuth2, OAuth2PasswordRequestFormStrict from esmerald.testclient import create_client -pydantic_version = __version__[:3] +pydantic_version = __version__ reusable_oauth2 = OAuth2( flows={