~95% on SimpleQA (e.g. Qwen3.6-27B on a 3090). Supports all local and cloud LLMs (llama.cpp, Ollama, Google, ...). 10+ search engines - arXiv, PubMed, your private documents. Everything Local & Encrypted.
Python academiaanthropicarxivbravedeep-researchencryptionhome-automationhomeserverlocallocal-deep-researchlocal-llmmistralollamaopenaipubmedresearchresearch-toolretrieval-augmented-generationsearxngself-hosted
test: await form parsing in encoding checks (#7269)
LearningCircuitdadae5afaded
diff --git a/tests/web/test_encoding_and_non_ascii.py b/tests/web/test_encoding_and_non_ascii.pyindex 6b43ad8d76..68fb0b3c3b 100644--- a/tests/web/test_encoding_and_non_ascii.py+++ b/tests/web/test_encoding_and_non_ascii.py@@ -759,7 +759,8 @@ _MULTIPART_CT = b"multipart/form-data; boundary=" + _BOUNDARYclass TestMultipartFilenameEncoding:- def test_raw_utf8_filename_and_field_decode_identically_both_sides(+ @pytest.mark.asyncio+ async def test_raw_utf8_filename_and_field_decode_identically_both_sides(self,):"""Positive control: the ordinary case is fine and at parity.@@ -788,7 +789,7 @@ class TestMultipartFilenameEncoding:)request = _starlette_request(body, _MULTIPART_CT)- form = asyncio.run(request.form())+ form = await request.form()werkzeug_files = _werkzeug_request(body, _MULTIPART_CT.decode("ascii")).files@@ -811,7 +812,8 @@ class TestMultipartFilenameEncoding:assert "files" in filesassert files["files"].filename == "研究.pdf"- def test_starlette_turns_that_part_into_a_plain_form_string(self):+ @pytest.mark.asyncio+ async def test_starlette_turns_that_part_into_a_plain_form_string(self):"""The mechanism behind the xfail below, pinned on its own.Starlette's multipart parser looks only for a ``filename``@@ -824,7 +826,7 @@ class TestMultipartFilenameEncoding:from starlette.datastructures import UploadFilerequest = _starlette_request(_FILENAME_STAR_PART, _MULTIPART_CT)- form = asyncio.run(request.form())+ form = await request.form()value = form["files"]assert not isinstance(value, UploadFile)@@ -849,11 +851,12 @@ class TestMultipartFilenameEncoding:"pin/patch the parser."),)- def test_a_filename_star_part_should_arrive_as_a_named_upload(self):+ @pytest.mark.asyncio+ async def test_a_filename_star_part_should_arrive_as_a_named_upload(self):from starlette.datastructures import UploadFilerequest = _starlette_request(_FILENAME_STAR_PART, _MULTIPART_CT)- form = asyncio.run(request.form())+ form = await request.form()uploads = [part@@ -865,7 +868,8 @@ class TestMultipartFilenameEncoding:class TestUrlencodedFormBodyEncoding:- def test_invalid_utf8_in_a_form_field_diverges_from_werkzeug(self):+ @pytest.mark.asyncio+ async def test_invalid_utf8_in_a_form_field_diverges_from_werkzeug(self):"""Pinned divergence, both sides executed.Werkzeug leaves an undecodable percent-escape as the literal text@@ -879,9 +883,9 @@ class TestUrlencodedFormBodyEncoding:body = b"password=%FF&username=bob"content_type = "application/x-www-form-urlencoded"- starlette_form = asyncio.run(- _starlette_request(body, content_type.encode("ascii")).form()- )+ starlette_form = await _starlette_request(+ body, content_type.encode("ascii")+ ).form()werkzeug_form = _werkzeug_request(body, content_type).formassert werkzeug_form["password"] == "%FF"