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_http_error_returns_empty
()
tests/test_gdelt.py:113
Function
test_http_error_returns_empty
()
tests/test_google_news.py:137
Method
test_ignores_non_matching_patterns
(self)
tests/test_storage.py:73
Method
test_invalid_delivery_raises_validation_error
(self)
tests/test_webhook.py:1598
Method
test_invalid_fallback_layout_raises_validation_error
(self)
tests/test_webhook.py:1610
Method
test_invalid_layout_raises_validation_error
(self)
tests/test_webhook.py:1606
Method
test_invalid_line
(self)
tests/test_webhook.py:396
Method
test_invalid_overview_position_raises_validation_error
(self)
tests/test_webhook.py:1614
Method
test_invalid_platform_raises_validation_error
(self)
tests/test_webhook.py:1602
Method
test_invalid_port_raises_value_error
httpx.URL catches structurally invalid ports like 'abc'.
tests/test_webhook.py:1257
Method
test_invalid_url_exception_prints_warning
(self)
tests/test_webhook.py:1556
Function
test_iso_date_fallback
(monkeypatch)
tests/test_twitter.py:243
Method
test_key_with_limit_and_split
#{summary?limit=10&split=---} truncates by character count.
tests/test_webhook.py:168
Method
test_key_with_limit_no_truncation_needed
When value fits within limit, no truncation occurs.
tests/test_webhook.py:176
Function
test_language_and_country_appended_to_query
()
tests/test_gdelt.py:75
Method
test_language_filter_passes_matching_lang
webhook.languages=['zh'] allows 'zh' language.
tests/test_webhook.py:1053
Method
test_language_filter_skips_non_matching_lang
webhook.languages=['zh'] skips 'en' language.
tests/test_webhook.py:1026
Function
test_lazy_initialization
Downstream clients are not instantiated when the first provider succeeds.
tests/test_chained_client.py:146
Method
test_leaves_unset_var_as_placeholder
(self, monkeypatch)
tests/test_storage.py:69
Method
test_list
(self)
tests/test_webhook.py:85
Function
test_list_runs_returns_desc_order
(tmp_path: Path)
tests/test_mcp_run_store.py:95
Function
test_load_config_expands_env_vars
(tmp_path: Path, monkeypatch)
tests/test_mcp_adapter.py:60
Function
test_load_config_expands_env_vars_in_ai_base_url
Integration: proves base_url is env-expandable end-to-end. This is exactly the use case that keeps private/tenant endpoint URLs out of versio
tests/test_storage.py:106
Function
test_load_config_invalid_json
(tmp_path)
tests/test_storage.py:11
Function
test_load_config_missing_file
(tmp_path)
tests/test_storage.py:6
Function
test_load_config_success
(tmp_path)
tests/test_storage.py:32
Function
test_load_config_validation_failure
(tmp_path)
tests/test_storage.py:21
Function
test_load_mcp_secrets_loads_generic_env_keys
(tmp_path: Path, monkeypatch)
tests/test_mcp_adapter.py:33
Function
test_long_window_uses_after_operator
()
tests/test_google_news.py:68
Method
test_malformed_row_missing_date_is_skipped
(self)
tests/test_openbb_scraper.py:237
Method
test_malformed_row_missing_title_is_skipped
(self)
tests/test_openbb_scraper.py:228
Method
test_malformed_row_missing_url_is_skipped
(self)
tests/test_openbb_scraper.py:215
Method
test_maps_single_news_row_into_content_item
(self)
tests/test_openbb_scraper.py:117
Function
test_max_items_applies_after_group_limits
()
tests/test_balanced_digest.py:78
Function
test_max_items_works_without_category_groups
()
tests/test_balanced_digest.py:98
Function
test_max_results_cap
()
tests/test_google_news.py:170
Function
test_metadata_keys_aligned_for_analyzer
Analyzer reads favorite_count/retweet_count/reply_count — verify they are set.
tests/test_twitter.py:137
Function
test_metrics_tool_smoke
()
tests/test_mcp_service_smoke.py:67
Method
test_minimax_provider_enum
(self)
tests/test_minimax_client.py:340
Function
test_missing_articles_key_returns_empty
()
tests/test_gdelt.py:122
Function
test_missing_artifact_raises
(tmp_path: Path)
tests/test_mcp_run_store.py:87
Function
test_missing_run_raises
(tmp_path: Path)
tests/test_mcp_run_store.py:63
Function
test_missing_token_returns_empty
(monkeypatch)
tests/test_twitter.py:102
Method
test_missing_variable_with_params
#{unknown?limit=5&split=---} with missing key leaves placeholder.
tests/test_webhook.py:183
Method
test_mix_of_plain_and_parameterized
Plain #{date} and parameterized #{summary?...} in same template.
tests/test_webhook.py:197
Method
test_multiple_headers
(self)
tests/test_webhook.py:382
Method
test_nested_dict
(self)
tests/test_webhook.py:71
Function
test_no_fallback_on_unexpected_error
Non-retryable errors should not trigger fallback.
tests/test_chained_client.py:120
Method
test_no_hostname_raises_value_error
URLs without a hostname raise ValueError.
tests/test_webhook.py:1238
Method
test_no_language_filter_sends_all
webhook.languages=None sends for all languages.
tests/test_webhook.py:1080
Method
test_no_matching_vars
(self)
tests/test_webhook.py:40
Method
test_no_matching_vars
(self)
tests/test_webhook.py:100
Function
test_no_results_item_skipped
(monkeypatch)
tests/test_twitter.py:221
Method
test_no_split_delimiter_in_value
(self)
tests/test_webhook.py:136
Function
test_no_users_returns_empty
()
tests/test_twitter.py:90
Function
test_non_json_body_returns_empty
()
tests/test_gdelt.py:170
Method
test_non_string_values_preserved
(self)
tests/test_webhook.py:91
Method
test_none
(self)
tests/test_webhook.py:389
Method
test_numeric_values
(self)
tests/test_webhook.py:51
Method
test_object
(self)
tests/test_webhook.py:354
Method
test_ollama_accepts_custom_base_url_without_v1
(self, monkeypatch)
tests/test_minimax_client.py:104
Method
test_ollama_config_base_url_overrides_env
(self, monkeypatch)
tests/test_minimax_client.py:125
Method
test_ollama_does_not_duplicate_v1_in_custom_base_url
(self, monkeypatch)
tests/test_minimax_client.py:111
Method
test_ollama_host_env_without_scheme_is_supported
(self, monkeypatch)
tests/test_minimax_client.py:132
Method
test_ollama_uses_base_url_from_env
(self, monkeypatch)
tests/test_minimax_client.py:118
Method
test_ollama_uses_localhost_default_base_url
(self, monkeypatch)
tests/test_minimax_client.py:95
Method
test_one_char_over_limit
(self)
tests/test_webhook.py:154
Method
test_param_in_dict_body
#{summary?limit=10&split=---} works inside dict request_body.
tests/test_webhook.py:189
Method
test_parse_symbols
(self, value, expected)
tests/test_openbb_scraper.py:275
Function
test_parses_articles_into_content_items
()
tests/test_gdelt.py:88
Function
test_parses_feed_into_content_items
()
tests/test_google_news.py:94
Method
test_parses_iso_string_date
(self)
tests/test_openbb_scraper.py:161
Method
test_passes_comma_joined_symbols_to_openbb
(self)
tests/test_openbb_scraper.py:138
Method
test_plain_key_without_params
#{summary} without params works as before.
tests/test_webhook.py:162
Method
test_plain_string
(self)
tests/test_webhook.py:363
Method
test_post_request_with_dict_body
(self)
tests/test_webhook.py:642
Method
test_post_request_with_dict_body_and_special_chars
Summary containing quotes should be properly serialized.
tests/test_webhook.py:685
Method
test_post_request_with_form_body
(self)
tests/test_webhook.py:585
Method
test_post_request_with_json_body
(self)
tests/test_webhook.py:474
Method
test_post_request_with_json_str_body_containing_summary
String JSON body with #{summary} that contains special characters. Note: when request_body is a string, #{summary} is replaced via si
tests/test_webhook.py:506
Method
test_post_request_with_json_str_body_summary_with_quotes_breaks_json
String JSON body where #{summary} has quotes — JSON becomes invalid. This demonstrates the limitation: with string request_body, #{summary}
tests/test_webhook.py:545
Method
test_prepare_variables_changes_summary_for_any_post_body
(self)
tests/test_webhook.py:276
Method
test_prepare_variables_keeps_summary_unchanged_without_body
(self)
tests/test_webhook.py:287
Method
test_preserves_non_string_leaves
(self)
tests/test_storage.py:87
Method
test_raises_when_api_key_missing
(self, monkeypatch)
tests/test_azure_client.py:46
Method
test_raises_when_api_key_missing
(self, monkeypatch)
tests/test_minimax_client.py:47
Method
test_raises_when_endpoint_missing
(self, monkeypatch)
tests/test_azure_client.py:53
Method
test_recurses_into_dict
(self, monkeypatch)
tests/test_storage.py:78
Method
test_recurses_into_list
(self, monkeypatch)
tests/test_storage.py:83
Method
test_redact_headers_masks_sensitive_values
(self)
tests/test_webhook.py:408
Method
test_redact_url_removes_query_and_fragment
(self)
tests/test_webhook.py:402
Function
test_reddit_comment_403_degrades_to_post_without_comments
()
tests/test_reddit.py:140
Function
test_reddit_comments_use_old_reddit_first
()
tests/test_reddit.py:235
Function
test_reddit_fetch_uses_browser_like_headers
()
tests/test_reddit.py:119
Function
test_reddit_listing_old_failure_falls_back_to_json_then_rss
()
tests/test_reddit.py:187
Function
test_reddit_listing_uses_old_reddit_first
()
tests/test_reddit.py:162
Function
test_reddit_subreddits_are_fetched_sequentially
()
tests/test_reddit.py:263
Method
test_rejects_literal_api_key_in_api_key_env_without_leaking_it
(self, monkeypatch)
tests/test_minimax_client.py:52
Function
test_rejects_path_traversal_run_id
(tmp_path: Path)
tests/test_mcp_run_store.py:70
Function
test_rejects_unsafe_summary_language
(tmp_path: Path)
tests/test_mcp_run_store.py:79
← previous
next →
501–600 of 669, ranked by callers