Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Thysrael/Horizon
/ functions
Functions
669 in github.com/Thysrael/Horizon
⨍
Functions
669
◇
Types & classes
97
Function
test_ai_recommendations_require_api_key_for_cloud_provider
(monkeypatch)
tests/test_setup_wizard.py:44
Function
test_all_providers_fail
When all providers fail, raise RuntimeError.
tests/test_chained_client.py:108
Method
test_all_valid_values_pass
(self)
tests/test_webhook.py:1618
Function
test_analyze_batch_concurrent_preserves_order
Verify that analyze_batch preserves input order in results.
tests/test_analyzer.py:83
Function
test_analyze_batch_concurrent_processing
Verify that higher concurrency allows overlapping item processing.
tests/test_analyzer.py:60
Function
test_analyze_batch_does_not_sleep_by_default
(monkeypatch)
tests/test_analyzer.py:20
Function
test_analyze_batch_sleeps_between_items_when_throttle_configured
(monkeypatch)
tests/test_analyzer.py:40
Function
test_append_discussion_content_adds_marker
()
tests/test_twitter.py:359
Function
test_append_discussion_content_empty_lines_no_change
()
tests/test_twitter.py:378
Function
test_apply_source_filter_handles_twitter_and_openbb
()
tests/test_mcp_adapter.py:85
Method
test_array
(self)
tests/test_webhook.py:357
Function
test_bad_article_is_skipped_not_crashing
()
tests/test_gdelt.py:138
Function
test_balanced_digest_config_rejects_non_positive_or_empty_limits
(kwargs)
tests/test_balanced_digest.py:134
Method
test_basic_completion
(self, monkeypatch)
tests/test_minimax_client.py:143
Method
test_blank_lines
(self)
tests/test_webhook.py:392
Method
test_build_preview_uses_request_body_override
(self)
tests/test_webhook.py:325
Method
test_build_preview_uses_same_summary_formatting_as_send_path
(self)
tests/test_webhook.py:298
Function
test_category_groups_apply_limits_and_default_group_limit
()
tests/test_balanced_digest.py:49
Function
test_ceid_defaults_when_unset
()
tests/test_google_news.py:81
Function
test_check_subscriptions_skips_imap_when_disabled
(monkeypatch)
tests/test_email.py:166
Method
test_coerce_datetime_handles_bogus
(self)
tests/test_openbb_scraper.py:289
Method
test_coerce_url_handles_bogus
(self)
tests/test_openbb_scraper.py:294
Function
test_configure_ai_allows_ollama_without_api_key
(monkeypatch)
tests/test_setup_wizard.py:7
Method
test_connect_error_prints_warning
(self)
tests/test_webhook.py:1520
Function
test_create_chained_client_parses_chain
_create_chained_client correctly parses provider chain string.
tests/test_chained_client.py:162
Function
test_create_chained_client_rejects_unknown_provider
_create_chained_client rejects unknown providers in chain.
tests/test_chained_client.py:178
Function
test_create_run_writes_meta
(tmp_path: Path)
tests/test_mcp_run_store.py:10
Method
test_creates_azure_client
(self, monkeypatch)
tests/test_azure_client.py:102
Method
test_creates_instance_with_valid_config
(self, monkeypatch)
tests/test_azure_client.py:37
Method
test_creates_instance_with_valid_config
(self, monkeypatch)
tests/test_minimax_client.py:40
Method
test_creates_openai_client_for_deepseek
(self, monkeypatch)
tests/test_minimax_client.py:330
Method
test_creates_openai_client_for_minimax
(self, monkeypatch)
tests/test_minimax_client.py:323
Method
test_custom_headers
(self)
tests/test_webhook.py:615
Method
test_deduplicates_across_watchlists_by_url
(self)
tests/test_openbb_scraper.py:186
Method
test_deeply_nested
(self, monkeypatch)
tests/test_storage.py:93
Method
test_deepseek_provider_enum
(self)
tests/test_minimax_client.py:343
Method
test_default_values
(self)
tests/test_webhook.py:766
Method
test_details_references_allow_balanced_parentheses_in_href
(self)
tests/test_webhook.py:259
Method
test_details_references_are_flattened_for_webhook
(self)
tests/test_webhook.py:206
Method
test_details_references_with_malformed_http_href_remain_plain_text
(self)
tests/test_webhook.py:243
Method
test_details_references_with_unsafe_href_remain_plain_text
(self)
tests/test_webhook.py:227
Method
test_detects_various_temperature_error_messages
( self, monkeypatch, msg )
tests/test_minimax_client.py:303
Function
test_disabled_config_returns_empty
()
tests/test_gdelt.py:105
Function
test_disabled_config_returns_empty
()
tests/test_google_news.py:121
Function
test_disabled_returns_empty
()
tests/test_twitter.py:78
Method
test_disabled_skips
(self)
tests/test_webhook.py:424
Method
test_disabled_webhook_prints_warning
When webhook is disabled, notify() prints a yellow warning.
tests/test_webhook.py:1643
Method
test_disabled_webhook_skips_notification
(self)
tests/test_webhook.py:431
Method
test_does_not_echo_identifier_shaped_api_key
(self, monkeypatch)
tests/test_minimax_client.py:65
Method
test_does_not_retry_for_unrelated_error
(self, monkeypatch)
tests/test_minimax_client.py:263
Method
test_drops_items_older_than_since
(self)
tests/test_openbb_scraper.py:175
Function
test_duplicate_category_warns_and_first_group_wins
()
tests/test_balanced_digest.py:107
Method
test_each_valid_platform
(self)
tests/test_webhook.py:1633
Method
test_empty
(self)
tests/test_webhook.py:369
Method
test_empty_env_var_value_raises_value_error
Env var exists but is empty string → ValueError.
tests/test_webhook.py:1265
Function
test_empty_feed_returns_empty
()
tests/test_google_news.py:146
Function
test_empty_query_returns_empty
()
tests/test_gdelt.py:130
Function
test_empty_query_returns_empty
()
tests/test_google_news.py:129
Method
test_empty_string
(self)
tests/test_webhook.py:386
Method
test_empty_template
(self)
tests/test_webhook.py:45
Method
test_empty_url_env_skips_notification
(self)
tests/test_webhook.py:440
Method
test_empty_url_prints_warning
When URL is empty (env var not set), notify() prints a yellow warning.
tests/test_webhook.py:1658
Method
test_empty_value
(self)
tests/test_webhook.py:143
Method
test_empty_vars
(self)
tests/test_webhook.py:48
Method
test_ensure_utc_naive
(self)
tests/test_openbb_scraper.py:278
Method
test_ensure_utc_other_tz
(self)
tests/test_openbb_scraper.py:283
Function
test_entry_missing_link_or_title_is_skipped
()
tests/test_google_news.py:154
Method
test_env_var_not_set_sets_url_none
url_env configured but env var doesn't exist → url=None + console warning.
tests/test_webhook.py:1273
Method
test_exact_limit_with_join
(self)
tests/test_webhook.py:147
Method
test_expands_multiple_references_in_one_string
(self, monkeypatch)
tests/test_storage.py:64
Method
test_expands_simple_reference
(self, monkeypatch)
tests/test_storage.py:60
Method
test_failure_calls_notify_with_failure_vars
send_failure_notification sends notify with correct failure vars.
tests/test_webhook.py:1168
Method
test_failure_timestamp_is_current_utc
Failure notification timestamp reflects current UTC time.
tests/test_webhook.py:1196
Function
test_fallback_on_empty_response
When first provider returns empty/whitespace, fallback to second.
tests/test_chained_client.py:65
Function
test_fallback_on_quota_exceeded
When first provider quota exhausted, fallback to second.
tests/test_chained_client.py:95
Function
test_fallback_on_rate_limit
When first provider hits 429, fallback to second.
tests/test_chained_client.py:80
Method
test_falls_back_to_watchlist_symbols_when_row_has_none
(self)
tests/test_openbb_scraper.py:151
Method
test_feishu_collapsible_layout_builds_single_card_message
Feishu collapsible layout sends one card with collapsed item panels.
tests/test_webhook.py:980
Function
test_fetch_items_uses_public_orchestrator_api
(tmp_path: Path, monkeypatch)
tests/test_mcp_service_smoke.py:74
Function
test_fetch_replies_appends_top_comments
When fetch_reply_text=True, reply lines are appended under Top Comments.
tests/test_twitter.py:300
Function
test_fetch_replies_disabled_by_default
fetch_reply_text defaults to False — verify config default.
tests/test_twitter.py:294
Function
test_fetch_replies_no_conversation_id_returns_empty
(monkeypatch)
tests/test_twitter.py:396
Function
test_filter_items_applies_balanced_digest
(tmp_path: Path, monkeypatch)
tests/test_mcp_service_smoke.py:147
Function
test_filter_items_uses_public_topic_dedup_api
(tmp_path: Path, monkeypatch)
tests/test_mcp_service_smoke.py:113
Function
test_filters_old_tweets
(monkeypatch)
tests/test_twitter.py:166
Method
test_form_data
(self)
tests/test_webhook.py:366
Method
test_full_config
(self)
tests/test_webhook.py:777
Function
test_generate_empty_summary_zh_uses_localized_analyzed_line
()
tests/test_summarizer.py:127
Function
test_generate_summary_zh_uses_localized_selection_header_and_numeric_date
()
tests/test_summarizer.py:108
Function
test_generate_webhook_item_includes_discussion_link_when_distinct
()
tests/test_summarizer.py:63
Function
test_generate_webhook_item_omits_discussion_link_when_same_as_item_url
()
tests/test_summarizer.py:78
Function
test_generate_webhook_item_renders_single_item_detail
()
tests/test_summarizer.py:47
Function
test_generate_webhook_item_uses_localized_discussion_label
()
tests/test_summarizer.py:93
Function
test_generate_webhook_overview_lists_items_without_full_details
()
tests/test_summarizer.py:30
Method
test_generic_exception_prints_type_name
(self)
tests/test_webhook.py:1574
Function
test_get_effective_config_can_filter_sources
(tmp_path: Path)
tests/test_mcp_service_smoke.py:47
Method
test_get_request_when_no_body
(self)
tests/test_webhook.py:449
Method
test_handles_empty_results
(self)
tests/test_openbb_scraper.py:206
Function
test_horizon_mcp_error_string_representation
()
tests/test_mcp_errors.py:4
Method
test_http_error_logged
(self)
tests/test_webhook.py:740
← previous
next →
401–500 of 669, ranked by callers