MCPcopy Create free account

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

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

Functiontest_loopback_allowed_in_dev_mode_without_key
()
agent/tests/test_auth_precedence.py:82
Functiontest_loopback_does_not_warn
( capsys: pytest.CaptureFixture[str], monkeypatch: pytest.MonkeyPatch )
agent/tests/test_serve_bind.py:91
Functiontest_loopback_host_and_origin_accepted
()
agent/tests/test_mcp_host_origin_guard.py:147
Functiontest_loopback_rejects_rebound_host_before_auth_bypass
A loopback peer is not enough when Host is attacker-controlled.
agent/tests/test_security_auth_api.py:426
Functiontest_loopback_requires_auth_when_api_key_configured
GHSA-7wgj: a configured key gates EVERY peer, loopback included.
agent/tests/test_security_auth_api.py:170
Functiontest_loopback_shutdown_accepts_valid_bearer
( monkeypatch: pytest.MonkeyPatch, )
agent/tests/test_security_auth_api.py:714
Functiontest_loopback_shutdown_rejects_cross_site_browser_request
CORS is not enough; unsafe cross-site browser POSTs must be rejected.
agent/tests/test_security_auth_api.py:696
Functiontest_loopback_shutdown_requires_bearer_when_api_key_configured
Loopback alone must not authorize the browser-reachable shutdown action.
agent/tests/test_security_auth_api.py:681
Functiontest_loopback_upload_requires_bearer_when_key_configured
( client: TestClient, tmp_path: Path, monkeypatch: pytest.MonkeyPatch, )
agent/tests/test_upload_api.py:54
Functiontest_loopback_with_invalid_bearer_rejected_when_key_configured
( monkeypatch: pytest.MonkeyPatch, )
agent/tests/test_auth_precedence.py:69
Functiontest_loopback_with_valid_bearer_allowed_when_key_configured
( monkeypatch: pytest.MonkeyPatch, )
agent/tests/test_auth_precedence.py:56
Functiontest_loopback_without_credential_rejected_when_key_configured
( monkeypatch: pytest.MonkeyPatch, )
agent/tests/test_auth_precedence.py:43
Functiontest_loops_do_not_share_schema_state_when_given_the_same_wrapper
()
agent/tests/test_deferred_tool_loading.py:141
Functiontest_loosened_tolerance_leaks_exactly_the_documented_residual
A weight-sum gap dW leaves a residual of -R_b * dW, as the docstring states. This is the cost of relaxing the precondition, and it is a real numb
agent/tests/quantlib/test_attribution.py:180
Methodtest_losing_long
(self)
agent/tests/test_base_engine.py:898
Functiontest_lost_submission_response_reuses_job_and_refuses_changed_parameters
(monkeypatch)
agent/tests/test_analysis_reliability.py:166
Functiontest_lot_size_rejections_for_illegal_quantities
()
agent/tests/test_paper_trade_rejections.py:176
Functiontest_lot_size_rejects_and_cancels
()
agent/tests/test_paper_trade_5m_engine.py:312
Functiontest_lot_truncated_sleeve_is_named_in_the_metrics
#1235's motivating case: the sleeve that never fills must be nameable.
agent/tests/test_plan_rejected.py:286
Functiontest_lot_truncation_in_hold_mode_is_still_one_zero_size
A target below one lot at full scale is the lot rule, not the cash.
agent/tests/test_plan_rejected.py:391
Methodtest_lot_units
(self, symbol: str, expected: float)
agent/tests/test_forex_engine.py:333
Functiontest_lots_and_ticks_are_real_certificates_before_a_ratio_change
()
agent/tests/test_argentina_equity_engine.py:151
Methodtest_lots_default_to_one_share_or_round_lots
(self)
agent/tests/test_brazil_market_routing.py:71
Functiontest_low_coverage_column_is_nan_without_poisoning_peers
A column below the 90% in-window coverage floor is NaN; peers are not.
agent/tests/factors/test_corr_rewire.py:68
Functiontest_low_coverage_leaves_the_tag_off_and_discloses
1 of 3 columns labelled < 0.9: attaching would z-score one bucket.
agent/tests/test_alpha_bench_csi300_sector.py:165
Methodtest_low_quality_old_access
Low quality + old access = low importance.
agent/tests/test_memory_lifecycle.py:191
Methodtest_lower_circuit_allows_covering_a_short
(self)
agent/tests/test_india_equity_engine.py:104
Methodtest_lower_circuit_blocks_sell
(self)
agent/tests/test_india_equity_engine.py:74
Methodtest_lowercase
(self)
agent/tests/test_skill_writer_tools.py:26
Functiontest_lowercase_1d_and_1w_map_like_project_tokens
()
agent/tests/test_eastmoney_daily_week_aliases.py:8
Functiontest_lowercase_1d_and_1w_map_like_project_tokens
()
agent/tests/test_akshare_daily_aliases.py:8
Functiontest_lowercase_1d_and_1w_map_like_project_tokens
()
agent/tests/test_longbridge_loader_daily_week_aliases.py:13
Functiontest_lowercase_1d_maps_to_daily
(monkeypatch)
agent/tests/test_india_broker_loader.py:114
Functiontest_lowercase_1d_still_fetches
``1d`` used to hit the exact ``!= "1D"`` gate and return empty.
agent/tests/test_fmp_daily_aliases.py:21
Functiontest_lowercase_1d_uses_daily_path_not_minutes
``1d`` used to miss ``!= "1D"`` and return empty from minute freq_map.
agent/tests/test_tushare_daily_alias_1d.py:26
Functiontest_lowercase_1h_maps_like_project_token
Connector-style ``1h`` must map the same as project ``1H``.
agent/tests/test_india_broker_loader.py:104
Methodtest_lowercase_1h_maps_to_h1_not_daily
(self, fake_mod: _FakeMT5Module)
agent/tests/test_mt5_loader.py:159
Functiontest_lowercase_1h_matches_project_token
()
agent/tests/test_local_loader_interval_case.py:24
Functiontest_lowercase_1w_maps_like_1W
``1w`` used to become ``1w``; yfinance expects ``1wk``.
agent/tests/test_yfinance_lowercase_4h_1w.py:14
Functiontest_lowercase_4h_also_resamples_hourly_bars_to_four_hour
Regression for the case-sensitivity bug: lowercase ``4h`` must resample identically to ``4H`` instead of passing raw hourly bars through.
agent/tests/test_yfinance_lowercase_4h_resample.py:39
Functiontest_lowercase_4h_maps_like_4H
``4h`` used to fall through to ``.lower()`` and become invalid ``4h``.
agent/tests/test_yfinance_lowercase_4h_1w.py:8
Functiontest_lowercase_4h_resamples_like_4H
``4h`` used to miss the map and return native hourly bars unchanged.
agent/tests/test_local_loader_interval_case.py:28
Methodtest_lowercase_cffex_multiplier
The opposite direction: CFFEX/ZCE keys are uppercase-only.
agent/tests/test_china_futures_engine.py:331
Methodtest_lowercase_cffex_price_limit_still_specific
IF's own 10% limit must still apply lowercase, not the 5% generic default a missed lookup would silently substitute.
agent/tests/test_china_futures_engine.py:347
Methodtest_lowercase_classifies_as_uk_equity
(self)
agent/tests/test_uk_equity_support.py:48
Methodtest_lowercase_day_matches_uppercase
(self)
agent/tests/test_metrics.py:199
Functiontest_lowercase_four_hour_fetches_four_hour_bars
()
agent/tests/test_okx_loader_interval_case.py:30
Functiontest_lowercase_hour_aliases_match_project_tokens
()
agent/tests/test_futu_loader_interval_case.py:8
Functiontest_lowercase_hour_day_aliases_match_project_tokens
()
agent/tests/test_mt5_interval_lowercase.py:8
Methodtest_lowercase_hour_matches_uppercase
(self)
agent/tests/test_metrics.py:193
Methodtest_lowercase_matches
(self)
agent/tests/test_akshare_loader.py:64
Methodtest_lowercase_normalized
(self)
agent/tests/test_yfinance_crypto.py:24
Functiontest_lowercase_one_hour_fetches_hour_bars_not_daily
()
agent/tests/test_okx_loader_interval_case.py:26
Methodtest_lowercase_suffix
(self, fsp)
agent/tests/test_fetch_sina_penalties.py:52
Methodtest_lowercase_suffix_routes_to_yahoo
(self)
agent/tests/test_uk_equity_support.py:36
Methodtest_lowercase_symbol_is_upcased
(self, monkeypatch)
agent/tests/test_alphavantage_loader.py:103
Methodtest_lowercase_uppered
(self)
agent/tests/test_gildata_loader.py:109
Methodtest_lowercase_zce_multiplier
(self)
agent/tests/test_china_futures_engine.py:336
Methodtest_lse_classifies_as_uk_equity
(self)
agent/tests/test_uk_equity_support.py:41
Methodtest_lse_contract_rejects_non_gbp_or_missing_currency
( self, currency: str | None )
agent/tests/test_uk_equity_support.py:155
Methodtest_lse_engine_gets_uk_submarket
(self)
agent/tests/test_uk_equity_support.py:93
Methodtest_lse_engine_is_global_equity
(self)
agent/tests/test_uk_equity_support.py:89
Methodtest_lse_line_with_missing_currency_is_omitted
(self)
agent/tests/test_yahoo_loader.py:346
Methodtest_lse_routes_to_yahoo
(self)
agent/tests/test_uk_equity_support.py:29
Methodtest_lse_settles_in_gbp
(self)
agent/tests/test_uk_equity_support.py:62
Methodtest_lse_symbol_detection_does_not_claim_currency
(self)
agent/tests/test_uk_equity_support.py:146
Functiontest_ltm_formula_is_last_full_fy_plus_current_ytd_minus_prior_ytd
()
agent/tests/quantlib/valuation/test_comps.py:228
Functiontest_ltm_policy_is_invariant_to_fiscal_year_end_month
LTM needs no month-weighting: it always trails 12 months from the 'as of' date the YTD figures were cut at, whatever the fiscal calendar.
agent/tests/quantlib/valuation/test_comps.py:235
Functiontest_ltm_policy_missing_ytd_fields_raises
()
agent/tests/quantlib/valuation/test_comps.py:300
Functiontest_macaulay_duration_is_below_maturity_for_a_coupon_bond
()
agent/tests/quantlib/test_fixedincome.py:120
Methodtest_macd_insufficient_bars
(self)
agent/tests/test_technical_indicator_tool.py:180
Functiontest_macd_keeps_precision_for_sub_penny_price
()
agent/tests/test_technical_indicator_small_price_rounding.py:47
Methodtest_macd_normal
(self)
agent/tests/test_technical_indicator_tool.py:171
Methodtest_macro_happy_path
(self, monkeypatch)
agent/tests/test_gildata_research_tools.py:57
Functiontest_macro_horizon_follows_the_prompt
()
agent/tests/test_swarm_tool_variables.py:92
Functiontest_macro_observations_ground_with_explicit_refs_without_widening_price_gate
(tmp_path)
agent/tests/test_gildata_boundaries.py:81
Functiontest_magnitude_boundary_keeps_the_existing_table_and_prose_conventions
(wrapped)
agent/tests/test_report_audit_accounting_parens.py:166
Functiontest_magnitude_conversion_still_requires_operand_evidence
(tmp_path, values, valid)
agent/tests/test_grounding_operand_evidence.py:181
Functiontest_main_annualises_like_the_saved_run
(tmp_path: Path, capsys, run_config, annualisation)
agent/tests/test_validation_cli_settings.py:135
Methodtest_main_contract_is_recognised_as_chinese
It must reach ChinaFuturesEngine, not GlobalFutures.
agent/tests/test_market_detection.py:486
Methodtest_main_contract_resolves_to_futures
(self, code: str)
agent/tests/test_market_detection.py:465
Methodtest_main_contract_routes_to_futures_main_sina
( self, fake_akshare: SimpleNamespace )
agent/tests/test_akshare_loader.py:322
Functiontest_main_fresh_and_cached_results_use_same_complete_file
(tmp_path)
agent/tests/test_result_artifacts.py:118
Functiontest_main_honors_saved_settings
(tmp_path: Path, capsys)
agent/tests/test_validation_cli_settings.py:34
Functiontest_main_loads_dotenv_after_the_shell_tool_decision
(tmp_path, monkeypatch)
agent/tests/test_mcp_server_dotenv.py:10
Functiontest_main_model_context_and_deterministic_replay_are_scrubbed
(tmp_path)
agent/tests/test_model_tool_result_redaction.py:33
Functiontest_main_reuses_explicit_source_snapshot
( tmp_path: Path, monkeypatch: pytest.MonkeyPatch, )
agent/tests/test_ui_services.py:180
Functiontest_main_writes_strict_json_for_non_finite_results
(tmp_path: Path, monkeypatch, capsys)
agent/tests/test_validation_cli.py:48
Functiontest_maintenance_margin_rejects_invalid_mark_price
(mark_price: float, match: str)
agent/tests/test_perpetual_risk.py:260
Functiontest_maintenance_margin_rejects_symbol_mismatch_and_notional_above_final_cap
()
agent/tests/test_perpetual_risk.py:266
Functiontest_maintenance_margin_uses_boundaries_without_reapplying_coefficient
( coefficient: float | None, )
agent/tests/test_perpetual_risk.py:245
Functiontest_make_mcp_tool_name_is_stable
()
agent/tests/test_mcp_client_adapter.py:91
Functiontest_malformed_accounting_is_not_rescued_as_a_positive
(cell, table)
agent/tests/test_report_audit_accounting_parens.py:127
Methodtest_malformed_arg_cap_falls_back_instead_of_killing_the_repl
A junk override must not raise at import time. ``cli.main._dispatch_slash`` guards ``import_module`` with ``except ImportError`` only
agent/tests/test_institutional_commands.py:537
Methodtest_malformed_bar_is_skipped
(self, monkeypatch)
agent/tests/test_alphavantage_loader.py:185
Functiontest_malformed_budget_env_falls_back_to_default
( monkeypatch: pytest.MonkeyPatch, )
agent/tests/test_rsshub_events_provider.py:269
Functiontest_malformed_comments_and_conflicting_properties_fail_closed
()
agent/tests/test_email_authentication_results.py:232
Functiontest_malformed_control_response_is_reported_not_crashed
(monkeypatch)
agent/tests/test_claude_cli_models.py:139
Functiontest_malformed_date_returns_error_without_http
()
agent/tests/test_research_reports_tool.py:205
Methodtest_malformed_entries_contribute_nothing
(self)
agent/tests/test_strategy_discovery_decay.py:72
← previousnext →20,401–20,500 of 26,887, ranked by callers