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_pre_translated_allows_mixed_currencies_when_told_explicitly
()
agent/tests/test_entities_spine.py:218
Function
test_pre_translated_without_a_reporting_currency_is_refused
()
agent/tests/test_entities_spine.py:228
Method
test_pre_xml_filing_reports_why_it_cannot_be_read
Berkshire's 2011 filing holds one .txt document and no XML at all.
agent/tests/test_institutional_holdings_tool.py:640
Method
test_precious_metals_classify_as_forex
(self)
agent/tests/test_correlation.py:68
Function
test_precious_metals_keep_the_forex_loader
(symbol, monkeypatch)
agent/tests/test_equity_crypto_suffix_regressions.py:143
Function
test_preferred_equity_reduces_equity_value
()
agent/tests/quantlib/valuation/test_dcf.py:751
Function
test_preferred_stock_increases_enterprise_value
Preferred ranks senior to common -- market cap alone underprices the whole enterprise by the preferred claim.
agent/tests/quantlib/valuation/test_comps.py:147
Function
test_prefix_constant_contains_colon_for_safe_id_re_interplay
the prefix MUST contain ':' so SAFE_JOB_ID_RE (^[A-Za-z0-9_-]{1,128}$) rejects every system id at POST/path-param level — structural anti-forgery.
agent/tests/scheduling/test_system_jobs.py:116
Function
test_prefix_conversion_preserves_share_classes_and_venues
(code, expected)
agent/tests/test_portfolio_futu_prefixed_codes.py:54
Method
test_prefix_match_when_no_exact
(self, monkeypatch)
agent/tests/test_tickerall_loader.py:154
Function
test_preflight_uses_cli_login
(monkeypatch)
agent/tests/test_claude_cli_provider.py:507
Function
test_premium_and_discount_ordering
()
agent/tests/quantlib/test_fixedincome.py:52
Function
test_prepare_sandbox_home_copy_fallback_when_symlink_privileges_missing
Windows cannot always create symlinks; the copy fallback must still work. On Windows, ``symlink_to`` can raise OSError 1314 (privilege not held)
agent/tests/test_runner_env.py:225
Function
test_prepare_sandbox_home_preseeds_mootdx_config
(tmp_path: Path)
agent/tests/test_runner_env.py:261
Function
test_prepare_sandbox_home_reexposes_mt5_config_without_credentials
The backtest sandbox must reach the already-running MT5 terminal without ever shipping broker credentials to strategy code (#1589). The full
agent/tests/test_runner_env.py:187
Function
test_prepare_sandbox_home_reexposes_only_loader_paths
(tmp_path: Path)
agent/tests/test_runner_env.py:162
Method
test_preserves_absolute_run_dir
(self)
agent/tests/test_loop_helpers.py:418
Method
test_preserves_handoff_summary
(self)
agent/tests/test_loop_helpers.py:289
Method
test_preserves_head_and_tail
(self)
agent/tests/test_loop_helpers.py:277
Method
test_preserves_reasoning_on_streaming_delta
(self)
agent/tests/test_kimi_reasoning_content.py:327
Method
test_preserves_reasoning_on_tool_call_response
(self)
agent/tests/test_kimi_reasoning_content.py:209
Method
test_preserves_short_content
(self)
agent/tests/test_loop_helpers.py:86
Method
test_preserves_sign
(self)
agent/tests/test_turnover_aware_optimizer.py:110
Method
test_preserves_tab_and_newline
(self)
agent/tests/test_persistent_memory.py:521
Method
test_preserves_tool_call_thought_signature_on_streaming_delta
(self)
agent/tests/test_kimi_reasoning_content.py:372
Method
test_preserves_tool_call_thought_signatures_on_response
(self)
agent/tests/test_kimi_reasoning_content.py:243
Function
test_preset_validations
Strategy helpers reject reversed strikes and non-positive quantities.
agent/tests/test_options_payoff.py:249
Function
test_presets_are_discovered
Guard the glob itself, so a path regression cannot vacuously pass. Every other test in this module is parametrised over ``PRESET_PATHS``; if
agent/tests/test_preset_claim_backing.py:122
Function
test_presets_dir_lives_inside_swarm_package
PRESETS_DIR must be a sibling of presets.py so wheels can find it.
agent/tests/test_swarm_presets_packaging.py:25
Function
test_pressure_saves_old_results_and_keeps_the_fresh_batch
(tmp_path, monkeypatch)
agent/tests/test_swarm_context.py:72
Function
test_preview_is_rendered_in_threadpool
(client: TestClient, offloaded: list)
agent/tests/api/test_run_preview.py:137
Function
test_preview_missing_run_is_404
(client: TestClient)
agent/tests/api/test_run_preview.py:192
Function
test_preview_never_builds_chart_payloads
(client: TestClient, monkeypatch)
agent/tests/api/test_run_preview.py:107
Function
test_preview_rejects_invalid_run_id
(client: TestClient)
agent/tests/api/test_run_preview.py:198
Function
test_preview_samples_200_rows_with_endpoints_kept
(summary_run_dir)
agent/tests/test_backtest_summary.py:193
Function
test_preview_tool_arguments_redacts_sensitive_values
Event previews should not leak file bodies or credentials.
agent/tests/test_swarm_worker_report.py:57
Function
test_preview_tool_arguments_truncates_non_sensitive_values
Non-sensitive event previews stay short.
agent/tests/test_swarm_worker_report.py:75
Method
test_previews_are_bounded_and_redacted
(self, tmp_path)
agent/tests/test_background_store_recovery.py:146
Function
test_previous_turn_is_found_and_readable_without_rerun
(runs: Path)
agent/tests/test_backtest_runs_tool.py:68
Method
test_price_and_settlement_agree
(self, alias: str)
agent/tests/quantlib/test_options.py:422
Function
test_price_bounds_keep_four_decimal_precision
Small ``prior_5d_return`` bounds must survive rounding. Regression for PR #314 review nit: ``round(.,2)`` collapsed return-type bounds (e.g.
agent/tests/test_shadow_account.py:1589
Function
test_price_condition_bounds_are_p10_p90
The p10/p90 values are the actual quantiles of the cluster.
agent/tests/test_shadow_account.py:1789
Function
test_price_condition_nan_rows_excluded_from_bounds
NaN rows in the cluster do not shift p10/p90 quantiles.
agent/tests/test_shadow_account.py:1822
Function
test_price_denominated_indicator_values_are_observed
A moving average or band the session fetched is a quoted tool value.
agent/tests/test_grounding_release.py:155
Function
test_price_drift_alone_is_not_a_dropped_request
A buy-and-hold weight drifts by design; reporting it would be noise. This is why the check compares against the previous TARGET rather than the
agent/tests/test_dropped_target_adjustments.py:57
Method
test_price_evidence_budget_is_bounded
(self, tmp_path: Path)
agent/tests/test_grounding_recovery.py:199
Function
test_price_features_as_of_reads_only_past_bars
()
agent/tests/test_shadow_account.py:1363
Function
test_price_features_ignore_incomplete_buy_day_close
()
agent/tests/test_shadow_account.py:1377
Function
test_price_features_insufficient_history_is_nan
()
agent/tests/test_shadow_account.py:1424
Function
test_price_features_no_lookahead_past_buy_dt
Appending bars dated after buy_dt must not change feature values.
agent/tests/test_shadow_account.py:1393
Function
test_price_features_tz_aware_buy_dt_does_not_raise
()
agent/tests/test_shadow_account.py:1410
Method
test_price_is_monotone_in_volatility
(self)
agent/tests/quantlib/test_options.py:376
Method
test_price_limits
(self, symbol: str, expected: float)
agent/tests/test_china_a_engine.py:282
Function
test_price_table_with_a_year_less_date_matches_its_evidence
A table dated ``08-01`` must find the evidence stamped ``2026-08-01`` (#983). The date filter was ``timestamp.startswith(date_value)``, which can
agent/tests/test_agent_grounding.py:1740
Function
test_price_validation_ignores_markdown_ordered_list_markers
Line-leading ordered-list numbers are prose, not prices (#BUGS-1). A verdict written as a numbered Markdown list ("1. **原料药价格持续低迷**") must no
agent/tests/test_agent_grounding.py:2577
Function
test_price_validation_ignores_score_indicator_and_window_digits
A conviction score, a window length and a lookback are bare integers. A well-formed verdict line carries a conviction score, the moving-average
agent/tests/test_agent_grounding.py:1547
Function
test_price_validation_ignores_short_dates_and_percent_ranges
A year-less date is a pair of bare integers; a percentage is declared. Taken from the trace attached to #983: "8/5 收盘 5.97" contributed 8 and 5
agent/tests/test_agent_grounding.py:1613
Function
test_price_validation_ignores_symbol_date_and_quantity_digits
Ticker, calendar, holding-period, and position-cost digits are not prices (#955).
agent/tests/test_agent_grounding.py:1520
Function
test_price_validation_still_rejects_a_quote_outside_observed_range
Masking non-price digits must not weaken the contradiction check (#955).
agent/tests/test_agent_grounding.py:1535
Function
test_price_ytm_round_trip
(coupon, ytm, n, freq, compounding)
agent/tests/quantlib/test_fixedincome.py:93
Method
test_prices_become_labelled_probabilities
(self, monkeypatch)
agent/tests/test_prediction_market_tool.py:655
Method
test_primary_doc_is_rejected_by_its_root_tag
(self)
agent/tests/test_institutional_holdings_tool.py:402
Method
test_primary_set
(self, monkeypatch: pytest.MonkeyPatch)
agent/tests/test_env_schema.py:554
Function
test_prime_variant_uses_the_private_firm_coefficients
()
agent/tests/quantlib/test_credit.py:68
Function
test_principal_round_trips_through_dict
()
agent/tests/test_principal.py:86
Method
test_principal_rows_are_excluded_from_the_price_check
A bond row's value/principal ratio is not a share price and must not vote.
agent/tests/test_institutional_holdings_tool.py:359
Method
test_principle_five_stops_when_enough_evidence
(self)
agent/tests/test_agent_output_discipline.py:90
Method
test_principle_four_is_analysis_not_advice
(self)
agent/tests/test_agent_output_discipline.py:84
Method
test_principle_one_requires_a_tool_behind_every_number
(self)
agent/tests/test_agent_output_discipline.py:63
Method
test_principle_six_requires_an_audible_refusal
(self)
agent/tests/test_agent_output_discipline.py:97
Method
test_principle_three_forbids_filling_gaps_from_memory
(self)
agent/tests/test_agent_output_discipline.py:75
Method
test_principle_two_requires_an_as_of
(self)
agent/tests/test_agent_output_discipline.py:69
Function
test_prior_close_panel_supplies_the_base_price
With no pre_close on the bar, the run's own close panel is used.
agent/tests/test_price_limit_lookahead.py:128
Method
test_priority_shareholder_over_officer
(self, fsp)
agent/tests/test_fetch_sina_penalties.py:88
Function
test_pristine_form_roundtrip_validates_for_typed_fields
GET values echoed back as a form patch must pass Test validation. Mirrors the frontend's ``buildPatch`` for a pristine (never-configured) QQ
agent/tests/test_channels_config_api.py:334
Function
test_private_helpers_are_not_callable
(tool)
agent/tests/test_quantlib_tool.py:45
Function
test_private_key_block_is_redacted
(label: str)
agent/tests/test_redaction_private_key_blocks.py:17
Method
test_private_permissions
(self, tmp_path)
agent/tests/test_background_store_recovery.py:108
Function
test_proactive_expiry_trips_stop_and_never_invokes
()
agent/tests/test_runtime_runner.py:265
Method
test_probability_of_garbage_is_none
(self)
agent/tests/test_prediction_market_tool.py:1038
Method
test_probability_rounds_scientific_notation
(self)
agent/tests/test_prediction_market_tool.py:1033
Function
test_probe_creates_nothing_on_the_filesystem
(tmp_path: Path)
agent/tests/test_websocket_connection_test.py:200
Function
test_probe_echoes_sdk_available_in_both_states
The probe is stateless: whatever the caller passes is echoed back.
agent/tests/test_discord_connection_test.py:240
Function
test_probe_failures_redact_url_credentials_and_do_not_write
Both probe entry points sanitize returned errors and raised exceptions.
agent/tests/test_channels_config_api.py:1630
Function
test_probe_imap_ssl_context_follows_verify_tls
The probe must never send the IMAP password over an unverified socket unless the operator explicitly opted out with ``verify_tls=False``.
agent/tests/test_email_connection_test.py:511
Method
test_probe_model_name_reads_project_env_candidate
The startup banner should show the same project-local model the loader uses.
agent/tests/test_cli_interactive.py:204
Function
test_probe_module_never_imports_the_adapter_at_runtime
The probe keeps the adapter import TYPE_CHECKING-only (no cycle).
agent/tests/test_email_connection_test.py:712
Function
test_probe_never_logs_secret_or_token
( tmp_path: Path, monkeypatch: pytest.MonkeyPatch, caplog: pytest.LogCaptureFixture, )
agent/tests/test_qq_connection_test.py:315
Function
test_probe_never_logs_secret_or_token
( monkeypatch: pytest.MonkeyPatch, caplog: pytest.LogCaptureFixture, )
agent/tests/test_feishu_connection_test.py:307
Function
test_probe_never_logs_secret_or_token
( monkeypatch: pytest.MonkeyPatch, caplog: pytest.LogCaptureFixture, )
agent/tests/test_dingtalk_connection_test.py:289
Function
test_probe_never_logs_token
( monkeypatch: pytest.MonkeyPatch, caplog: pytest.LogCaptureFixture, )
agent/tests/test_discord_connection_test.py:282
Function
test_probe_never_logs_tokens_or_wss_url
( monkeypatch: pytest.MonkeyPatch, caplog: pytest.LogCaptureFixture, )
agent/tests/test_slack_connection_test.py:288
Function
test_probe_plain_transports_pass_no_ssl_context
Non-SSL transports take no constructor context; both upgrade with STARTTLS.
agent/tests/test_email_connection_test.py:558
Function
test_probe_sends_imap_id_before_select
NetEase regression: ID must be sent between LOGIN and SELECT.
agent/tests/test_email_connection_test.py:800
Function
test_probe_smtp_ssl_context_follows_verify_tls
( monkeypatch: pytest.MonkeyPatch, verify_tls: bool )
agent/tests/test_email_connection_test.py:533
Function
test_production_resolver_resolves_registered_and_rejects_tampered
(clean_registry)
agent/tests/scheduling/test_internal_dispatch.py:480
Function
test_production_singleton_routes_internal_jobs_through_registry
(f) Mechanical proof the production construction site is wired. The executor is obtained ONLY through ``_get_scheduled_research_executor()``
agent/tests/scheduling/test_internal_dispatch.py:491
Function
test_production_spec_shape
()
agent/tests/scheduling/test_memory_consolidation_job.py:154
Function
test_production_specs_are_a_tuple_of_wellformed_specs
()
agent/tests/scheduling/test_system_jobs.py:128
Function
test_profile_fits_ceilings_rejects_bool_profile_value
H19 defense-in-depth: bool cannot masquerade as a numeric profile value.
agent/tests/test_consent_commit.py:426
← previous
next →
22,401–22,500 of 26,887, ranked by callers