]> git.ipfire.org Git - thirdparty/fastapi/fastapi.git/commitdiff
skip ujson and orjson tests
authorsvlandeg <svlandeg@github.com>
Wed, 22 Oct 2025 12:52:09 +0000 (14:52 +0200)
committersvlandeg <svlandeg@github.com>
Wed, 22 Oct 2025 12:52:09 +0000 (14:52 +0200)
pyproject.toml
tests/test_tutorial/test_custom_response/test_tutorial001.py
tests/test_tutorial/test_custom_response/test_tutorial001b.py
tests/test_tutorial/test_custom_response/test_tutorial009c.py

index 3fd0e18b5cfe63c8cadd9b8dacfee00057848524..4c4c71c896556ca8c8132c54bc6d3b5adf22b901 100644 (file)
@@ -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
index fc8362467362eb72a0400bcb8fbf9287485ffe40..ce0b54ca6c672a619e1019d9136252b96f75619a 100644 (file)
@@ -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
index 91e5c501e3fad25746269a2ec7d8855363200e7f..12ed2dcf921242781eb53a1fd06766ffec136eda 100644 (file)
@@ -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
index 23c711abe9a0e5380f8a16a1e890ba1b6e55baa9..113830a503cb2f950cc570df92d84155f7e25608 100644 (file)
@@ -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}'