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_read_fails_closed_when_tap_errors
(monkeypatch)
agent/tests/test_alpaca_tap_routing.py:290
Function
test_read_failure_but_flatten_attempted_sets_side_effects_flag
( live_runtime: Path, )
agent/tests/test_runtime_flatten.py:338
Function
test_read_failure_does_not_latch_and_restart_replays
(live_root: Path)
agent/tests/test_sweep_latch.py:190
Function
test_read_failure_recorded_not_raised
(live_runtime: Path)
agent/tests/test_runtime_flatten.py:183
Function
test_read_file_skill_prefix_cannot_escape_skills_root
Traversal out of the skills namespace must be rejected, not redirected. Binding the prefix to one root would be worthless if `skills/../x` walked
agent/tests/test_file_tool_sandbox_security.py:98
Function
test_read_file_skill_prefix_is_not_shadowed_by_run_dir
`skills/` binds to the bundled skills root, never to a run_dir decoy.
agent/tests/test_file_tool_sandbox_security.py:80
Method
test_read_identity_pins_requested_boundary_and_provenance
( self, monkeypatch, sample_df )
agent/tests/test_technical_indicator_tool.py:334
Function
test_read_metric_values_parses_floats
(tmp_path: Path)
agent/tests/test_cli_backtest_summary.py:40
Function
test_read_metric_values_returns_empty_when_absent
(tmp_path: Path)
agent/tests/test_cli_backtest_summary.py:49
Method
test_read_metrics_trade_count
(self, tmp_path)
agent/tests/test_strategy_discovery_hard_gates.py:109
Method
test_read_metrics_trade_count_missing_or_unusable
(self, tmp_path)
agent/tests/test_strategy_discovery_hard_gates.py:113
Function
test_read_ops_error_envelope_on_broker_failure
(monkeypatch)
agent/tests/test_zerodha_sdk.py:262
Function
test_read_purpose_rejection_names_the_file_roots_env
(tmp_path: Path, monkeypatch)
agent/tests/test_file_tool_sandbox_security.py:224
Method
test_read_run_status_missing_or_unusable
(self, tmp_path)
agent/tests/test_strategy_discovery_hard_gates.py:95
Method
test_read_run_status_success
(self, tmp_path)
agent/tests/test_strategy_discovery_hard_gates.py:91
Function
test_read_timeout_env
(monkeypatch)
agent/tests/test_baostock_socket_deadline.py:156
Function
test_read_tools_unaffected_by_halt
A plain read tool is NOT a guard — HALT must not block reads.
agent/tests/test_killswitch_blocks_orders.py:134
Function
test_read_url_adds_security_warning_to_external_content
( monkeypatch: pytest.MonkeyPatch, )
agent/tests/test_security_scanner.py:61
Function
test_read_url_allows_public_http_targets
(monkeypatch: pytest.MonkeyPatch)
agent/tests/test_web_reader_security.py:50
Function
test_read_url_rejects_non_public_targets_without_network
( monkeypatch: pytest.MonkeyPatch, url: str, )
agent/tests/test_web_reader_security.py:36
Function
test_read_write_env_quoted_hash_roundtrip
(tmp_path)
agent/tests/test_api_infrastructure.py:303
Function
test_read_write_env_values_roundtrip
(tmp_path)
agent/tests/test_api_infrastructure.py:217
Function
test_read_write_separation_prevent_cross_escalation
(tmp_path: Path, monkeypatch)
agent/tests/test_file_tool_sandbox_security.py:141
Function
test_readable_cached_duplicate_keeps_exact_key_locked
(harness)
agent/tests/test_compaction_call_identity.py:276
Function
test_reader_imports_only_the_standard_library
No network, no broker SDK, no order path can be reached from here.
agent/tests/test_extraetf_reader.py:780
Function
test_readiness_gate_outranks_a_hanging_strategy
()
agent/tests/test_paper_trade_strategy_path.py:438
Function
test_readiness_helper_missing_provider
(monkeypatch: pytest.MonkeyPatch)
agent/tests/test_system_routes.py:120
Function
test_readiness_helper_real_missing_credential
The un-mocked helper flags a configured provider with no credential.
agent/tests/test_system_routes.py:88
Function
test_readiness_helper_real_ready
The un-mocked helper reports ready when provider+model+key are present.
agent/tests/test_system_routes.py:106
Function
test_readiness_snapshots_and_single_asset_validation
()
agent/tests/test_analysis_reliability.py:134
Function
test_readme_loader_tree_line_matches_the_registry
Every README's loaders line must name exactly the registered sources.
agent/tests/test_readme_counts.py:587
Function
test_readonly_broker_sdk_profile_backs_a_portfolio_connection
A read-only SDK profile that exposes both reads stays eligible.
agent/tests/test_local_connections_hardening.py:326
Function
test_readonly_profile_withholds_unmapped_portfolio_valuation
()
agent/tests/test_mstock_connector.py:19
Method
test_reads_configured_value
(self, monkeypatch: pytest.MonkeyPatch)
agent/tests/test_env_schema.py:583
Function
test_reads_do_not_route_through_tap_when_disabled
(monkeypatch)
agent/tests/test_alpaca_tap_routing.py:303
Method
test_reads_from_additional_kwargs
(self)
agent/tests/test_kimi_reasoning_content.py:25
Method
test_reads_return_error_envelope_when_sdk_missing
( self, monkeypatch: pytest.MonkeyPatch, tmp_path: Path )
agent/tests/test_mt5_connector.py:416
Function
test_ready_returns_200_when_provider_ready
( local_client: TestClient, monkeypatch: pytest.MonkeyPatch )
agent/tests/test_system_routes.py:64
Function
test_ready_returns_503_when_provider_not_ready
( local_client: TestClient, monkeypatch: pytest.MonkeyPatch )
agent/tests/test_system_routes.py:75
Function
test_real_adapter_payload_has_no_cache_markers_when_flag_off
()
agent/tests/test_anthropic_prompt_cache.py:265
Function
test_real_adapter_payload_has_no_cache_markers_without_a_system_prompt
One-shot calls (compaction, vision) carry no system prompt and no markers.
agent/tests/test_anthropic_prompt_cache.py:277
Function
test_real_adapter_request_payload_carries_both_breakpoints
()
agent/tests/test_anthropic_prompt_cache.py:247
Function
test_real_adapter_sync_bridge_works_inside_event_loop
(monkeypatch)
agent/tests/test_parallel_search.py:300
Function
test_real_agent_stops_before_tools_when_usage_monitor_cancels
(tmp_path, reported)
agent/tests/test_live_decision_budget.py:165
Function
test_real_audit_write_on_halt
(monkeypatch, tmp_path)
agent/tests/test_runtime_runner.py:603
Function
test_real_blank_cells_keep_existing_nan_representation
(tmp_path, monkeypatch)
agent/tests/test_doc_reader_excel_literal_text.py:46
Function
test_real_child_is_killed_at_deadline
()
agent/tests/test_loader_health.py:153
Function
test_real_client_receives_timeouts_and_no_credentials
(monkeypatch)
agent/tests/test_parallel_search.py:251
Function
test_real_completion_transport_redacts_key_and_sends_expected_request
(monkeypatch)
agent/tests/test_custom_provider_routes.py:264
Function
test_real_connection_store_accepts_reads_but_portfolio_rejects_them
(tmp_path)
agent/tests/test_mstock_connector.py:164
Function
test_real_containers_still_work
Well-behaved clients sending real arrays/objects are unaffected.
agent/tests/test_mcp_json_string_args.py:158
Function
test_real_engine_archive_is_accepted_only_for_its_own_call
( tmp_path: Path, monkeypatch: pytest.MonkeyPatch )
agent/tests/test_grounding_backtest_outputs.py:442
Function
test_real_exported_monte_carlo_result_stays_within_budget
()
agent/tests/test_quantlib_result_budget.py:26
Method
test_real_fts_finds_current_rows_beyond_a_fixed_buffer
Expand past stale rows and stop when the real SQLite index ends.
agent/tests/memory/test_tier2_integration.py:227
Method
test_real_headlines
Verify scoring makes sense on realistic financial headlines.
agent/tests/test_sentiment_tool.py:64
Function
test_real_import_paths_are_rejected_when_not_registered
(clean_registry, name: str)
agent/tests/scheduling/test_registry.py:110
Method
test_real_jsonp_wrapper_is_stripped
(self)
agent/tests/test_eastmoney_client.py:176
Function
test_real_jwt_expiry_overrides_stale_stored_expiry
()
agent/tests/test_openai_codex.py:186
Method
test_real_key_is_available
(self, monkeypatch)
agent/tests/test_alphavantage_loader.py:49
Function
test_real_ledger_checks_each_period_and_stock_path
(vendor, tmp_path)
agent/tests/test_gildata_stock_selection.py:77
Function
test_real_ledger_guard_fires_when_the_ledger_changes
The outcome guard must reject a changed real ledger, not just a bad env. Mutating the baseline is the only way to exercise the positive branch wi
agent/tests/test_config_root_sandbox.py:83
Function
test_real_local_backtest_to_child_evidence
Real file loader, code generation write, subprocess engine and refresh; no network/model.
agent/tests/test_strategy_adaptation_workflow.py:140
Function
test_real_local_csv_benchmark_reaches_run_metrics
Exercise CSV -> actual loader -> runner -> run card with no network.
agent/tests/test_offline_benchmark.py:228
Function
test_real_local_perpetual_backtest_records_one_measurement
Exercise real tool -> subprocess -> crypto engine -> bench persistence.
agent/tests/test_backtest_records_bench.py:441
Function
test_real_loop_loads_then_calls_the_original_tool
(tmp_path, monkeypatch)
agent/tests/test_deferred_tool_loading.py:122
Function
test_real_mixed_arabic_markdown_table_pdf
(tmp_path)
agent/tests/test_pdf_report_arabic.py:71
Function
test_real_read_failures_are_not_reported_as_an_empty_order_book
(exchange, monkeypatch, error)
agent/tests/test_binance_open_orders.py:41
Function
test_real_reasoning_tails_are_incremental_and_redaction_stays_private
()
agent/tests/test_channels_attempt_progress.py:94
Function
test_real_registry_substitution_reports_serving_source
Exercise the real resolver, including unavailable optional SDKs.
agent/tests/test_market_data_serving_source.py:19
Function
test_real_report_is_accepted
()
agent/tests/test_swarm_output_contract.py:158
Function
test_real_run_card_structured_metrics_reach_summary
(summary_run_dir)
agent/tests/test_backtest_summary.py:498
Function
test_real_runner_factory_uses_fresh_sessions_and_persistent_budget
(tmp_path, monkeypatch, exhaust)
agent/tests/test_api_live_runtime.py:850
Method
test_real_schema_yields_rows_with_expected_attribution
(self, tmp_path)
agent/tests/test_strategy_discovery_harness.py:462
Function
test_real_sdk_login_failure_reaches_market_data_fallback
(monkeypatch, mode)
agent/tests/test_baostock_socket_deadline.py:312
Function
test_real_sdk_tool_call_and_async_stream
(requests)
agent/tests/test_minimax_flash.py:193
Function
test_real_step_persists_and_prevents_replay
(service)
agent/tests/test_paper_accounts.py:60
Function
test_real_table_and_inline_code_marker_remain_auditable
()
agent/tests/test_report_audit_code_fences.py:58
Function
test_real_tencent_warning_path_redacts_a_structured_exception
(monkeypatch, message)
agent/tests/test_loader_health.py:468
Method
test_real_token_id_skips_resolution
A 77-digit id captured live must not be mistaken for a market id.
agent/tests/test_prediction_market_tool.py:903
Function
test_real_tool_execution_uses_each_responses_model
Provider identity follows the writing turn, falling back when absent.
agent/tests/test_agent_loop_strategy_provenance.py:80
Method
test_real_tool_result_event_arms_pending_proposal
A genuine propose-tool tool_result through on_event arms the proposal. This is the path the prior tests skipped (they set pending_proposal
agent/tests/test_cli_live.py:751
Function
test_real_usage_and_schema_growth_are_counted
(tmp_path)
agent/tests/test_swarm_context.py:105
Function
test_real_zero_buckets_stay_zero_and_absent_total_stays_unknown
()
agent/tests/test_tushare_fallbacks.py:156
Method
test_realtime_alive_history_dead_is_not_dead_feed
Both sides must be dead: a trimmed all-None history window with a live realtime figure still serves the Eastmoney envelope.
agent/tests/test_northbound_tool.py:216
Function
test_reap_stale_empty_when_no_dir
(live_runtime: Path)
agent/tests/test_runtime_liveness.py:99
Function
test_reap_stale_nothing_when_all_fresh
(live_runtime: Path)
agent/tests/test_runtime_liveness.py:103
Function
test_reap_stale_removes_only_stale
(live_runtime: Path)
agent/tests/test_runtime_liveness.py:87
Function
test_reap_stale_runs_mcp_tool
(tmp_path, monkeypatch)
agent/tests/test_swarm_status_hydration.py:468
Function
test_reaper_leaves_terminal_tasks_alone
If some tasks already completed before the host died, do not overwrite them — only the still-in-flight ones should turn failed.
agent/tests/test_swarm_status_hydration.py:435
Function
test_reaper_reaps_silent_run_and_writes_task_errors
(tmp_path)
agent/tests/test_swarm_status_hydration.py:382
Function
test_reaper_threshold_lifts_when_heartbeat_disabled
When the user disables heartbeats (interval set very high), the threshold must rise so a legitimately slow run isn't false-positive- reaped. C
agent/tests/test_swarm_status_hydration.py:352
Function
test_reaper_uses_recent_event_with_unicode_line_separators
(tmp_path)
agent/tests/test_swarm_status_hydration.py:413
Method
test_reason_and_degraded_flags
(self)
agent/tests/test_run_outcome_module.py:166
Function
test_reason_is_optional
()
agent/tests/test_verdict.py:70
Method
test_reason_with_fullwidth
(self, fsp)
agent/tests/test_fetch_sina_penalties.py:401
Method
test_reasoning_content_takes_priority_over_reasoning
If both variants are present, reasoning_content wins (higher priority).
agent/tests/test_kimi_reasoning_content.py:434
Function
test_reasoning_delta_throttled_but_first_chunk_immediate
A burst of reasoning chunks must collapse to few events, first one instant.
agent/tests/test_reasoning_delta_throttle.py:81
Method
test_reasoning_effort_defaults_to_chat_completions
(self)
agent/tests/test_llm_reasoning_effort.py:653
Function
test_reasoning_effort_extra_body_is_openrouter_only
LANGCHAIN_REASONING_EFFORT should not leak into official DeepSeek payloads.
agent/tests/test_provider_diagnostics.py:94
Function
test_reasoning_is_a_reported_subset_of_output_not_added_again
()
agent/tests/test_llm_cost_accounting.py:160
← previous
next →
22,801–22,900 of 26,887, ranked by callers