From ecffbf617dcbcae513f7ec5835a5562ac9063a40 Mon Sep 17 00:00:00 2001 From: svlandeg Date: Wed, 22 Oct 2025 14:52:09 +0200 Subject: [PATCH] skip ujson and orjson tests --- pyproject.toml | 2 +- tests/test_tutorial/test_custom_response/test_tutorial001.py | 4 ++++ tests/test_tutorial/test_custom_response/test_tutorial001b.py | 4 ++++ tests/test_tutorial/test_custom_response/test_tutorial009c.py | 3 +++ 4 files changed, 12 insertions(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index 3fd0e18b5c..4c4c71c896 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -111,7 +111,7 @@ all = [ # For UJSONResponse # "ujson >=4.0.1,!=4.0.2,!=4.1.0,!=4.2.0,!=4.3.0,!=5.0.0,!=5.1.0", # For ORJSONResponse - "orjson >=3.2.1", + # "orjson >=3.2.1", # To validate email fields "email-validator >=2.0.0", # Uvicorn with uvloop diff --git a/tests/test_tutorial/test_custom_response/test_tutorial001.py b/tests/test_tutorial/test_custom_response/test_tutorial001.py index fc83624673..ce0b54ca6c 100644 --- a/tests/test_tutorial/test_custom_response/test_tutorial001.py +++ b/tests/test_tutorial/test_custom_response/test_tutorial001.py @@ -1,3 +1,5 @@ +import pytest + from fastapi.testclient import TestClient from docs_src.custom_response.tutorial001 import app @@ -5,12 +7,14 @@ from docs_src.custom_response.tutorial001 import app client = TestClient(app) +@pytest.mark.skip(reason="skipping ujson tests") def test_get_custom_response(): response = client.get("/items/") assert response.status_code == 200, response.text assert response.json() == [{"item_id": "Foo"}] +@pytest.mark.skip(reason="skipping ujson tests") def test_openapi_schema(): response = client.get("/openapi.json") assert response.status_code == 200, response.text diff --git a/tests/test_tutorial/test_custom_response/test_tutorial001b.py b/tests/test_tutorial/test_custom_response/test_tutorial001b.py index 91e5c501e3..12ed2dcf92 100644 --- a/tests/test_tutorial/test_custom_response/test_tutorial001b.py +++ b/tests/test_tutorial/test_custom_response/test_tutorial001b.py @@ -1,3 +1,5 @@ +import pytest + from fastapi.testclient import TestClient from docs_src.custom_response.tutorial001b import app @@ -5,12 +7,14 @@ from docs_src.custom_response.tutorial001b import app client = TestClient(app) +@pytest.mark.skip(reason="skipping orjson tests") def test_get_custom_response(): response = client.get("/items/") assert response.status_code == 200, response.text assert response.json() == [{"item_id": "Foo"}] +@pytest.mark.skip(reason="skipping orjson tests") def test_openapi_schema(): response = client.get("/openapi.json") assert response.status_code == 200, response.text diff --git a/tests/test_tutorial/test_custom_response/test_tutorial009c.py b/tests/test_tutorial/test_custom_response/test_tutorial009c.py index 23c711abe9..113830a503 100644 --- a/tests/test_tutorial/test_custom_response/test_tutorial009c.py +++ b/tests/test_tutorial/test_custom_response/test_tutorial009c.py @@ -1,3 +1,5 @@ +import pytest + from fastapi.testclient import TestClient from docs_src.custom_response.tutorial009c import app @@ -5,6 +7,7 @@ from docs_src.custom_response.tutorial009c import app client = TestClient(app) +@pytest.mark.skip(reason="skipping orjson tests") def test_get(): response = client.get("/") assert response.content == b'{\n "message": "Hello World"\n}' -- 2.47.3