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
Method
test_state_envelope_stays_outside_user_message_tags
loop.py may wrap the raw text in <user-message> tags (goal context). The state envelope must stay a sibling prefix, never nest inside —
agent/tests/test_system_prompt_cache_stability.py:117
Function
test_state_hash_matches_frozen_vector
(vector: dict)
agent/tests/test_paper_trade_jcs.py:62
Function
test_state_reexports
()
agent/tests/test_api_infrastructure.py:45
Method
test_state_section_removed_from_system_template
(self)
agent/tests/test_system_prompt_cache_stability.py:66
Function
test_static_header_http_path_unchanged
()
agent/tests/test_mcp_oauth_schema.py:491
Function
test_static_weights_are_normalised_and_must_cover_every_factor
()
agent/tests/quantlib/test_combination.py:112
Method
test_status_degrades_when_liveness_absent
Status must not crash if the runtime parcel hasn't landed yet.
agent/tests/test_cli_runtime.py:345
Method
test_status_filter
( self, tmp_path: Path, capsys: pytest.CaptureFixture[str] )
agent/tests/test_cli_hypothesis.py:114
Method
test_status_filter_with_no_matches
( self, tmp_path: Path, capsys: pytest.CaptureFixture[str] )
agent/tests/test_cli_hypothesis.py:129
Method
test_status_flags_unknown_schema_version
( self, live_root: Path, capsys: pytest.CaptureFixture[str] )
agent/tests/test_cli_live.py:287
Method
test_status_maps_to_server_filter
resolved' stays accepted as a legacy alias for 'closed'.
agent/tests/test_prediction_market_tool.py:567
Method
test_status_no_mandate
(self, live_root: Path, capsys: pytest.CaptureFixture[str])
agent/tests/test_cli_live.py:261
Method
test_status_not_ok
(self)
agent/tests/test_finnhub_loader.py:214
Method
test_status_reflects_halt
(self, live_root: Path, capsys: pytest.CaptureFixture[str])
agent/tests/test_cli_live.py:280
Function
test_status_returns_snapshot_summary
( tmp_path: Path, )
agent/tests/test_taiwan_stock_data_tool.py:473
Method
test_status_routes_default_profile_none
(self)
agent/tests/test_cli_live.py:132
Method
test_status_routes_with_broker
(self)
agent/tests/test_cli_live.py:127
Method
test_status_shows_active_mandate_and_countdown
( self, live_root: Path, capsys: pytest.CaptureFixture[str] )
agent/tests/test_cli_live.py:268
Method
test_status_shows_running
( self, live_root: Path, fake_liveness: Dict[str, Any], capsys: pytest.CaptureFixture[str] )
agent/tests/test_cli_runtime.py:322
Method
test_status_shows_stopped
( self, live_root: Path, fake_liveness: Dict[str, Any], capsys: pytest.CaptureFixture[str] )
agent/tests/test_cli_runtime.py:335
Method
test_status_tool_decay_check_insufficient
(self)
agent/tests/test_strategy_store.py:466
Method
test_status_tool_decay_check_no_evaluable_metrics
decay_check with all-None metrics reports insufficient_data.
agent/tests/test_strategy_store.py:562
Method
test_status_tool_detail
(self)
agent/tests/test_strategy_store.py:423
Method
test_status_tool_disable_enable
(self)
agent/tests/test_strategy_store.py:439
Method
test_status_tool_list
(self)
agent/tests/test_strategy_store.py:412
Function
test_stdio_path_unchanged
()
agent/tests/test_mcp_oauth_schema.py:511
Function
test_stdio_rejects_auth
()
agent/tests/test_mcp_oauth_schema.py:167
Method
test_stem_match_full_form
(self, tmp_path: Path)
agent/tests/test_cli_memory.py:31
Method
test_stem_match_slug_suffix
(self, tmp_path: Path)
agent/tests/test_cli_memory.py:38
Method
test_stock_calls_daily_basic
(self)
agent/tests/test_tushare_loader.py:354
Method
test_stock_index_12pct
(self)
agent/tests/test_china_futures_engine.py:248
Method
test_stock_index_limit_down_blocks_short
(self)
agent/tests/test_china_futures_engine.py:127
Method
test_stock_index_limit_up_blocks_long
IF has ±10% limit; at limit-up, can't open long.
agent/tests/test_china_futures_engine.py:121
Method
test_stock_index_within_limit
(self)
agent/tests/test_china_futures_engine.py:132
Function
test_stock_news_routes_b3_symbols_to_yahoo_with_full_symbol
(monkeypatch)
agent/tests/test_br_data.py:249
Method
test_stock_prices_are_corporate_action_adjusted
(self)
agent/tests/test_tushare_loader.py:212
Method
test_stock_returns_data
(self)
agent/tests/test_tushare_loader.py:391
Method
test_stock_routes_to_daily
(self)
agent/tests/test_tushare_loader.py:164
Method
test_stock_routes_to_stk_mins
(self)
agent/tests/test_tushare_loader.py:282
Function
test_stocks_query_uses_dynamic_type_catalog
(monkeypatch)
agent/tests/test_etoro_connector.py:452
Function
test_stop_all_cancels_a_start_still_in_flight
( monkeypatch: pytest.MonkeyPatch, )
agent/tests/test_channel_manager_reload.py:422
Function
test_stop_all_survives_a_concurrent_reload_removal
Fails pre-fix: the live-dict iteration raised ``RuntimeError`` when the reload popped ``fakea`` mid-await.
agent/tests/test_channel_manager_reload.py:322
Function
test_stop_bounds_a_hanging_connection_close
A wedged ``conn.close()`` must not wedge ``stop()``; the loop still dies.
agent/tests/test_feishu_stop.py:130
Function
test_stop_button_ends_a_running_decision
(fake_cli, monkeypatch)
agent/tests/test_claude_cli_provider.py:393
Function
test_stop_during_async_start_still_cleans_up_its_scheduler
(tmp_path, monkeypatch)
agent/tests/test_api_live_runtime.py:661
Function
test_stop_during_fetch_delivers_batch_but_skips_post_actions
stop() is flag-only; a fetch already in flight still delivers. The already-fetched batch must reach the bus (those messages were marked seen
agent/tests/test_email_connection_test.py:728
Method
test_stop_is_alias_of_halt
(self)
agent/tests/test_cli_runtime.py:412
Function
test_stop_is_bounded_and_leaves_inflight_job_running
Pinned shutdown semantics: cancel the asyncio TASK, never the thread. ``stop()`` returns within the wait_for bound while the sync callable is
agent/tests/scheduling/test_internal_dispatch.py:438
Function
test_stop_is_bounded_when_a_tick_blocks
QA (b): on_tick wedges forever; stop() returns via cancel() within 1s.
agent/tests/scheduling/test_kernel.py:308
Function
test_stop_is_bounded_while_a_tick_is_stuck_in_dispatch
Plan QA (b): a wedged tick must never hang the lifespan shutdown. ``asyncio.wait_for`` bounds ``stop()``; a timeout fails the test, which is
agent/tests/test_scheduling_lifespan_owner.py:150
Function
test_stop_loop_awaits_the_real_scheduler
()
agent/tests/test_runtime_runner.py:539
Function
test_stop_loop_idempotent
()
agent/tests/test_runtime_runner.py:529
Function
test_stop_message_names_what_kept_happening
The fixed text described one scenario (an answer lost to compaction) for every stop; the stop now says which tool did what, how often.
agent/tests/test_tool_progress.py:125
Method
test_stop_posts_to_runner_stop
(self)
agent/tests/test_cli_runtime.py:247
Method
test_stop_routes_to_handler
(self)
agent/tests/test_cli_runtime.py:154
Function
test_stop_terminates_cancel_swallowing_stream_task
The SDK start loop swallows one CancelledError; stop must still kill it.
agent/tests/test_dingtalk_message_flow.py:61
Function
test_stop_terminates_ws_thread_and_closes_connection
Fails pre-fix: ``_running = False`` alone never unwound ``start()``.
agent/tests/test_feishu_stop.py:102
Function
test_stop_waits_for_teardown_and_blocks_a_concurrent_restart
(tmp_path, monkeypatch)
agent/tests/test_api_live_runtime.py:559
Function
test_stop_without_start_is_safe
()
agent/tests/test_feishu_stop.py:151
Function
test_stop_without_stream_task_is_safe
()
agent/tests/test_dingtalk_message_flow.py:86
Function
test_store_exposes_no_write_symbol
()
agent/tests/test_no_set_mandate_tool.py:59
Function
test_store_failure_is_reported_without_failing_the_backtest
( run_dir: Path, store: Any, artifact_id: str )
agent/tests/test_backtest_records_bench.py:343
Method
test_store_loads_old_envelope_file
(self, tmp_path: Path)
agent/tests/test_scheduled_research_model_compat.py:97
Function
test_store_never_serializes_api_key
(tmp_path: Path)
agent/tests/test_custom_provider_routes.py:81
Function
test_store_sanitizes_path_escape_key_inside_cache_root
Path-shaped keys are stored under a sanitized cache-local filename.
agent/tests/test_oauth_token_cache.py:150
Method
test_stored_pid_is_descriptive_only
(self)
agent/tests/test_background_store_recovery.py:78
Method
test_stored_type_is_folded
(self, alias: str)
agent/tests/quantlib/test_options.py:415
Method
test_strategy_class_defined
(self)
agent/tests/test_vnpy_export.py:95
Method
test_strategy_discovery_tools_tuple_exact
(self)
agent/tests/test_strategy_discovery_guard.py:66
Function
test_strategy_file_resides_in_the_fixture_sandbox
()
agent/tests/test_paper_trade_perf.py:211
Function
test_strategy_file_write_on_a_constructed_loop_records_the_configured_model
A real AgentLoop must carry the provenance fields from construction on. The test above sets them by hand; this one goes through ``__init__`` so a
agent/tests/test_agent_loop_strategy_provenance.py:52
Function
test_strategy_hash_is_included_when_strategy_path_exists
(tmp_path: Path)
agent/tests/test_run_card.py:45
Function
test_strategy_json_loads_corrupted_returns_default
()
agent/tests/test_json_loads_guard.py:43
Function
test_strategy_json_loads_empty_returns_default
()
agent/tests/test_json_loads_guard.py:38
Function
test_strategy_json_loads_valid_json
()
agent/tests/test_json_loads_guard.py:34
Function
test_strategy_path_cash_only_account_fills_via_declared_universe
()
agent/tests/test_paper_trade_tool.py:363
Function
test_strategy_path_mode_leaves_runtime_root_and_cwd_byte_identical
(controlled_cwd: Path)
agent/tests/test_paper_trade_purity.py:205
Function
test_strategy_path_replay_is_byte_identical
()
agent/tests/test_paper_trade_multiday.py:282
Function
test_strategy_path_routes_to_run_strategy_path
(monkeypatch: pytest.MonkeyPatch)
agent/tests/test_paper_trade_tool.py:286
Function
test_strategy_path_single_call_three_day_form
()
agent/tests/test_paper_trade_multiday.py:250
Function
test_strategy_reason_at_the_boundary_is_kept_whole
()
agent/tests/test_paper_trade_schema.py:278
Function
test_strategy_reason_none_maps_to_empty_and_non_str_fails_closed
()
agent/tests/test_paper_trade_schema.py:297
Function
test_strategy_reason_truncation_never_splits_multibyte_characters
()
agent/tests/test_paper_trade_schema.py:285
Method
test_strategy_routing_thresholds_present
Verify strategy routing classification is defined.
agent/tests/test_context_attribution_layers.py:91
Function
test_strategy_template_preserves_missing_price_gaps
()
agent/tests/test_strategy_dev_manager_template.py:26
Function
test_strategy_universe_convention_violations_degrade_to_empty
(case_id)
agent/tests/test_paper_trade_strategy_path.py:566
Function
test_strategy_universe_extracts_literal_tuple_and_list
()
agent/tests/test_paper_trade_strategy_path.py:542
Function
test_strategy_universe_never_executes_the_source
()
agent/tests/test_paper_trade_strategy_path.py:589
Function
test_strategy_universe_path_policy_rejections_degrade_to_empty
(tmp_path)
agent/tests/test_paper_trade_strategy_path.py:571
Function
test_strategy_uses_prior_bars_and_receives_previous_fills
()
agent/tests/test_paper_trade_strategy_path.py:630
Function
test_streak_resets_after_clean_iteration
A clean first-attempt iteration resets the streak to the base delay.
agent/tests/test_stream_retry_escalation.py:210
Function
test_stream_chat_no_chunk_fallback_keeps_cache_kwargs
The no-chunk invoke fallback must send the same cache markers as chat().
agent/tests/test_anthropic_prompt_cache.py:173
Function
test_stream_chat_uses_the_same_provider_agnostic_filter
(shared_policy)
agent/tests/test_provider_agnostic_tool_policy.py:96
Function
test_stream_checkpoint_tracks_deltas_and_resets
(tmp_path: Path)
agent/tests/test_session_restart_recovery.py:30
Function
test_stream_dsml_tool_call_content_is_not_emitted_as_text
DSML tool-call payloads should not flash as assistant text in CLI/UI.
agent/tests/test_chat_llm_streaming.py:128
Function
test_stream_emits_result_then_done
()
agent/tests/test_alpha_compare_api.py:171
Function
test_stream_error_redacts_configured_secret_values
()
agent/tests/test_chat_llm_streaming.py:235
Function
test_stream_failure_raises_provider_error_without_silent_fallback
()
agent/tests/test_chat_llm_streaming.py:219
Function
test_stream_idle_timeout_aborts_a_stalled_stream
A stream whose deltas stall past the idle budget fails retryably. The loop passes idle_timeout_s so a provider that stops emitting chunks (si
agent/tests/test_chat_llm_streaming.py:358
Function
test_stream_idle_timeout_allows_a_flowing_stream
Chunks arriving within the idle budget are unaffected by the timeout.
agent/tests/test_chat_llm_streaming.py:382
← previous
next →
24,701–24,800 of 26,887, ranked by callers