MCPcopy Create free account

hub / github.com/HKUDS/Vibe-Trading / functions

Functions26,887 in github.com/HKUDS/Vibe-Trading

Methodtest_requested_window_is_applied_to_the_whole_life_frame
The dated endpoint has no date parameters — the slice is ours. The stub spans 2024-01-02..2024-01-05; asking for the middle two days
agent/tests/test_akshare_loader.py:307
Methodtest_requested_year_is_never_echoed_as_the_period
(self)
agent/tests/test_etf_holdings_tool.py:937
Functiontest_requesting_a_sweep_without_a_running_loop_is_a_no_op
Construction happens before the server loop exists.
agent/tests/test_scheduled_delivery_hook.py:93
Methodtest_requests_are_spaced_through_the_shared_gate
Spacing must go through the lock-protected HostThrottle, not a global.
agent/tests/test_pykrx_loader.py:156
Methodtest_requests_decimal_prices_and_percents
(self)
agent/tests/test_market_screener_tool.py:92
Methodtest_requests_share_the_sec_throttle_bucket
Every call must be spaced under the same bucket as the other SEC callers.
agent/tests/test_institutional_holdings_tool.py:1741
Functiontest_require_auth_hands_back_a_principal
(runtime_root)
agent/tests/test_principal_wiring.py:116
Functiontest_require_movements_refuses_a_holdings_export
()
agent/tests/test_extraetf_reader.py:706
Functiontest_required_dict_list_is_coerced
analyze_options_payoff.legs (required list[dict]) as a JSON string.
agent/tests/test_mcp_json_string_args.py:141
Functiontest_required_field_shadowed_by_method_is_flagged
Shape two: a required argument silently becomes optional.
agent/tests/test_dataclass_field_name_collisions.py:200
Methodtest_required_frontmatter_fields
(self)
agent/tests/test_vnpy_export.py:29
Methodtest_required_methods_defined
(self)
agent/tests/test_vnpy_export.py:105
Methodtest_required_sections_present
(self)
agent/tests/test_vnpy_export.py:43
Functiontest_rerun_with_changed_metrics_is_recorded
A rerun of the same directory that measured something new is kept.
agent/tests/test_backtest_records_bench.py:253
Methodtest_resampling_local
(self)
agent/tests/test_metrics.py:102
Methodtest_resampling_twice_changes_nothing
(self)
agent/tests/test_weekly_monthly_bars.py:92
Functiontest_research_caps_whole_records_and_reports_omission
()
agent/tests/test_gildata_boundaries.py:50
Functiontest_research_goal_skill_is_bundled
The agent can load workflow guidance for self-managed goals.
agent/tests/test_goal_tools.py:383
Functiontest_research_paper_reported_metrics_are_grounded
#1338 review: attributed paper figures must not be suppressed. research_papers reports `reported_annualized_return` / `reported_max_drawdown`
agent/tests/test_agent_grounding.py:3239
Functiontest_reset_channel_runtime_before_any_build_still_allows_a_build
( tmp_path: Path, monkeypatch: pytest.MonkeyPatch, )
agent/tests/test_channel_runtime_reset.py:101
Functiontest_reset_channel_runtime_clears_globals_and_host_attrs
( tmp_path: Path, monkeypatch: pytest.MonkeyPatch, )
agent/tests/test_channel_runtime_reset.py:49
Functiontest_reset_clears_all_buckets
()
agent/tests/test_rate_limiter_memory.py:75
Methodtest_reset_creates_new_instance
(self)
agent/tests/test_env_schema.py:417
Methodtest_reset_picks_up_new_env
( self, monkeypatch: pytest.MonkeyPatch )
agent/tests/test_env_schema.py:423
Methodtest_reset_plugin_cache_clears_cache
_reset_plugin_cache should clear the lru_cache.
agent/tests/test_ocr_engine.py:158
Functiontest_reset_reason_does_not_expose_a_stored_secret
( tmp_path: Path, monkeypatch: pytest.MonkeyPatch )
agent/tests/test_channel_reset_notice.py:302
Functiontest_reset_reason_scrubs_userinfo_and_truncates
Planbook test 4: credentials stripped, length bounded (≤200 chars).
agent/tests/test_channel_reset_notice.py:256
Functiontest_reset_reason_strips_the_entire_userinfo
(url: str)
agent/tests/test_channel_reset_notice.py:295
Functiontest_resi_is_the_latest_point_residual_over_latest_close
(window: int)
agent/tests/factors/test_qlib158_regression.py:39
Functiontest_residualization_is_stable_under_finite_unit_changes
(units, method)
agent/tests/quantlib/test_neutralization.py:424
Functiontest_residuals_are_the_specific_returns_and_sum_with_the_fit
()
agent/tests/quantlib/test_factormodel.py:240
Functiontest_resolution_falls_back_to_gh_cli
(no_ambient_credentials, monkeypatch)
agent/tests/test_copilot_provider.py:102
Functiontest_resolution_order_env_then_learned_then_catalog
()
agent/tests/test_context_budget.py:68
Functiontest_resolution_prefers_copilot_then_gh_environment
(monkeypatch)
agent/tests/test_copilot_provider.py:88
Functiontest_resolution_rechecks_catalog_ambiguity
(fake_mod)
agent/tests/test_mt5_loader.py:305
Methodtest_resolutions
(self)
agent/tests/test_nobitex_loader.py:89
Functiontest_resolve_btc_uses_internal_symbol_full
(monkeypatch)
agent/tests/test_etoro_connector.py:355
Functiontest_resolve_code_accepts_bare_a_share_code
Prove that _resolve_code resolves both market-suffixed and bare A-share tickers.
agent/tests/test_block_trades_bare_code.py:11
Functiontest_resolve_field_and_list_supported_fields
()
agent/tests/test_fundamental_schema.py:187
Functiontest_resolve_is_exact_key_only_no_prefix_or_suffix_match
(clean_registry)
agent/tests/scheduling/test_registry.py:64
Methodtest_resolve_loader_skips_init_error
(self)
agent/tests/test_registry.py:550
Functiontest_resolve_mcp_server_tool_name_segments_disambiguates_collisions_stably
()
agent/tests/test_mcp_client_adapter.py:105
Functiontest_resolve_mcp_server_tool_name_segments_logs_operator_warning
( caplog, )
agent/tests/test_mcp_client_adapter.py:117
Functiontest_resolve_safe_path_run_dir_escapes_fallback
(tmp_path: Path, monkeypatch)
agent/tests/test_file_tool_sandbox_security.py:173
Functiontest_resolve_session_id_honours_an_explicit_client_id
(mcp_server)
agent/tests/test_mcp_goal_session_contract.py:70
Functiontest_resolve_session_id_is_stable_within_a_process
(mcp_server, monkeypatch)
agent/tests/test_mcp_goal_session_contract.py:60
Functiontest_resolve_summary_falls_back_when_empty_report
When report.md is empty/whitespace, _resolve_summary returns the fallback.
agent/tests/test_swarm_worker_report.py:25
Functiontest_resolve_summary_falls_back_when_no_report
When report.md does not exist, _resolve_summary returns the fallback.
agent/tests/test_swarm_worker_report.py:19
Functiontest_resolve_summary_handles_read_error
_resolve_summary returns fallback if reading report.md fails.
agent/tests/test_swarm_worker_report.py:51
Functiontest_resolve_summary_reads_report_md
When report.md exists in artifact dir, _resolve_summary returns its content.
agent/tests/test_swarm_worker_report.py:10
Functiontest_resolve_swarm_agent_config_path_falls_back_to_main_agent_config
``agent.json`` is reused when no swarm-specific file is provided. Single-config operators (the common case during early adoption) shouldn't h
agent/tests/test_swarm_m3_boot_wiring.py:117
Functiontest_resolve_swarm_agent_config_path_prefers_swarm_specific_file
``swarm-agent.json`` shadows ``agent.json`` when both are present. Operators express "I want the swarm path to use a different MCP allowlist
agent/tests/test_swarm_m3_boot_wiring.py:91
Functiontest_resolve_swarm_agent_config_path_returns_none_when_nothing_configured
No env var, no on-disk files → resolver returns ``None``. This preserves the byte-for-byte legacy behaviour from R-03: a fresh install with n
agent/tests/test_swarm_m3_boot_wiring.py:142
Functiontest_resolve_swarm_agent_config_path_uses_env_var_when_set
``VIBE_TRADING_SWARM_AGENT_CONFIG`` is the absolute first-priority source. An operator who explicitly points the env var at a custom file MUST ge
agent/tests/test_swarm_m3_boot_wiring.py:63
Methodtest_resolve_wikilinks
Parses [[6-char-hex]] references from body text.
agent/tests/memory/test_semantic_links.py:151
Methodtest_resolve_wikilinks_dedup
Duplicate wikilinks appear only once.
agent/tests/memory/test_semantic_links.py:165
Methodtest_resolve_wikilinks_empty_body
Empty body returns empty list.
agent/tests/memory/test_semantic_links.py:172
Methodtest_resolve_wikilinks_invalid_format
Non-hex or wrong length are not matched.
agent/tests/memory/test_semantic_links.py:177
Methodtest_resolve_wikilinks_no_matches
Body without wikilinks returns empty.
agent/tests/memory/test_semantic_links.py:158
Methodtest_resolved_by_address_is_not_settlement_evidence
`resolvedBy` is populated on open markets; it names a contract.
agent/tests/test_prediction_market_tool.py:378
Functiontest_resolved_loader_requires_raw_prices
( monkeypatch, market, source, adjustment, accepted )
agent/tests/test_paper_trade_production_caliber.py:20
Methodtest_resolved_with_split_payout_reports_no_winner_not_no_resolution
Live case: uma "resolved" with prices ["0.5", "0.5"] — a void/tie. A price-only rule calls this unresolved; the oracle says otherwise.
agent/tests/test_prediction_market_tool.py:344
Functiontest_resolver_and_consumer_in_same_batch_cannot_race
A consumer sees the identity snapshot from before its whole LLM batch.
agent/tests/test_agent_grounding.py:364
Functiontest_resolver_answering_a_different_venue_is_still_conflicting
Folding a suffix alias must not fold a genuinely different exchange.
agent/tests/test_agent_grounding.py:868
Methodtest_resolves_and_caches_us_secid
(self)
agent/tests/test_eastmoney_client.py:51
Methodtest_resolves_and_pads_cik
(self)
agent/tests/test_sec_edgar_client.py:33
Methodtest_resolves_by_slug
(self, tmp_path: Path, capsys: pytest.CaptureFixture[str])
agent/tests/test_cli_memory.py:104
Methodtest_resolves_relative_child_to_memory_run_dir
(self)
agent/tests/test_loop_helpers.py:413
Methodtest_resolves_relative_dot_to_memory_run_dir
(self)
agent/tests/test_loop_helpers.py:408
Functiontest_response_crossing_midnight_is_charged_to_new_utc_day
(tmp_path)
agent/tests/test_live_decision_budget.py:129
Methodtest_response_without_completeness_signal_raises
A candles body carrying NO truncated/coverage cannot be verified complete, so it must raise rather than accept a possibly-short series - the c
agent/tests/test_tickerall_loader.py:287
Functiontest_responses_payload_does_not_assume_chat_messages
Responses requests use ``input`` and must bypass chat-only rewriting.
agent/tests/test_responses_stream_compat.py:125
Methodtest_responses_payload_does_not_assume_chat_messages
(self)
agent/tests/test_llm_reasoning_effort.py:716
Functiontest_responses_stream_accepts_mapping_events
OpenAI-compatible gateways may yield dicts instead of SDK event objects.
agent/tests/test_responses_stream_compat.py:74
Functiontest_responses_terminal_status_remains_valid
Responses has terminal status rather than Chat Completions finish_reason.
agent/tests/test_chat_llm_streaming.py:461
Methodtest_responses_transport_sends_reasoning_to_the_responses_path
(self)
agent/tests/test_llm_reasoning_effort.py:733
Functiontest_restart_after_missed_window_honors_persisted_next_run_at
(tmp_path: Path)
agent/tests/test_scheduled_research_executor.py:462
Functiontest_restart_does_not_replay_the_sweep
(live_root: Path)
agent/tests/test_sweep_latch.py:150
Functiontest_restart_finishes_attempt_when_terminal_reply_was_already_appended
( tmp_path: Path, monkeypatch )
agent/tests/test_session_restart_recovery.py:120
Functiontest_restart_recovers_exact_working_order_once_and_never_resubmits
(monkeypatch)
agent/tests/test_sdk_order_gate.py:308
Methodtest_restart_recovery_leaves_this_processes_live_tasks_alone
(self, tmp_path)
agent/tests/test_background_store_recovery.py:229
Functiontest_restatement_first_filed_is_pit_and_latest_filed_is_research_mode
( monkeypatch: pytest.MonkeyPatch, )
agent/tests/test_fundamentals_pit.py:104
Methodtest_restatement_replaces_and_new_holdings_merges
(self)
agent/tests/test_institutional_holdings_tool.py:785
Functiontest_result_and_snippet_limits_preserve_security_warnings
(adapter)
agent/tests/test_parallel_search.py:278
Functiontest_result_envelope_is_json_serializable
()
agent/tests/test_websocket_connection_test.py:212
Functiontest_result_envelope_is_json_serializable
(monkeypatch: pytest.MonkeyPatch)
agent/tests/test_email_connection_test.py:703
Functiontest_result_is_frozen
()
agent/tests/quantlib/test_credit.py:143
Functiontest_result_matches_a_direct_import
(tool)
agent/tests/test_quantlib_tool.py:142
Functiontest_result_parts_survive_json_escaping_and_redact_secrets
(tmp_path, monkeypatch)
agent/tests/test_swarm_context.py:117
Functiontest_result_projector_drops_status_keeps_ranking
()
agent/tests/test_alpha_compare_api.py:161
Functiontest_result_records_which_calendarisation_policy_and_eps_basis_were_used
()
agent/tests/quantlib/valuation/test_comps.py:455
Functiontest_result_sink_releases_nothing_else
The relaxation is an exact (folded) match on ``content`` and nothing more. ``env`` is never released — an env dump in a result leaks exactly what
agent/tests/test_redaction_shared.py:70
Methodtest_result_stays_inside_the_tool_result_budget
A 400-position portfolio must page, not overflow and lose its tail silently.
agent/tests/test_institutional_holdings_tool.py:1725
Methodtest_result_type_mismatch_raises
(self)
agent/tests/quantlib/valuation/test_artifact.py:925
Functiontest_result_under_limit_passes_through_unchanged
A result at or under the limit must reach the LLM byte-for-byte unchanged — the fix must not alter ordinary, non-oversized results.
agent/tests/test_swarm_worker_tool_result_truncation.py:149
Methodtest_result_weights_on_simplex
(self)
agent/tests/test_mean_variance_optimizer.py:104
Methodtest_result_weights_on_simplex
(self)
agent/tests/test_turnover_aware_optimizer.py:102
Methodtest_results_pair_with_their_own_call_via_call_id
(self, dashboard: RailRunDashboard)
agent/tests/test_cli_rail_dashboard.py:37
Methodtest_resume_by_id_dispatches_with_session_id
(self)
agent/tests/test_cli_runtime.py:527
Methodtest_resume_clears_halt
(self, live_root: Path)
agent/tests/test_cli_runtime.py:469
← previousnext →23,401–23,500 of 26,887, ranked by callers