Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/HKUDS/Vibe-Trading
/ functions
Functions
26,887 in github.com/HKUDS/Vibe-Trading
⨍
Functions
26,887
◇
Types & classes
2,943
↳
Endpoints
204
Function
test_authorized_dm_sender_is_unaffected
()
agent/tests/test_slack_dm_pairing.py:62
Method
test_authorship_and_declared_use_still_carry_forward
The reset must be surgical: ownership and scope are not attestations.
agent/tests/test_strategy_store_adaptation.py:246
Function
test_auto_chain_still_walks_past_an_unavailable_fmp
The other side of the gate: auto must NOT stop at fmp. Every other test here asserts the gate closes (explicit fmp refuses to substitute). No
agent/tests/test_fmp_stable_regression.py:113
Function
test_auto_checks_joint_coverage_and_skipped_output_coverage_is_zero
()
agent/tests/quantlib/test_neutralization.py:165
Function
test_auto_cluster_all_nan_feature_is_dropped
An all-NaN promoted column is dropped, leaving journal features to cluster.
agent/tests/test_shadow_account.py:1728
Function
test_auto_cluster_median_imputes_partial_nan
A promoted feature with some NaN rows is median-imputed, not crashed.
agent/tests/test_shadow_account.py:1709
Function
test_auto_compact_folds_all_head_chunks_and_preserves_empty_update
Every head marker reaches a summary call and empty updates keep state.
agent/tests/test_auto_compact_chunked_summary.py:108
Function
test_auto_compact_handoff_summary_is_reintroduced_as_user_message
Auto-compact used to append a trailing assistant handoff ack.
agent/tests/test_agent_loop_no_assistant_prefill.py:136
Function
test_auto_compact_reopens_head_but_preserves_tail_gate
( harness, monkeypatch, degraded )
agent/tests/test_compaction_call_identity.py:298
Function
test_auto_compact_summary_call_sees_the_bound_llm_session
The compaction thread inherits the run's session binding (#1416). ``AgentLoop.run()`` binds the session id in a ``ContextVar``. A fresh threa
agent/tests/test_compaction_call_identity.py:326
Function
test_auto_compact_summary_hard_deadline
A hung compact-summary call is aborted by the wall-clock deadline. Regression for the 2026-08-15 run where a slow-but-alive provider took 702
agent/tests/test_agent_loop_content_filter.py:250
Method
test_auto_discovered_and_executable_through_registry
( self, runs_root: Path )
agent/tests/test_strategy_discovery_refresh.py:426
Function
test_auto_ids_and_timestamp
(live_runtime: Path)
agent/tests/test_audit_redact.py:106
Method
test_auto_mode_returns_local_or_none
auto mode should return a local engine or None, never cloud.
agent/tests/test_ocr_integration.py:114
Method
test_auto_never_selects_cloud_engine
auto must not select any engine with is_cloud=True.
agent/tests/test_ocr_engine.py:40
Function
test_auto_refuses_a_local_code_the_dataset_lacks_instead_of_fetching_it
( tmp_path: Path, monkeypatch: pytest.MonkeyPatch, network: type[_NetworkLoader] )
agent/tests/test_local_prefix_routing.py:132
Function
test_auto_requires_a_shared_identified_market
(codes, ticker)
agent/tests/test_benchmark_exchange_suffix_regressions.py:38
Function
test_auto_resolution_refuses_when_no_5m_loader_is_configured
(monkeypatch)
agent/tests/test_paper_trade_5m_scope.py:260
Function
test_auto_resolution_uses_the_stk_mins_loader_not_the_daily_chain
(monkeypatch)
agent/tests/test_paper_trade_5m_scope.py:246
Function
test_auto_resolves_single_connection
(runtime_root: Path)
agent/tests/test_local_plugin_autoresolve.py:91
Method
test_auto_routing_reports_the_loader_that_served
Same guarantee on the ``source="auto"`` path (symbol-pattern head).
agent/tests/test_pykrx_loader.py:209
Function
test_auto_selection_reports_low_coverage_constants_and_collinearity
()
agent/tests/quantlib/test_neutralization.py:101
Function
test_auto_selection_respects_residual_dof_and_does_not_fallback_to_demeaning
()
agent/tests/quantlib/test_neutralization.py:184
Function
test_auto_serves_local_codes_locally_and_the_rest_from_their_chain
( tmp_path: Path, monkeypatch: pytest.MonkeyPatch, network: type[_NetworkLoader] )
agent/tests/test_local_prefix_routing.py:116
Method
test_auto_source_lse_engine_is_global_equity
(self)
agent/tests/test_uk_equity_support.py:97
Function
test_auto_title_closes_chat_client
(tmp_path: Path, monkeypatch)
agent/tests/test_goal_api.py:150
Function
test_auto_title_closes_chat_client_when_model_returns_empty
( tmp_path: Path, monkeypatch )
agent/tests/test_goal_api.py:165
Function
test_auto_title_closes_chat_client_when_provider_fails
(tmp_path: Path, monkeypatch)
agent/tests/test_goal_api.py:182
Function
test_auto_title_preserves_manual_rename_on_wrapped_session
The documented guarantee: a real rename is never overwritten.
agent/tests/test_session_auto_title_wrapped_prompt.py:178
Function
test_auto_title_rewrites_long_wrapped_prompt_truncated_at_fifty
The create-time title is the raw prompt cut at 50 chars, not the wrapper.
agent/tests/test_session_auto_title_wrapped_prompt.py:154
Function
test_auto_title_rewrites_session_created_with_wrapped_first_message
( wrapped_prompt_routes, wrapper )
agent/tests/test_session_auto_title_wrapped_prompt.py:132
Function
test_auto_title_wait_preserves_live_session_updates
( owned_title_routes, monkeypatch, manual_rename )
agent/tests/test_session_search_title_updates.py:109
Function
test_autocorrelation_absent_in_white_noise
()
agent/tests/quantlib/test_timeseries.py:396
Function
test_autocorrelation_detected_in_ar1_residuals
()
agent/tests/quantlib/test_timeseries.py:386
Function
test_autocorrelation_flags_alternating_series_as_negative
()
agent/tests/quantlib/test_timeseries.py:428
Function
test_autopilot_run_dir_honors_runtime_root
(custom_root: Path)
agent/tests/test_runtime_root_cache_report_dirs.py:18
Function
test_auxiliary_operations_refuse_parent_traversal
(tmp_path, action)
agent/tests/test_skill_writer_tools.py:337
Function
test_auxiliary_operations_refuse_symlink_into_forbidden_sibling
(tmp_path, action)
agent/tests/test_skill_writer_tools.py:348
Function
test_available_requires_import_and_creds
(monkeypatch)
agent/tests/test_zerodha_sdk.py:200
Method
test_available_when_initialized
(self, fake_mod: _FakeMT5Module)
agent/tests/test_mt5_loader.py:205
Method
test_available_when_key_present
(self, monkeypatch: pytest.MonkeyPatch)
agent/tests/test_iwencai_tool.py:70
Method
test_available_when_key_present
(self, monkeypatch)
agent/tests/test_finnhub_loader.py:82
Method
test_available_with_key
(self, monkeypatch)
agent/tests/test_fred_macro_tool.py:42
Method
test_available_with_key
(self, monkeypatch)
agent/tests/test_fmp_loader.py:47
Method
test_available_with_key_and_account
(self, monkeypatch)
agent/tests/test_tickerall_loader.py:120
Method
test_available_with_token
(self, monkeypatch)
agent/tests/test_gildata_research_tools.py:36
Method
test_available_with_token
(self, monkeypatch)
agent/tests/test_gildata_loader.py:81
Method
test_available_with_token
(self, monkeypatch)
agent/tests/test_fund_nav_tool.py:64
Function
test_average_cost_can_price_pnl_when_broker_does_not_report_it
()
agent/tests/test_futu_position_cost_bases.py:152
Function
test_average_invested_weights_basic
()
agent/tests/test_risk_xray.py:284
Function
test_average_invested_weights_carries_short_leg
()
agent/tests/test_risk_xray.py:304
Function
test_average_invested_weights_preserves_long_short_exposure
()
agent/tests/test_risk_xray_long_short.py:134
Function
test_average_invested_weights_rejects_flat_strategy
()
agent/tests/test_risk_xray.py:295
Function
test_average_uses_all_nonnegative_holding_periods
(durations, expected)
agent/tests/test_metrics_holding_period.py:43
Method
test_avg_holding_bars
(self)
agent/tests/test_metrics.py:285
Method
test_avg_price_weighted_across_fills
(self)
agent/tests/test_paper_order_lifecycle.py:87
Method
test_avgprice_ignored
(self)
agent/tests/test_gildata_loader.py:143
Function
test_aware_as_of_uses_the_existing_local_calendar
( boundary: str | pd.Timestamp, )
agent/tests/test_rsshub_events_provider.py:302
Function
test_ba_codes_cannot_share_a_composite_pool_with_other_markets
()
agent/tests/test_argentina_market_routing.py:41
Function
test_ba_symbols_share_one_market_data_contract
(symbol: str)
agent/tests/test_argentina_market_routing.py:21
Function
test_backend_compatibility_failure_is_not_empty_success
(monkeypatch)
agent/tests/test_web_search_tool.py:179
Function
test_backend_issued_call_ids_are_kept
()
agent/tests/test_openai_codex_replay.py:132
Function
test_background_notifications_are_reintroduced_as_user_messages
Background notifications used to append a trailing assistant ack.
agent/tests/test_agent_loop_no_assistant_prefill.py:105
Function
test_background_run_rejects_broad_python_termination
(command: str)
agent/tests/test_background_tools.py:211
Function
test_background_tools_are_blocked_under_python_only
(fake_cli)
agent/tests/test_claude_cli_tool_policy.py:171
Function
test_backoff_shorter_than_retries_rejected
Defensive: misconfigured backoff is rejected at call time, not silently indexed out of range mid-retry.
agent/tests/test_loader_retry_helpers.py:134
Function
test_backtest_completes_on_hose_bars
(tmp_path: Path)
agent/tests/test_vietnam_backtest_smoke.py:74
Function
test_backtest_completes_on_lse_bars
(tmp_path: Path)
agent/tests/test_uk_backtest_smoke.py:77
Method
test_backtest_enriches_data_map_with_configured_fundamental_fields
A-share backtests should expose configured statement fields to strategies.
agent/tests/test_engine_robustness.py:139
Function
test_backtest_metrics_accepted_after_successful_backtest
#1336: a genuinely completed backtest grounds metrics its artifact holds.
agent/tests/test_agent_grounding.py:2829
Function
test_backtest_metrics_rejected_when_analysis_tool_failed
#1336: failed analysis tools cannot ground backtest-style metrics.
agent/tests/test_agent_grounding.py:2780
Function
test_backtest_metrics_rejected_when_no_analysis_result
#1336: without any completed analysis, metric prose is unsupported.
agent/tests/test_agent_grounding.py:2808
Function
test_backtest_preview_is_a_small_fraction_of_the_full_response
( client: TestClient, )
agent/tests/api/test_run_preview.py:96
Function
test_backtest_preview_matches_full_response
( client: TestClient, runs_root: Path )
agent/tests/api/test_run_preview.py:78
Method
test_backtest_records_explicit_benchmark_metadata
Explicit benchmark metadata should be added after metrics are computed.
agent/tests/test_engine_robustness.py:198
Function
test_backtest_rejects_unconfigured_absolute_run_dir
(tmp_path: Path, monkeypatch)
agent/tests/test_file_tool_sandbox_security.py:109
Function
test_backtest_runtime_env_adds_exact_current_run_root
( monkeypatch, tmp_path: Path, )
agent/tests/test_runner_env.py:103
Function
test_backtest_runtime_env_keeps_market_data_configuration
( monkeypatch, tmp_path: Path, )
agent/tests/test_runner_env.py:20
Function
test_backtest_runtime_env_prepends_runtime_pythonpath
( monkeypatch, tmp_path: Path, )
agent/tests/test_runner_env.py:91
Function
test_backtest_runtime_env_scrubs_service_and_broker_secrets
( monkeypatch, tmp_path: Path, )
agent/tests/test_runner_env.py:61
Function
test_backtest_uses_configured_tool_timeout
(tool_run_dir, monkeypatch)
agent/tests/test_backtest_tool_state.py:107
Method
test_backtest_with_suspension_gap
A stock suspended for >5 bars should not produce fake flat equity.
agent/tests/test_engine_robustness.py:574
Method
test_bad_arguments_return_envelopes_not_exceptions
(self, kwargs: Dict[str, Any], fragment: str)
agent/tests/test_institutional_holdings_tool.py:1678
Function
test_bad_attempt_encoding_keeps_siblings_and_original_bytes
( tmp_path: Path, caplog, bad_bytes: bytes )
agent/tests/test_session_store_encoding_corrupt.py:30
Function
test_bad_bot_token_200_ok_false_reports_invalid_credentials
Slack answers bad tokens with HTTP 200 and ``ok: false``.
agent/tests/test_slack_connection_test.py:136
Function
test_bad_cli_output_raises
(fake_cli, reply, message)
agent/tests/test_claude_cli_provider.py:336
Method
test_bad_code_returns_error_envelope
(self)
agent/tests/test_lockup_expiry_tool.py:129
Function
test_bad_combinatorial_group_count_rejected
(n_test_groups)
agent/tests/quantlib/test_crossvalidation.py:336
Method
test_bad_date_returns_error_envelope
(self)
agent/tests/test_dragon_tiger_tool.py:220
Function
test_bad_direction_is_rejected
Direction multiplies the impact, so anything but 1 or -1 must raise.
agent/tests/quantlib/test_impact.py:160
Function
test_bad_effort_entry_does_not_discard_other_catalog_models
(monkeypatch)
agent/tests/test_codex_model_discovery.py:146
Function
test_bad_embargo_fraction_rejected
(fraction)
agent/tests/quantlib/test_crossvalidation.py:315
Method
test_bad_expiration_returns_error_envelope
(self)
agent/tests/test_options_chain_tool.py:152
Function
test_bad_import_never_persists_a_partial_source
(tmp_path, override, match)
agent/tests/test_extraetf_integration.py:87
Function
test_bad_message_encoding_preserves_neighbors_limits_and_original_bytes
( tmp_path: Path, caplog, bad_line: bytes )
agent/tests/test_session_store_encoding_corrupt.py:47
Function
test_bad_numeric_and_calendar_cells_are_not_fabricated
()
agent/tests/test_br_data.py:271
Function
test_bad_participation_rejected
(participation)
agent/tests/test_factor_costs.py:113
Method
test_bad_quarter_reaches_the_user_as_an_envelope
(self)
agent/tests/test_institutional_holdings_tool.py:309
Function
test_bad_replies_are_not_empty_accounts
(monkeypatch, body)
agent/tests/test_mstock_connector.py:105
Function
test_bad_session_encoding_keeps_order_limit_and_original_bytes
( tmp_path: Path, caplog, bad_bytes: bytes )
agent/tests/test_session_store_encoding_corrupt.py:12
← previous
next →
15,201–15,300 of 26,887, ranked by callers