MCPcopy Create free account

hub / github.com/Barabama/FreeNodes / functions

Functions175 in github.com/Barabama/FreeNodes

Methodtest_extracts_from_analysis_line
Handles reasoning model output with analysis text.
tests/test_llm_router.py:399
Methodtest_extracts_from_code_fence
(self)
tests/test_llm_router.py:391
Methodtest_extracts_from_code_fence_with_lang
(self)
tests/test_llm_router.py:395
Methodtest_extracts_from_last_line
(self)
tests/test_llm_router.py:411
Methodtest_extracts_regex_with_escaped_chars
(self)
tests/test_llm_router.py:418
Methodtest_full_config_parses_three_providers
(self, full_config)
tests/test_llm_router.py:427
Methodtest_full_config_provider_fields
(self, full_config)
tests/test_llm_router.py:432
Methodtest_generate_pattern_returns_none_on_empty
(self)
tests/test_llm_router.py:376
Methodtest_handles_site_crash
One site crashing doesn't stop others.
tests/test_scheduler.py:124
Methodtest_health_report
(self)
tests/test_llm_router.py:156
Methodtest_hk_match
(self)
tests/test_merger.py:61
Methodtest_http
(self)
tests/test_site_processor.py:63
Methodtest_hyphen_date_in_url
(self)
tests/test_site_processor.py:113
Methodtest_initial_state_is_healthy
(self)
tests/test_llm_router.py:108
Methodtest_jp_match_via_tokyo
(self)
tests/test_merger.py:88
Methodtest_merge_creates_output_files
Run merger against a temp directory with sample yaml/txt files.
tests/test_merger.py:116
Methodtest_merge_empty_dir
(self, tmp_path)
tests/test_merger.py:143
Methodtest_multiple_providers_independent
(self)
tests/test_llm_router.py:149
Methodtest_no_date_returns_none
(self)
tests/test_site_processor.py:122
Methodtest_no_duplicate_keywords_across_regions
Each keyword should belong to exactly one region to avoid ambiguity.
tests/test_merger.py:101
Methodtest_no_llm_config_returns_empty
(self, no_llm_config)
tests/test_llm_router.py:451
Methodtest_no_match
(self)
tests/test_site_processor.py:94
Functiontest_no_old_llm_import
Ensure src.llm was deleted and not referenced.
tests/test_llm_router.py:466
Methodtest_parse_json_empty_string
(self)
tests/test_llm_router.py:352
Methodtest_parse_json_invalid_returns_empty
(self)
tests/test_llm_router.py:348
Methodtest_parse_json_valid
(self)
tests/test_llm_router.py:338
Methodtest_parse_json_with_fences
(self)
tests/test_llm_router.py:343
Methodtest_pattern_resets_after_5_failures
When pattern fails >=5 times, link_pattern gets reset to None.
tests/test_site_processor.py:228
Methodtest_pattern_self_heal
LLM generates valid pattern → saved to config.
tests/test_site_processor.py:249
Methodtest_picks_by_date_from_title
Chinese date "6月18日" in title → sorted correctly.
tests/test_site_processor.py:131
Methodtest_picks_by_date_from_url
URL path fallback when title has no date.
tests/test_site_processor.py:145
Methodtest_prefers_title_over_url
(self)
tests/test_site_processor.py:125
Methodtest_preserves_different_proxies
(self)
tests/test_merger.py:24
Methodtest_renames_name_conflict
(self)
tests/test_merger.py:32
Methodtest_resolves_relative_href
Relative href gets joined to base URL.
tests/test_site_processor.py:169
Methodtest_respects_concurrency_limit
Semaphore cap = 2, max 2 concurrent.
tests/test_scheduler.py:145
Methodtest_respects_max_articles
Config.crawl.max_articles = 3 limits the result.
tests/test_site_processor.py:178
Methodtest_response_text_empty_when_both_none
(self)
tests/test_llm_router.py:324
Methodtest_response_text_normal
(self)
tests/test_llm_router.py:313
Methodtest_response_text_prefers_content_over_reasoning
(self)
tests/test_llm_router.py:330
Methodtest_response_text_reasoning_model
(self)
tests/test_llm_router.py:318
Methodtest_retries_on_failure
Retries 3 times, returns None on total failure.
tests/test_site_processor.py:284
Methodtest_returns_all_sites_when_no_target
(self, scheduler)
tests/test_scheduler.py:40
Methodtest_returns_empty_when_target_unknown
(self, scheduler)
tests/test_scheduler.py:49
Methodtest_returns_none_for_empty_weights
(self)
tests/test_llm_router.py:39
Methodtest_returns_none_on_garbage
(self)
tests/test_llm_router.py:415
Methodtest_returns_none_when_all_unhealthy
(self)
tests/test_llm_router.py:63
Methodtest_returns_only_option
(self)
tests/test_llm_router.py:44
Methodtest_returns_only_option_with_min_weight
(self)
tests/test_llm_router.py:49
Methodtest_returns_single_site_when_target_matches
(self, scheduler)
tests/test_scheduler.py:44
Methodtest_router_from_full_config
(self, full_config)
tests/test_llm_router.py:455
Methodtest_rule_hit_returns_early
link_pattern matches → returns links, no LLM.
tests/test_site_processor.py:198
Methodtest_rule_miss_then_llm_fallback
No pattern → LLM extracts links.
tests/test_site_processor.py:209
Methodtest_run_all_sites
All 3 sites processed, results collected.
tests/test_scheduler.py:93
Methodtest_run_single_target
Only the targeted site runs.
tests/test_scheduler.py:109
Methodtest_shows_errors
(self, scheduler, capsys)
tests/test_scheduler.py:79
Methodtest_simple_url
(self)
tests/test_site_processor.py:57
Methodtest_single_result
(self, scheduler, capsys)
tests/test_scheduler.py:70
Methodtest_skips_excluded_providers
(self)
tests/test_llm_router.py:68
Methodtest_skips_non_article_links
Category, pagination, and root links are excluded.
tests/test_site_processor.py:156
Methodtest_skips_non_dict_items
(self)
tests/test_merger.py:45
Methodtest_skips_non_http
(self)
tests/test_site_processor.py:80
Methodtest_skips_unhealthy_providers
(self)
tests/test_llm_router.py:54
Methodtest_slash_date_in_text
(self)
tests/test_site_processor.py:110
Methodtest_still_healthy_below_threshold
(self)
tests/test_llm_router.py:118
Methodtest_succeeds_on_first_try
(self, monkeypatch)
tests/test_site_processor.py:298
Methodtest_success_clears_disabled
(self)
tests/test_llm_router.py:133
Methodtest_success_resets_failure_count
(self)
tests/test_llm_router.py:124
Methodtest_target_is_case_sensitive
(self, scheduler)
tests/test_scheduler.py:53
Methodtest_task_routing
(self, full_config)
tests/test_llm_router.py:446
Methodtest_unmatched_goes_to_other
(self)
tests/test_merger.py:73
Methodtest_us_match
(self)
tests/test_merger.py:67
Methodtest_with_path
(self)
tests/test_site_processor.py:60
Methodtest_zero_weight_never_picked
(self)
tests/test_llm_router.py:90
Functionthree_site_config
()
tests/test_scheduler.py:16
← previous101–175 of 175, ranked by callers