MCPcopy Create free account

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

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

Functiontest_cache_creation_survives_langchain_ttl_breakdown
()
agent/tests/test_anthropic_prompt_cache.py:205
Functiontest_cache_creation_total_is_not_added_to_its_breakdown
()
agent/tests/test_claude_cli_provider.py:582
Functiontest_cache_expiry_surfaces_reauth_no_silent_stale_call
An expired/revoked refresh token surfaces an error, not a silent call. When the OAuth provider cannot refresh (revoked/expired refresh token,
agent/tests/test_oauth_token_cache.py:251
Methodtest_cache_hit_avoids_repeated_rpc
Second call to build_mcp_tool_wrappers should use cached specs.
agent/tests/test_mcp_specs_cache.py:248
Functiontest_cache_hit_still_passes_the_identity_gate
A cached repeat must not be a way around grounding authorization. ``financial_rigor`` carries no symbol arguments, so the gate allows it toda
agent/tests/test_agent_loop_deterministic_cache.py:190
Functiontest_cache_hits_only_on_exact_window_and_journal
(tmp_path, monkeypatch)
agent/tests/test_shadow_result_cache.py:68
Functiontest_cache_key_changes_with_the_rules_not_only_the_journal
()
agent/tests/test_shadow_result_cache.py:112
Functiontest_cache_key_changes_with_window_and_hash
()
agent/tests/test_shadow_result_cache.py:149
Methodtest_cache_key_isolation
Different server_name should have separate cache entries.
agent/tests/test_mcp_specs_cache.py:264
Functiontest_cache_key_tracks_the_engine_epoch
(monkeypatch)
agent/tests/test_shadow_result_cache.py:138
Functiontest_cache_key_tracks_the_market_selection
()
agent/tests/test_shadow_result_cache.py:128
Functiontest_cache_roundtrips_when_untampered
(tmp_path, no_api_key)
agent/tests/test_alpha_bench_cache.py:41
Functiontest_cache_upgrade_invalidates_old_basis_and_preserves_adjustment_stamp
()
agent/tests/test_user_blockers_followups.py:172
Methodtest_cached_instance
(self)
agent/tests/test_env_schema.py:412
Functiontest_cached_run_keeps_the_currency_disclosure
(tmp_path, monkeypatch)
agent/tests/test_shadow_result_cache.py:90
Functiontest_cached_snapshot_is_flagged
(captured)
agent/tests/test_web_reader_privacy.py:58
Methodtest_cached_specs_produce_valid_tools
Tools built from cache should have correct name and description.
agent/tests/test_mcp_specs_cache.py:408
Functiontest_cadence_survives_restart_and_keeps_prior_spend
(tmp_path)
agent/tests/test_live_decision_budget.py:22
Methodtest_calc_commission_reflects_current_symbol_not_last_synced_one
(self)
agent/tests/test_composite_engine_fallback.py:84
Functiontest_calc_metrics_auto_detect_bars_per_year_with_integer_index
Prove calc_metrics auto-detect mode handles integer-indexed equity curves without crashing.
agent/tests/test_metrics_calc_integer_index.py:12
Functiontest_calc_metrics_no_inf_on_all_zero_equity
An equity curve that is entirely zero must not crash or produce inf.
agent/tests/test_metrics_inf_zero_equity.py:65
Functiontest_calc_metrics_no_inf_on_zero_equity
A zero in the equity curve must not produce inf/NaN in any metric.
agent/tests/test_metrics_inf_zero_equity.py:56
Functiontest_calendar_closed_day_emits_non_trading_day_and_never_fills
()
agent/tests/test_paper_trade_5m_session.py:264
Functiontest_calendar_underwater_duration_excludes_an_already_recovered_episode
()
agent/tests/quantlib/test_drawdown_revisited_peak.py:36
Functiontest_calendar_year_december_fye_uses_full_weight_on_last_full_year
()
agent/tests/quantlib/valuation/test_comps.py:245
Functiontest_calendar_year_policy_missing_next_fiscal_year_raises
A non-December FYE company that only supplied LTM-shaped fields (no `next_full_fiscal_year`) cannot be calendar-year aligned -- this is the 'd
agent/tests/quantlib/valuation/test_comps.py:289
Functiontest_calendarise_metric_finite_ltm_is_unchanged
()
agent/tests/quantlib/valuation/test_comps.py:876
Functiontest_calendarise_metric_refuses_non_finite_period_values
()
agent/tests/quantlib/valuation/test_comps.py:858
Functiontest_calibration_accepted_by_reconciler
()
agent/tests/test_binance_tolerance_calibration.py:138
Functiontest_calibration_covers_recorded_samples
()
agent/tests/test_binance_tolerance_calibration.py:83
Functiontest_calibration_fails_closed
(calibrate)
agent/tests/test_binance_tolerance_calibration.py:186
Functiontest_call_candidates_are_capped_and_deterministic
(tmp_path: Path)
agent/tests/test_grounding_container_field_refs.py:167
Functiontest_call_candidates_put_the_value_matched_call_first
(tmp_path: Path)
agent/tests/test_grounding_container_field_refs.py:153
Functiontest_call_feedback_does_not_repeat_the_candidate_list
(tmp_path: Path)
agent/tests/test_grounding_container_field_refs.py:176
Methodtest_call_srv_tool_sends_bearer_header
(self, monkeypatch)
agent/tests/test_gildata_research_tools.py:165
Functiontest_call_tool_shape_is_unchanged
()
agent/tests/test_mcp_result_dedup.py:311
Functiontest_callback_and_knobs_are_exposed_read_only
()
agent/tests/scheduling/test_kernel.py:365
Methodtest_caller_config_is_copied_not_aliased
(self)
agent/tests/test_research_playbooks.py:388
Functiontest_calls_without_backend_ids_are_not_given_made_up_ones
Two parallel calls used to both be sent back as id "fc_0".
agent/tests/test_openai_codex_replay.py:121
Methodtest_calmar_and_drawdown_negative_equity
An all-negative curve uses initial cash as its high-water mark.
agent/tests/test_metrics.py:458
Methodtest_calmar_positive_for_drawdown
Growing equity with a dip should have positive Calmar.
agent/tests/test_metrics.py:444
Methodtest_canada_chain_uses_only_compatible_sources
(self)
agent/tests/test_registry.py:220
Methodtest_canada_commission_is_broker_configured
(self)
agent/tests/test_global_equity_engine.py:153
Methodtest_canada_long_and_short
(self)
agent/tests/test_global_equity_engine.py:67
Methodtest_canada_market
(self)
agent/tests/test_global_equity_engine.py:220
Methodtest_canada_rounds_against_trader_on_official_tick_grid
( self, price: float, direction: int, expected: float, )
agent/tests/test_global_equity_engine.py:195
Methodtest_canada_slippage_is_configurable
(self)
agent/tests/test_global_equity_engine.py:201
Methodtest_canada_uses_whole_shares_but_keeps_odd_lots
(self)
agent/tests/test_global_equity_engine.py:101
Methodtest_canadian_and_us_equities_are_not_summed_without_fx
(self)
agent/tests/test_composite_currency_guard.py:72
Methodtest_canadian_equities_keep_yahoo_suffix
(self)
agent/tests/test_yfinance_crypto.py:39
Methodtest_canadian_equity_routes_to_canadian_global_rules
(self)
agent/tests/test_yfinance_crypto_routing.py:30
Methodtest_canadian_equity_supported
(self)
agent/tests/test_yfinance_crypto.py:62
Methodtest_canadian_equity_uses_canadian_benchmark
( self, monkeypatch: pytest.MonkeyPatch, )
agent/tests/test_local_source_routing.py:119
Methodtest_canadian_query_drops_us_otc_aliases
Yahoo OTC aliases (BYAGF.US) of a Canadian name are filtered out.
agent/tests/test_symbol_search_tool.py:212
Methodtest_canadian_query_drops_us_otc_aliases_cert
CERT.V OTC alias (CERT.US) is filtered for a Canadian query.
agent/tests/test_symbol_search_tool.py:238
Methodtest_canadian_query_skips_eastmoney_endpoint
A Canadian .V/.TO query fails fast: eastmoney is never contacted.
agent/tests/test_symbol_search_tool.py:196
Functiontest_canadian_symbols_have_grounding_identity
TSX and TSXV symbols retain venue and CAD identity.
agent/tests/test_agent_grounding.py:183
Methodtest_canadian_ticker_with_name_text_skips_eastmoney
A "TICKER.TO <name>" query (e.g. "BTO.TO B2Gold") still fails fast. The model commonly searches the suffixed ticker plus a name hint; the
agent/tests/test_symbol_search_tool.py:288
Methodtest_canadian_tickers_route_to_canada_and_cad
(self)
agent/tests/test_market_detection.py:216
Methodtest_canadian_tsx_to_query_keeps_to_only
A .TO (TSX) query keeps only the .TO candidate, not a US alias.
agent/tests/test_symbol_search_tool.py:263
Methodtest_canadian_v_ticker_with_name_text_skips_eastmoney
SGML.V Sigma Lithium Vancouver" fails fast on the leading .V suffix.
agent/tests/test_symbol_search_tool.py:309
Functiontest_cancel_after_rejected_answer_prevents_retry
(tmp_path: Path)
agent/tests/test_agent_loop_dsml_tool_calls.py:358
Methodtest_cancel_all_called_in_on_bar
(self)
agent/tests/test_vnpy_export.py:131
Functiontest_cancel_all_reaps_only_its_owner
(manager, tmp_path)
agent/tests/test_background_host_lifecycle.py:54
Functiontest_cancel_background_tool_contract
()
agent/tests/test_background_tools.py:176
Functiontest_cancel_before_first_run_is_not_cleared
A cancellation accepted while queued must stop before the LLM call.
agent/tests/test_agent_loop_terminal_state.py:194
Functiontest_cancel_before_process_registration_is_honored
( monkeypatch: pytest.MonkeyPatch, )
agent/tests/test_background_tools.py:292
Functiontest_cancel_before_spawn_never_starts_command
(manager, monkeypatch)
agent/tests/test_background_host_lifecycle.py:95
Functiontest_cancel_before_the_agent_loop_exists_releases_the_claim
cancel_current must work while the registry is still being built. _active_loops is only populated once construction finishes, so a run that h
agent/tests/test_session_service_lifecycle.py:336
Methodtest_cancel_by_id_moves_open_order_to_pending_cancel
(self)
agent/tests/test_paper_order_lifecycle.py:112
Functiontest_cancel_close_order_uses_delete_path
(monkeypatch)
agent/tests/test_etoro_connector.py:719
Functiontest_cancel_completed_task_does_not_touch_process
( monkeypatch: pytest.MonkeyPatch, )
agent/tests/test_background_tools.py:148
Functiontest_cancel_current_cancels_the_swarm_of_that_session
(monkeypatch)
agent/tests/test_swarm_cancel_cascade.py:208
Functiontest_cancel_current_reports_false_when_nothing_is_running
(monkeypatch)
agent/tests/test_swarm_cancel_cascade.py:235
Functiontest_cancel_current_stops_a_swarm_whose_turn_already_ended
No loop, no task — the run outlived the turn and is still cancellable.
agent/tests/test_swarm_cancel_cascade.py:226
Functiontest_cancel_during_stream_skips_that_turns_tool_calls
(tmp_path)
agent/tests/test_swarm_worker_cancel.py:139
Functiontest_cancel_event_is_forwarded_to_stream_chat_as_should_cancel
(tmp_path)
agent/tests/test_swarm_worker_cancel.py:171
Functiontest_cancel_event_stops_the_child
(fake_cli)
agent/tests/test_claude_cli_provider.py:355
Functiontest_cancel_indexed_run_reaches_a_foreign_runtime_run
The HTTP endpoint holds a different SwarmRuntime; the index bridges it.
agent/tests/test_swarm_cancel_cascade.py:175
Functiontest_cancel_intent_is_persisted_before_reaping
(tmp_path, monkeypatch)
agent/tests/test_background_store_recovery.py:286
Functiontest_cancel_interrupts_a_silent_stream
()
agent/tests/test_chat_stream_interruption.py:101
Methodtest_cancel_is_idempotent_while_pending
(self)
agent/tests/test_paper_order_lifecycle.py:118
Functiontest_cancel_mid_flight_worker_stops_promptly
(tmp_path, monkeypatch)
agent/tests/test_swarm_cancel_mid_flight_worker.py:46
Functiontest_cancel_mid_stream_skips_tool_execution
Cancelling during the stream ends the run before any tool runs (#229).
agent/tests/test_agent_loop_terminal_state.py:243
Functiontest_cancel_only_default_when_mandate_absent
(live_runtime: Path)
agent/tests/test_runtime_flatten.py:63
Functiontest_cancel_order_paper_only_and_validation
()
agent/tests/test_zerodha_sdk.py:298
Functiontest_cancel_order_routes_through_tap
(monkeypatch)
agent/tests/test_alpaca_tap_routing.py:328
Functiontest_cancel_order_uses_demo_delete_path
(monkeypatch)
agent/tests/test_etoro_connector.py:326
Functiontest_cancel_reaps_descendant_even_after_shell_exits
(manager, tmp_path)
agent/tests/test_background_host_lifecycle.py:113
Functiontest_cancel_running_task_leaves_sibling_alive
()
agent/tests/test_background_tools.py:269
Functiontest_cancel_running_task_reaps_process
()
agent/tests/test_background_tools.py:254
Functiontest_cancel_runs_for_session_only_touches_its_own_runs
()
agent/tests/test_swarm_cancel_cascade.py:158
Functiontest_cancel_set_before_first_iteration_makes_no_llm_call
(tmp_path)
agent/tests/test_swarm_worker_cancel.py:123
Functiontest_cancel_targets_only_the_tracked_process
( monkeypatch: pytest.MonkeyPatch, )
agent/tests/test_background_tools.py:94
Functiontest_cancel_then_flatten_order
(live_runtime: Path)
agent/tests/test_runtime_flatten.py:79
Functiontest_cancel_unknown_task_returns_actionable_error
()
agent/tests/test_background_tools.py:57
Functiontest_canceled_partial_keeps_its_filled_qty
Canceling a partial fill does not erase the quantity already executed.
agent/tests/test_paper_trade_order_status.py:119
Functiontest_cancellation_during_spawn_is_reaped
(manager, monkeypatch)
agent/tests/test_background_host_lifecycle.py:74
Functiontest_cancellation_interrupts_backoff_without_starting_another_attempt
( tmp_path: Path, )
agent/tests/test_swarm_worker_retry_backoff.py:119
Methodtest_cancelled
(self)
agent/tests/test_run_outcome_module.py:78
← previousnext →15,701–15,800 of 26,887, ranked by callers