~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: delete 17 NO_FAILURE_PATH theme tests that always passed silently (#4252)
LearningCircuita4f8ea3c5d4d
diff --git a/tests/theme_tests/test_theme_system.py b/tests/theme_tests/test_theme_system.pyindex fe6f21d4e1..e38db77336 100644--- a/tests/theme_tests/test_theme_system.py+++ b/tests/theme_tests/test_theme_system.py@@ -1228,27 +1228,6 @@ class TestFormElementTheming:)break- def test_placeholder_color_themed(self):- """Placeholder text should use theme muted color."""- placeholder_found = False-- for css_file in CSS_DIR.rglob("*.css"):- content = css_file.read_text()- if (- "::placeholder" in content- or "::-webkit-input-placeholder" in content- ):- placeholder_found = True- if (- "var(--text-muted)" in content- or "var(--text-secondary)" in content- ):- return # Good - using theme variable-- if placeholder_found:- # Placeholder exists but might not use theme vars - just warn- pass-class TestButtonTheming:"""Test that buttons use theme colors appropriately."""@@ -1292,29 +1271,6 @@ class TestButtonTheming:class TestModalTheming:"""Test that modals and dialogs use theme colors."""- def test_modal_backdrop_themed(self):- """Modal backdrops should use theme-compatible colors."""- modal_patterns = [- "modal-backdrop",- "ldr-modal",- ".modal",- "dialog",- ]-- for css_file in CSS_DIR.rglob("*.css"):- content = css_file.read_text()- for pattern in modal_patterns:- if pattern in content:- # Check if backdrop uses rgba with variables- if "backdrop" in content.lower():- if (- "rgba(var(--" in content- or "rgba(0, 0, 0" in content- ):- return # Good- # Modal may be defined elsewhere or in templates- pass-def test_modal_content_uses_theme_bg(self):"""Modal content should use theme background colors."""for template in TEMPLATES_DIR.rglob("*.html"):@@ -1438,31 +1394,6 @@ class TestCodeBlockTheming:assert code_themed, "Code blocks should use theme variables"-class TestTableTheming:- """Test that tables use theme colors."""-- def test_table_borders_themed(self):- """Table borders should use theme border color."""- for css_file in CSS_DIR.rglob("*.css"):- content = css_file.read_text()- if re.search(r"\btable\b|\bth\b|\btd\b", content):- if "border" in content:- if (- "var(--border-color)" in content- or "var(--bg-" in content- ):- return # Good-- def test_table_striping_themed(self):- """Table row striping should use theme colors."""- for css_file in CSS_DIR.rglob("*.css"):- content = css_file.read_text()- # Look for nth-child or stripe patterns- if "nth-child" in content and "tr" in content:- if "var(--" in content:- return # Good - using theme variables--class TestLoadingStateTheming:"""Test that loading states use theme colors."""@@ -1483,101 +1414,6 @@ class TestLoadingStateTheming:assert spinner_themed, "Spinners should use theme accent colors"- def test_skeleton_loaders_themed(self):- """Skeleton loaders should use theme background variants."""- for css_file in CSS_DIR.rglob("*.css"):- content = css_file.read_text()- if "skeleton" in content.lower():- if "var(--bg-" in content:- return # Good---class TestTooltipTheming:- """Test that tooltips use theme colors."""-- def test_tooltips_use_theme_colors(self):- """Tooltips should use theme-aware colors."""- for css_file in CSS_DIR.rglob("*.css"):- content = css_file.read_text()- if "tooltip" in content.lower():- if "var(--" in content:- return # Good - using theme vars- # Tooltips might not exist, which is fine---class TestBadgeAndTagTheming:- """Test that badges and tags use theme colors."""-- def test_badges_use_semantic_colors(self):- """Badges should use theme semantic colors."""- badge_patterns = ["badge", "tag", "chip", "label"]-- for css_file in CSS_DIR.rglob("*.css"):- content = css_file.read_text()- for pattern in badge_patterns:- if (- f".{pattern}" in content.lower()- or f".ldr-{pattern}" in content- ):- if (- "var(--success-" in content- or "var(--warning-" in content- or "var(--error-" in content- or "var(--accent-" in content- ):- return # Good---class TestAlertTheming:- """Test that alerts use theme semantic colors."""-- def test_alert_success_uses_success_color(self):- """Success alerts should use --success-color."""- for css_file in CSS_DIR.rglob("*.css"):- content = css_file.read_text()- if ".alert-success" in content or ".ldr-alert-success" in content:- if (- "var(--success-color)" in content- or "var(--success-color-rgb)" in content- ):- return- # Might not have alert component-- def test_alert_error_uses_error_color(self):- """Error alerts should use --error-color."""- for css_file in CSS_DIR.rglob("*.css"):- content = css_file.read_text()- if (- ".alert-error" in content- or ".alert-danger" in content- or ".ldr-alert-error" in content- ):- if (- "var(--error-color)" in content- or "var(--error-color-rgb)" in content- ):- return---class TestProgressBarTheming:- """Test that progress bars use theme colors."""-- def test_progress_bar_uses_accent(self):- """Progress bars should use accent color."""- for css_file in CSS_DIR.rglob("*.css"):- content = css_file.read_text()- if "progress" in content.lower():- if "var(--accent-" in content:- return # Good-- def test_progress_track_uses_theme_bg(self):- """Progress bar tracks should use theme background."""- for css_file in CSS_DIR.rglob("*.css"):- content = css_file.read_text()- if "progress" in content.lower() and "track" in content.lower():- if "var(--bg-" in content:- return-class TestNavTheming:"""Test that navigation uses theme colors."""@@ -1595,66 +1431,6 @@ class TestNavTheming:assert nav_themed, "Navigation should use theme variables"- def test_active_nav_item_uses_accent(self):- """Active nav items should use accent color."""- for css_file in CSS_DIR.rglob("*.css"):- content = css_file.read_text()- if ".nav" in content and ".active" in content:- if "var(--accent-" in content:- return---class TestCardTheming:- """Test that cards use theme colors."""-- def test_cards_use_theme_bg(self):- """Cards should use theme background colors."""- for css_file in CSS_DIR.rglob("*.css"):- content = css_file.read_text()- if ".card" in content or ".ldr-card" in content:- if "var(--bg-" in content:- return # Good-- def test_card_borders_themed(self):- """Card borders should use theme border color."""- for css_file in CSS_DIR.rglob("*.css"):- content = css_file.read_text()- if ".card" in content:- if "border" in content and "var(--border-color)" in content:- return---class TestHeaderFooterTheming:- """Test that header and footer use theme colors."""-- def test_header_uses_theme_colors(self):- """Header should use theme colors."""- for css_file in CSS_DIR.rglob("*.css"):- content = css_file.read_text()- if "header" in content.lower() or ".navbar" in content:- if "var(--" in content:- return-- def test_footer_uses_theme_colors(self):- """Footer should use theme colors."""- for css_file in CSS_DIR.rglob("*.css"):- content = css_file.read_text()- if "footer" in content.lower():- if "var(--" in content:- return---class TestSelectionTheming:- """Test text selection uses theme colors."""-- def test_selection_color_themed(self):- """Text selection should use theme-aware colors."""- for css_file in CSS_DIR.rglob("*.css"):- content = css_file.read_text()- if "::selection" in content:- if "var(--" in content:- return # Good - using theme vars-class TestHighContrastCompliance:"""Test high contrast theme meets accessibility requirements."""