MCPcopy Create free account

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

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

Functiontest_loading_cannot_add_a_tool_outside_the_current_registry
()
agent/tests/test_deferred_tool_loading.py:65
Functiontest_loading_message_uses_the_host_tool_protocol
()
agent/tests/test_deferred_tool_loading.py:50
Methodtest_loads_all_skills
(self, skills_dir: Path, empty_user_dir: Path)
agent/tests/test_skills.py:145
Methodtest_local_a_share_routes_to_china_a_engine
(self)
agent/tests/test_local_source_routing.py:43
Functiontest_local_cache_does_not_reuse_another_configured_file
Changing only a symbol's file must not serve the previous file's bars.
agent/tests/test_local_loader_cache_identity.py:30
Functiontest_local_cache_separates_queries_on_the_same_database
Two query declarations can select different bars for the same symbol.
agent/tests/test_local_loader_cache_identity.py:74
Methodtest_local_canadian_equity_routes_to_canadian_global_rules
(self)
agent/tests/test_local_source_routing.py:34
Methodtest_local_crypto_still_routes_to_crypto_engine
(self)
agent/tests/test_local_source_routing.py:39
Functiontest_local_csv_reaches_runner_and_persisted_trades
Execute the public runner with real local data, signal loading and output.
agent/tests/test_global_futures_digit_routing.py:86
Functiontest_local_csv_run_persists_lot_assumptions
Actual CSV ingestion and artifact writing preserve sizing diagnostics.
agent/tests/test_global_equity_hk_lot_sizes.py:153
Functiontest_local_dev_can_write_llm_settings_when_api_key_unset
( monkeypatch: pytest.MonkeyPatch, tmp_path, )
agent/tests/test_security_auth_api.py:295
Functiontest_local_dev_write_allowed_when_key_unset
()
agent/tests/test_security_auth_api.py:72
Functiontest_local_goal_tools_use_injected_session
Agent tools can start, inspect, and mutate the current session goal.
agent/tests/test_goal_tools.py:20
Methodtest_local_hk_equity_routes_to_global_equity_engine
(self)
agent/tests/test_local_source_routing.py:30
Functiontest_local_loader_drops_dirty_bar
A structurally invalid bar in a local file must not reach the backtest.
agent/tests/test_ohlc_validation.py:67
Functiontest_local_loader_fetches_csv_with_local_prefix
Symbols prefixed with local: should resolve to the configured symbol.
agent/tests/test_local_loader.py:23
Functiontest_local_loader_fetches_duckdb_without_path
DuckDB sources use db_path/query and should not require a path field.
agent/tests/test_local_loader.py:175
Functiontest_local_loader_handles_timezone_aware_timestamps
tz-aware timestamps must not crash the date filter into an empty result. Regression: the date-range filter compared a tz-naive Timestamp against
agent/tests/test_local_loader.py:210
Functiontest_local_loader_normalizes_dst_offsets_to_naive_utc
( tmp_path: Path, monkeypatch: pytest.MonkeyPatch )
agent/tests/test_local_loader.py:257
Functiontest_local_loader_resamples_intraday_to_coarser_interval
Requesting 4H against hourly bars must aggregate, not silently return hourly.
agent/tests/test_local_loader.py:102
Functiontest_local_loader_warns_and_keeps_source_when_upsampling
Requesting a finer interval than the file holds cannot fabricate bars.
agent/tests/test_local_loader.py:128
Methodtest_local_source_fails_closed_without_yfinance
source=local must never touch the network, even when the local loader yields no benchmark data, raises, or was silently swapped for a
agent/tests/test_local_source_routing.py:162
Methodtest_local_us_equity_routes_to_global_equity_engine
(self)
agent/tests/test_local_source_routing.py:26
Methodtest_lock_acquired_yields_true
Normal lock acquisition should yield True.
agent/tests/test_memory_lifecycle.py:340
Methodtest_lock_file_created
Lock file .lock should be created in memory dir.
agent/tests/test_memory_lifecycle.py:349
Methodtest_locked_identity_with_missing_price_instructs_market_data
( self, tmp_path: Path )
agent/tests/test_grounding_recovery.py:100
Functiontest_locked_symbol_rejects_silent_exchange_rewrite
The consumer may not move the locked listing to another exchange.
agent/tests/test_agent_grounding.py:897
Functiontest_locking_an_empty_file_writes_nothing
Locking must leave a zero-byte file zero-byte. This is the property the ledger test depends on, asserted directly so a regression names the c
agent/tests/test_windows_lock_no_sentinel.py:79
Functiontest_locks_target_offset_zero
A one-byte range at offset 0 is what makes the beyond-EOF lock valid.
agent/tests/test_windows_lock_no_sentinel.py:118
Functiontest_lockup_expiry_tool_integer_code_handling
Verify LockupExpiryTool.execute handles integer stock codes without raising AttributeError on .strip().
agent/tests/test_lockup_expiry_integer_code.py:8
Methodtest_login_pin_mismatch_rejected
(self, fake_mt5: FakeMT5)
agent/tests/test_mt5_connector.py:474
Functiontest_logs_none_when_no_env_found
(tmp_path, fresh, monkeypatch, caplog)
agent/tests/test_dotenv_observability.py:67
Functiontest_logs_redacted_base_url_without_credentials
(tmp_path, fresh, monkeypatch, caplog)
agent/tests/test_dotenv_observability.py:100
Functiontest_logs_redacted_label_not_path
The resolved slot is logged as a symbolic label; the absolute path and OS username never appear (CWE-209).
agent/tests/test_dotenv_observability.py:30
Functiontest_lone_langchain_human_message_is_passed_verbatim
(fake_cli)
agent/tests/test_claude_cli_provider.py:437
Methodtest_long_allowed
(self)
agent/tests/test_china_a_engine.py:66
Methodtest_long_allowed
(self)
agent/tests/test_china_futures_engine.py:89
Methodtest_long_allowed
(self)
agent/tests/test_india_equity_engine.py:40
Methodtest_long_allowed
(self)
agent/tests/test_global_futures_engine.py:103
Methodtest_long_allowed
(self)
agent/tests/test_crypto_engine.py:185
Methodtest_long_allowed
(self)
agent/tests/test_forex_engine.py:96
Methodtest_long_allowed
(self)
agent/tests/test_korea_equity_engine.py:123
Methodtest_long_argument_is_truncated
(self)
agent/tests/test_institutional_commands.py:259
Functiontest_long_call_breakeven_and_payoff
A long call has premium-limited loss and unbounded upside.
agent/tests/test_options_payoff.py:29
Functiontest_long_equity_summary_survives_model_delivery
(summary_run_dir)
agent/tests/test_backtest_summary.py:510
Methodtest_long_gap_not_filled
Gaps > 5 bars should remain NaN (not masked by stale price).
agent/tests/test_engine_robustness.py:47
Functiontest_long_horizon_opposite_signed_terms_do_not_cancel_to_nan
Two subnormal-window terms must resolve to the latest-dated flow. With both the 2016 and 2017 terms overflowing, the old kernel sums ``-inf +
agent/tests/quantlib/test_performance.py:401
Functiontest_long_loser_counts_once_in_late_not_noise
()
agent/tests/test_shadow_attribution.py:89
Functiontest_long_native_page_keeps_no_ocr_needed_control
(tmp_path)
agent/tests/test_doc_reader_native_fallback.py:91
Functiontest_long_only_and_cost_validation
()
agent/tests/test_argentina_equity_engine.py:106
Functiontest_long_only_normalization_and_exposure_remain_compatible
()
agent/tests/test_risk_xray_long_short.py:144
Functiontest_long_open_beyond_buying_power_rejects
(tmp_path: Path)
agent/tests/test_options_margin.py:118
Functiontest_long_position_quantity_passes_through
()
agent/tests/test_alpaca_position_sign.py:30
Functiontest_long_prompt_passes_validation_and_reaches_session_lookup
(client, content)
agent/tests/test_interactive_message_limit.py:23
Functiontest_long_short_preserves_exposure_scale_for_returns_and_report
()
agent/tests/test_risk_xray_long_short.py:35
Methodtest_long_slippage_increases_price
(self)
agent/tests/test_crypto_engine.py:248
Functiontest_long_straddle_two_breakevens
A long straddle has one root on either side of its strike.
agent/tests/test_options_payoff.py:150
Methodtest_long_tail_not_a_suffix
(self)
agent/tests/test_mt5_connector.py:305
Functiontest_long_window_requests_full_history_without_sampling
Over the shared 250-row cap the fetch would sample the series down and break consecutive-return math; the tool must ask for every row (#1461).
agent/tests/test_risk_xray.py:512
Functiontest_longbridge_balance_keeps_financing_and_per_currency_cash
``total_cash`` nets every currency, so a borrowed HKD leg only shows per currency.
agent/tests/test_sdk_connectors.py:254
Functiontest_longbridge_balance_sparse_reply_reads_as_none
Fields the SDK omits read as missing, never as zero cash or headroom.
agent/tests/test_sdk_connectors.py:300
Functiontest_longbridge_build_config_and_region
(monkeypatch, tmp_path)
agent/tests/test_sdk_connectors.py:171
Functiontest_longbridge_cash_survives_store_api_context_and_cli
(tmp_path, capsys, monkeypatch)
agent/tests/test_portfolio_cash_and_error_details.py:79
Methodtest_longbridge_credentials_read_from_environment
( self, monkeypatch: pytest.MonkeyPatch )
agent/tests/test_env_schema.py:325
Functiontest_longbridge_invalid_region_rejected
()
agent/tests/test_sdk_connectors.py:185
Functiontest_longbridge_missing_credentials_maps_not_configured
When Longbridge SDK reports no credentials, status shows not_configured.
agent/tests/test_longbridge_runtime.py:69
Functiontest_longbridge_open_orders_filters_terminal
(monkeypatch)
agent/tests/test_sdk_connectors.py:1077
Functiontest_longbridge_order_ops_classified_write
()
agent/tests/test_sdk_connectors.py:481
Functiontest_longbridge_place_order_paper_only_guard
()
agent/tests/test_sdk_order_gate.py:971
Functiontest_longbridge_public_config_redacts_secrets
Secret material must never appear in status payloads or config reprs.
agent/tests/test_sdk_connectors.py:238
Functiontest_longbridge_quote_context_uses_from_apikey_on_sdk_4
SDK 4.0+ refuses ``Config(...)``; the connector must use the factory.
agent/tests/test_sdk_connectors.py:190
Functiontest_longbridge_sdk_is_optional_and_available_as_an_extra
Broker SDK dependencies must not perturb every baseline installation.
agent/tests/test_packaging_dependencies.py:49
Functiontest_longbridge_status_normalization_variants
Terminal-status filtering must work across SDK string forms.
agent/tests/test_sdk_connectors.py:1084
Functiontest_longbridge_valid_check_maps_connected
When Longbridge SDK reports ok, status shows connected.
agent/tests/test_longbridge_runtime.py:100
Functiontest_longbridge_verify_never_needs_mandate_and_runner_unavailable
Longbridge verify is read-only; no mandate required, runner is unavailable.
agent/tests/test_longbridge_runtime.py:962
Functiontest_longbridge_with_overrides_preserves_atomic_credentials
()
agent/tests/test_sdk_connectors.py:216
Functiontest_lookalike_host_is_not_a_live_broker
A substring/lookalike host must NOT match (no false positive).
agent/tests/test_readonly_default.py:257
Functiontest_lookalike_identifiers_are_left_alone
()
agent/tests/test_redaction_platform_tokens.py:31
Functiontest_lookalikes_are_left_alone
()
agent/tests/test_redaction_channel_and_provider_tokens.py:40
Functiontest_lookalikes_are_left_alone
()
agent/tests/test_redaction_cloud_api_keys.py:26
Methodtest_lookback_clamped_to_ceiling
(self)
agent/tests/test_southbound_tool.py:75
Methodtest_lookback_is_clamped_to_ceiling
(self)
agent/tests/test_northbound_tool.py:76
Functiontest_lookback_window_trims_to_exactly_k_trading_bars
()
agent/tests/test_paper_trade_readiness.py:335
Functiontest_lookup_codes_matches_chinext_case_insensitively
Universe lookup should use the same normalized casing as input handling.
agent/tests/test_autopilot_tool.py:32
Functiontest_lookup_is_deterministic
()
agent/tests/test_paper_trade_limits_cn_a.py:198
Functiontest_lookup_reports_unknown_stock_ids
( tmp_path: Path, )
agent/tests/test_taiwan_stock_data_tool.py:581
Functiontest_lookups_are_deterministic
(cn_a_client: FakeCalendarClient)
agent/tests/test_paper_trade_calendar.py:136
Functiontest_loop_backoff_helper_escalates_and_caps
The loop's capped-exponential helper escalates 1→2→4 and caps at max.
agent/tests/test_stream_retry_escalation.py:431
Functiontest_loop_cancel_during_retry_delay_returns_without_waiting_it_out
Stop pressed during the backoff must not be held for the whole delay. The delay used to be a flat 1.0s constant; it now escalates to the conf
agent/tests/test_stream_retry_escalation.py:484
Functiontest_loop_does_not_fire_before_the_deadline_and_wakes_on_add
The kernel sleeps the hint, not a fixed tick: with the clock pinned before the deadline nothing fires, and an add_job (which requests a wake)
agent/tests/test_runtime_scheduler_kernel.py:120
Functiontest_loop_first_failure_sleeps_base
One transient failure in AgentLoop → exactly one sleep of base (1.0).
agent/tests/test_stream_retry_escalation.py:396
Functiontest_loop_helper_attaches_thought_signature_to_dict_history
()
agent/tests/test_agent_loop_thought_signature.py:110
Functiontest_loop_non_retryable_error_no_sleep
A deterministic 4xx fails the loop with no sleep recorded.
agent/tests/test_stream_retry_escalation.py:420
Functiontest_loop_reexports
Every moved name resolves through ``src.agent.loop`` (back-compat).
agent/tests/test_run_outcome_module.py:39
Functiontest_loop_reexports_moved_name
(name)
agent/tests/test_tool_results_module.py:34
Functiontest_loop_releases_a_valid_draft_without_its_figures_block
The block is the model's declaration to the gate, never answer text.
agent/tests/test_grounding_release.py:2012
Functiontest_loop_releases_the_redacted_draft_instead_of_the_canned_refusal
A model that never drops its invented entry still delivers its analysis.
agent/tests/test_grounding_release.py:690
Functiontest_loop_repairs_a_missing_source_word_without_another_model_round
(tmp_path: Path)
agent/tests/test_grounding_release.py:917
Functiontest_loop_retry_after_honored_and_emitted
A 429 with Retry-After: 7 sleeps 7s and emits retry_delay_s=7.0.
agent/tests/test_stream_retry_escalation.py:407
Functiontest_loop_runs_recovery_before_fallback
A rejected draft must drive search_symbol recovery before falling back.
agent/tests/test_grounding_recovery.py:380
← previousnext →20,301–20,400 of 26,887, ranked by callers