~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
fix: revert settings type-conversion tests to use known seeded keys (#3170)
LearningCircuitfde7b4e0b511
diff --git a/tests/web/routes/test_settings_routes.py b/tests/web/routes/test_settings_routes.pyindex 9b17585a82..62f645e4e7 100644--- a/tests/web/routes/test_settings_routes.py+++ b/tests/web/routes/test_settings_routes.py@@ -1,6 +1,5 @@"""Tests for settings_routes module - Settings API endpoints."""-import pytestfrom unittest.mock import patch, MagicMock, MockSETTINGS_PREFIX = "/settings"@@ -976,23 +975,12 @@ class TestApiUpdateSettingTypeConversion:def test_put_string_number_stored_as_int(self, authenticated_client):"""PUT string "999" for number setting -> GET returns int 999."""- # Find a number setting to test with — scan all settings for one- # with ui_element == "number" since specific keys may not be seeded- all_resp = authenticated_client.get(f"{SETTINGS_PREFIX}/api/all")- assert all_resp.status_code == 200- all_settings = all_resp.get_json()-- number_setting = None- for s in all_settings:- if s.get("ui_element") == "number" and s.get("editable", True):- number_setting = s- break-- if number_setting is None:- pytest.skip("No editable number setting found in test database")-- key = number_setting["key"]- original_value = number_setting["value"]+ # Use search.iterations — a number setting seeded from defaults+ key = "search.iterations"+ get_resp = authenticated_client.get(f"{SETTINGS_PREFIX}/api/{key}")+ assert get_resp.status_code == 200+ original = get_resp.get_json()+ assert original["ui_element"] == "number"# PUT a string numberput_resp = authenticated_client.put(@@ -1012,29 +1000,18 @@ class TestApiUpdateSettingTypeConversion:# Restore original valueauthenticated_client.put(f"{SETTINGS_PREFIX}/api/{key}",- json={"value": original_value},+ json={"value": original["value"]},content_type="application/json",)def test_put_string_bool_stored_as_bool(self, authenticated_client):"""PUT string "true" for checkbox setting -> GET returns bool True."""- # Find a checkbox setting dynamically since specific keys may- # not be seeded in the test database- all_resp = authenticated_client.get(f"{SETTINGS_PREFIX}/api/all")- assert all_resp.status_code == 200- all_settings = all_resp.get_json()-- checkbox_setting = None- for s in all_settings:- if s.get("ui_element") == "checkbox" and s.get("editable", True):- checkbox_setting = s- break-- if checkbox_setting is None:- pytest.skip("No editable checkbox setting found in test database")-- key = checkbox_setting["key"]- original_value = checkbox_setting["value"]+ # Use app.enable_notifications — a checkbox setting seeded from defaults+ key = "app.enable_notifications"+ get_resp = authenticated_client.get(f"{SETTINGS_PREFIX}/api/{key}")+ assert get_resp.status_code == 200+ original = get_resp.get_json()+ assert original["ui_element"] == "checkbox"# PUT string "true"put_resp = authenticated_client.put(@@ -1054,6 +1031,6 @@ class TestApiUpdateSettingTypeConversion:# Restore original valueauthenticated_client.put(f"{SETTINGS_PREFIX}/api/{key}",- json={"value": original_value},+ json={"value": original["value"]},content_type="application/json",)