diff --git a/ilot/uvicorn/APKBUILD b/ilot/uvicorn/APKBUILD index 5ea5545..1f14918 100644 --- a/ilot/uvicorn/APKBUILD +++ b/ilot/uvicorn/APKBUILD @@ -29,6 +29,7 @@ source="https://github.com/encode/uvicorn/archive/$pkgver/uvicorn-$pkgver.tar.gz test_multiprocess.patch 2540_add-websocketssansioprotocol.patch 2541_bump-wesockets-on-requirements.patch + fix-test-wsgi.patch " build() { @@ -54,4 +55,5 @@ sha512sums=" cfad91dd84f8974362f52d754d7a29f09d07927a46acaa0eb490b6115a5729d84d6df94fead10ccd4cce7f5ea376f1348b0f59daede661dd8373a3851c313c46 test_multiprocess.patch 858e9a7baaf1c12e076aecd81aaaf622b35a59dcaabea4ee1bfc4cda704c9fe271b1cc616a5910d845393717e4989cecb3b04be249cb5d0df1001ec5224c293f 2540_add-websocketssansioprotocol.patch f8a8c190981b9070232ea985880685bc801947cc7f673d59abf73d3e68bc2e13515ad200232a1de2af0808bc85da48a341f57d47caf87bcc190bfdc3c45718e0 2541_bump-wesockets-on-requirements.patch +379963f9ccbda013e4a0bc3441eee70a581c91f60206aedc15df6a8737950824b7cb8d867774fc415763449bb3e0bba66601e8551101bfc1741098acd035f0cc fix-test-wsgi.patch " diff --git a/ilot/uvicorn/fix-test-wsgi.patch b/ilot/uvicorn/fix-test-wsgi.patch new file mode 100644 index 0000000..ed49e52 --- /dev/null +++ b/ilot/uvicorn/fix-test-wsgi.patch @@ -0,0 +1,13 @@ +diff --git a/tests/middleware/test_wsgi.py.orig b/tests/middleware/test_wsgi.py +index 6003f27..2750487 100644 +--- a/tests/middleware/test_wsgi.py.orig ++++ b/tests/middleware/test_wsgi.py +@@ -73,7 +73,7 @@ async def test_wsgi_post(wsgi_middleware: Callable) -> None: + async with httpx.AsyncClient(transport=transport, base_url="http://testserver") as client: + response = await client.post("/", json={"example": 123}) + assert response.status_code == 200 +- assert response.text == '{"example":123}' ++ assert response.text == '{"example": 123}' + + + @pytest.mark.anyio