Simplify-code findings: - _authenticated_json: replace manual header construction with self._headers(include_tenant=False) — eliminates duplication with _headers() and includes Content-Type consistently. - _health_requires_credentials: replace getattr(exc, 'status_code') with _status_code_from_error(exc) for consistency with the existing error-classification utility. Drop the fragile string-matching fallback — _parse_response always sets status_code on _OpenVikingHTTPError, so 401/403 check is sufficient. - Relax test header assertions to check presence/absence of specific headers rather than exact dict equality, so they survive the header-construction refactor. |
||
|---|---|---|
| .. | ||
| browser | ||
| dashboard_auth | ||
| image_gen | ||
| memory | ||
| model_providers | ||
| platforms | ||
| transcription | ||
| tts | ||
| video_gen | ||
| web | ||
| __init__.py | ||
| test_a2a_phase23.py | ||
| test_a2a_plugin.py | ||
| test_achievements_plugin.py | ||
| test_chronos_cron.py | ||
| test_chronos_verify.py | ||
| test_discord_runtime_failure.py | ||
| test_disk_cleanup_plugin.py | ||
| test_google_meet_audio.py | ||
| test_google_meet_node.py | ||
| test_google_meet_plugin.py | ||
| test_google_meet_realtime.py | ||
| test_hindsight_health_grace_timeout.py | ||
| test_hindsight_root_guard.py | ||
| test_holographic_vector_storage.py | ||
| test_kanban_attachments.py | ||
| test_kanban_board_project_api.py | ||
| test_kanban_dashboard_plugin.py | ||
| test_kanban_estimate.py | ||
| test_kanban_model_override.py | ||
| test_kanban_worker_runs.py | ||
| test_langfuse_plugin.py | ||
| test_nemo_relay_mark_turn_parenting.py | ||
| test_nemo_relay_plugin.py | ||
| test_plugin_dashboard_auth_contract.py | ||
| test_raft_check_fn_silent.py | ||
| test_retaindb_plugin.py | ||
| test_security_guidance_plugin.py | ||
| test_teams_pipeline_plugin.py | ||