Skip to content

~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.

test: drop the dead `started` list from route-test auth helpers (#4916)

LearningCircuitf00197fa5aeb
diff --git a/tests/research_library/deletion/routes/test_delete_routes_coverage.py b/tests/research_library/deletion/routes/test_delete_routes_coverage.py
index 229aebcd4b..06478c89a6 100644
--- a/tests/research_library/deletion/routes/test_delete_routes_coverage.py
+++ b/tests/research_library/deletion/routes/test_delete_routes_coverage.py
@@ -63,10 +63,9 @@ def _auth_client(app, doc_svc=None, coll_svc=None, bulk_svc=None):
),
]
- started = []
try:
for p in patches:
- started.append(p.start())
+ p.start()
with app.test_client() as client:
with client.session_transaction() as sess:
sess["username"] = "testuser"
diff --git a/tests/research_library/deletion/routes/test_delete_routes_http.py b/tests/research_library/deletion/routes/test_delete_routes_http.py
index 1a8a0c651d..50c1d7fce0 100644
--- a/tests/research_library/deletion/routes/test_delete_routes_http.py
+++ b/tests/research_library/deletion/routes/test_delete_routes_http.py
@@ -61,10 +61,9 @@ def _authenticated_client(
patch(f"{_routes_mod}.BulkDeletionService", mock_bulk_cls),
]
- started = []
try:
for p in patches:
- started.append(p.start())
+ p.start()
with app.test_client() as client:
with client.session_transaction() as sess:
sess["username"] = "testuser"
diff --git a/tests/research_library/routes/_route_helpers_library.py b/tests/research_library/routes/_route_helpers_library.py
index aaa1952172..7933d96f8c 100644
--- a/tests/research_library/routes/_route_helpers_library.py
+++ b/tests/research_library/routes/_route_helpers_library.py
@@ -163,10 +163,9 @@ def _auth_client(
if extra_patches:
patches.extend(extra_patches)
- started = []
try:
for p in patches:
- started.append(p.start())
+ p.start()
with app.test_client() as client:
with client.session_transaction() as sess:
sess["username"] = "testuser"
diff --git a/tests/research_library/routes/_route_helpers_rag.py b/tests/research_library/routes/_route_helpers_rag.py
index 0f4699350a..dcbb55afdc 100644
--- a/tests/research_library/routes/_route_helpers_rag.py
+++ b/tests/research_library/routes/_route_helpers_rag.py
@@ -257,10 +257,9 @@ def _auth_client(
if extra_patches:
patches.extend(extra_patches)
- started = []
try:
for p in patches:
- started.append(p.start())
+ p.start()
with app.test_client() as client:
with client.session_transaction() as sess:
sess["username"] = "testuser"
diff --git a/tests/research_library/routes/test_library_routes.py b/tests/research_library/routes/test_library_routes.py
index 39e229532a..68e32afc91 100644
--- a/tests/research_library/routes/test_library_routes.py
+++ b/tests/research_library/routes/test_library_routes.py
@@ -159,10 +159,9 @@ def _authenticated_client(app):
]
# Start all patches
- started = []
try:
for p in patches:
- started.append(p.start())
+ p.start()
with app.test_client() as client:
with client.session_transaction() as sess:
sess["username"] = "testuser"
diff --git a/tests/research_library/routes/test_library_routes_extra_coverage.py b/tests/research_library/routes/test_library_routes_extra_coverage.py
index 106e21bc21..67b2cf5d1f 100644
--- a/tests/research_library/routes/test_library_routes_extra_coverage.py
+++ b/tests/research_library/routes/test_library_routes_extra_coverage.py
@@ -128,10 +128,9 @@ def _auth_client(
if extra_patches:
patches.extend(extra_patches)
- started = []
try:
for p in patches:
- started.append(p.start())
+ p.start()
with app.test_client() as client:
with client.session_transaction() as sess:
sess["username"] = "testuser"
diff --git a/tests/web/routes/_settings_route_helpers.py b/tests/web/routes/_settings_route_helpers.py
index 3aa42cec04..68cd0358df 100644
--- a/tests/web/routes/_settings_route_helpers.py
+++ b/tests/web/routes/_settings_route_helpers.py
@@ -94,10 +94,9 @@ def _authenticated_client(app):
patch(f"{_MODULE}.settings_limit", lambda f: f),
]
- started = []
try:
for p in patches:
- started.append(p.start())
+ p.start()
with app.test_client() as client:
with client.session_transaction() as sess:
sess["username"] = "testuser"
diff --git a/tests/web/routes/test_context_overflow_api_http.py b/tests/web/routes/test_context_overflow_api_http.py
index f2efd507ed..10314c5a48 100644
--- a/tests/web/routes/test_context_overflow_api_http.py
+++ b/tests/web/routes/test_context_overflow_api_http.py
@@ -89,10 +89,9 @@ def _authenticated_client(app):
),
]
- started = []
try:
for p in patches:
- started.append(p.start())
+ p.start()
with app.test_client() as client:
with client.session_transaction() as sess:
sess["username"] = "testuser"
diff --git a/tests/web/routes/test_context_overflow_logic.py b/tests/web/routes/test_context_overflow_logic.py
index 0e7fa18cbc..a3121bbfac 100644
--- a/tests/web/routes/test_context_overflow_logic.py
+++ b/tests/web/routes/test_context_overflow_logic.py
@@ -75,10 +75,9 @@ def _authenticated_client(app):
),
]
- started = []
try:
for p in patches:
- started.append(p.start())
+ p.start()
with app.test_client() as client:
with client.session_transaction() as sess:
sess["username"] = "testuser"
diff --git a/tests/web/routes/test_encrypted_db_password_check.py b/tests/web/routes/test_encrypted_db_password_check.py
index a747aafc1c..c735410fc6 100644
--- a/tests/web/routes/test_encrypted_db_password_check.py
+++ b/tests/web/routes/test_encrypted_db_password_check.py
@@ -119,10 +119,9 @@ def _authenticated_client(app, has_encryption=False, password_available=True):
),
]
- started = []
try:
for p in patches:
- started.append(p.start())
+ p.start()
with app.test_client() as client:
with client.session_transaction() as sess:
sess["username"] = "testuser"
@@ -257,10 +256,9 @@ def _authenticated_followup_client(
),
]
- started = []
try:
for p in patches:
- started.append(p.start())
+ p.start()
with app.test_client() as client:
with client.session_transaction() as sess:
sess["username"] = "testuser"
diff --git a/tests/web/routes/test_settings_routes_deep_coverage2.py b/tests/web/routes/test_settings_routes_deep_coverage2.py
index 42380d4063..48afe4bc97 100644
--- a/tests/web/routes/test_settings_routes_deep_coverage2.py
+++ b/tests/web/routes/test_settings_routes_deep_coverage2.py
@@ -123,10 +123,9 @@ def _authenticated_client(app, mock_settings=None):
patch(f"{MODULE}.settings_limit", lambda f: f),
]
- started = []
try:
for p in patches:
- started.append(p.start())
+ p.start()
with app.test_client() as client:
with client.session_transaction() as sess:
sess["username"] = "testuser"
diff --git a/tests/web/routes/test_settings_routes_gaps_coverage.py b/tests/web/routes/test_settings_routes_gaps_coverage.py
index 33bc708a1f..bd9c4d18fc 100644
--- a/tests/web/routes/test_settings_routes_gaps_coverage.py
+++ b/tests/web/routes/test_settings_routes_gaps_coverage.py
@@ -173,10 +173,9 @@ def _client_with_db(app, db_setting):
patch(f"{MODULE}.settings_limit", lambda f: f),
]
- started = []
try:
for p in patches:
- started.append(p.start())
+ p.start()
with app.test_client() as client:
with client.session_transaction() as sess:
sess["username"] = "testuser"
diff --git a/tests/web/routes/test_settings_routes_security.py b/tests/web/routes/test_settings_routes_security.py
index 271b96002b..d8042ca63e 100644
--- a/tests/web/routes/test_settings_routes_security.py
+++ b/tests/web/routes/test_settings_routes_security.py
@@ -59,10 +59,9 @@ def _authenticated_client(app, mock_settings=None):
), # disable rate limit
]
- started = []
try:
for p in patches:
- started.append(p.start())
+ p.start()
with app.test_client() as client:
with client.session_transaction() as sess:
sess["username"] = "testuser"