MCPcopy Create free account

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

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

Functiontest_profile_fits_ceilings_rejects_instrument_widening
H19 defense-in-depth: the ceiling whitelist must contain every instrument.
agent/tests/test_consent_commit.py:431
Functiontest_profile_fits_ceilings_rejects_non_numeric_profile_value
H19 defense-in-depth: numeric ceilings reject string profile values.
agent/tests/test_consent_commit.py:421
Functiontest_profile_is_registered_readonly_remote_mcp
()
agent/tests/test_scalable_connector.py:95
Functiontest_profile_roundtrip_persistence
( profitable_journal: Path, tmp_path: Path, monkeypatch: pytest.MonkeyPatch, )
agent/tests/test_shadow_account.py:202
Methodtest_profit_factor
(self)
agent/tests/test_metrics.py:241
Methodtest_profit_loss_ratio
(self)
agent/tests/test_metrics.py:246
Functiontest_profit_loss_ratio_undefined_when_no_closed_trade_lost
No losing close: the ratio has no denominator, and 0.0 would rank the run last.
agent/tests/test_options_portfolio_correctness.py:180
Functiontest_profit_loss_ratio_zero_without_closed_trades
()
agent/tests/test_options_portfolio_correctness.py:189
Methodtest_profitable_long
(self)
agent/tests/test_base_engine.py:882
Methodtest_progress_and_final_share_the_injected_stream_id
(self)
agent/tests/test_wecom_stream_id_continuity.py:34
Methodtest_progress_callback_fires
(self, monkeypatch)
agent/tests/test_bench_parallel.py:106
Functiontest_progress_event_is_immutable
frozen dataclass forbids field reassignment.
agent/tests/test_progress.py:43
Functiontest_progress_event_to_dict_round_trip
to_dict returns every public field with rounded elapsed_s.
agent/tests/test_progress.py:23
Methodtest_progress_event_updates_its_own_call_via_call_id
(self, dashboard: RailRunDashboard)
agent/tests/test_cli_rail_dashboard.py:61
Functiontest_progress_forgets_the_notes_of_an_earlier_stall
()
agent/tests/test_tool_progress.py:148
Functiontest_progress_is_delivered_before_reply_and_drafts_stay_private
(tmp_path)
agent/tests/test_channels_attempt_progress.py:38
Functiontest_project_1H_does_not_fall_back_to_daily
()
agent/tests/test_mt5_connector_project_period_aliases.py:21
Functiontest_project_hour_tokens_map_to_hour_not_daily
()
agent/tests/test_okx_bar_map.py:8
Functiontest_project_hour_tokens_map_to_hour_not_day
()
agent/tests/test_alpaca_timeframe_map.py:8
Functiontest_project_style_one_hour_still_works
()
agent/tests/test_okx_loader_interval_case.py:34
Functiontest_project_three_statement_raises_on_broken_opening_balance_sheet
An opening balance sheet that does not balance must refuse to project at all. Reuses the flagship OPENING dict but bumps retained_earnings by 1.0
agent/tests/quantlib/valuation/test_threestatement.py:362
Functiontest_project_three_statement_refuses_non_finite_driver
A NaN driver must fail with a clear non-finite error, not a misleading ConvergenceError.
agent/tests/quantlib/valuation/test_threestatement.py:346
Functiontest_project_three_statement_refuses_non_finite_opening
()
agent/tests/quantlib/valuation/test_threestatement.py:355
Methodtest_project_us_suffix_is_stripped_for_the_request
(self, monkeypatch)
agent/tests/test_alphavantage_loader.py:111
Functiontest_promoted_features_threshold
()
agent/tests/test_shadow_account.py:1510
Functiontest_prompt_cache_flag_defaults_on
()
agent/tests/test_anthropic_prompt_cache.py:27
Functiontest_prompt_cache_flag_parses_off
()
agent/tests/test_anthropic_prompt_cache.py:34
Functiontest_prompt_cache_key_is_stable_for_a_session_and_differs_between_sessions
()
agent/tests/test_openai_codex_replay.py:168
Functiontest_prompt_cache_messages_leaves_other_shapes_alone
()
agent/tests/test_anthropic_prompt_cache.py:61
Functiontest_prompt_cache_messages_marks_leading_system_string
()
agent/tests/test_anthropic_prompt_cache.py:50
Functiontest_prompt_cache_request_marks_only_anthropic_calls_with_a_system_prompt
()
agent/tests/test_anthropic_prompt_cache.py:133
Functiontest_prompt_example_is_a_placeholder_not_a_call_id_shape
()
agent/tests/test_grounding_unknown_call_id_refs.py:113
Methodtest_prompt_flags_the_example_as_illustrative
(self)
agent/tests/test_institutional_commands.py:520
Methodtest_prompt_is_byte_identical_when_run_dir_and_counters_change
Different run_dir / counters must not change the system prompt.
agent/tests/test_system_prompt_cache_stability.py:33
Methodtest_prompt_is_self_contained
(self, slug: str)
agent/tests/test_institutional_commands.py:511
Methodtest_prompt_is_the_rendered_body
(self)
agent/tests/test_research_playbooks.py:376
Functiontest_prompt_names_actual_iteration_budget
(tools)
agent/tests/test_swarm_context.py:171
Methodtest_prompt_still_builds_when_strategy_discovery_import_raises
( self, builder_factory, monkeypatch )
agent/tests/test_strategy_discovery_routing.py:140
Functiontest_prompts_do_not_reference_nonexistent_tools
A prompt may not call something a "tool" when no such tool exists. Catches the inverse of the previous check: a name that reads as a tool ref
agent/tests/test_preset_claim_backing.py:164
Methodtest_proportional
(self)
agent/tests/test_loop_helpers.py:44
Functiontest_proposal_does_not_create_until_surface_commit_and_commit_is_idempotent
( tmp_path: Path, monkeypatch, )
agent/tests/test_scheduled_research_confirmation.py:30
Functiontest_propose_cancel_rejects_system_job
( home: Path, store: ScheduledResearchJobStore, monkeypatch: pytest.MonkeyPatch )
agent/tests/scheduling/test_system_job_protection.py:473
Functiontest_propose_create_rejects_system_id_draft
( home: Path, store: ScheduledResearchJobStore, monkeypatch: pytest.MonkeyPatch )
agent/tests/scheduling/test_system_job_protection.py:370
Functiontest_propose_create_rejects_unsafe_id_draft
( home: Path, store: ScheduledResearchJobStore, monkeypatch: pytest.MonkeyPatch )
agent/tests/scheduling/test_system_job_protection.py:391
Functiontest_propose_defaults_flatten_on_halt_false
Every proposed profile carries flatten_on_halt=False by default (cancel-only).
agent/tests/test_consent_commit.py:546
Functiontest_propose_is_readonly_and_clamps_to_ceilings
The tool is read-only and every profile clamps to the ceiling.
agent/tests/test_consent_commit.py:76
Functiontest_propose_opt_in_flatten_on_halt_stamps_profiles
An explicit opt-in stamps flatten_on_halt=True onto every profile.
agent/tests/test_consent_commit.py:553
Functiontest_propose_persists_for_commit
A proposal is persisted under the broker's proposals dir (not a mandate).
agent/tests/test_consent_commit.py:91
Functiontest_propose_select_commit_activates_mandate
End-to-end: propose -> pick ordinal 2 -> commit -> mandate loads back.
agent/tests/test_consent_commit.py:106
Functiontest_propose_string_false_flatten_on_halt_stays_cancel_only
A JSON-string "false" must not opt every profile into flattening.
agent/tests/test_consent_commit.py:568
Functiontest_propose_string_true_flatten_on_halt_opts_in
(live_runtime: Path)
agent/tests/test_consent_commit.py:585
Functiontest_propose_tool_is_a_basetool_but_commit_is_not
The proposer is a registerable tool; the committer is a plain function.
agent/tests/test_consent_commit.py:649
Functiontest_proposed_currency_must_match_evidence
(tmp_path: Path)
agent/tests/test_grounding_figures_contract.py:533
Methodtest_proposed_on_a_still_trading_market_is_pending
(self, monkeypatch)
agent/tests/test_prediction_market_tool.py:337
Methodtest_proposed_oracle_answer_is_pending_not_resolved
proposed" means an answer was submitted and can still be disputed.
agent/tests/test_prediction_market_tool.py:326
Functiontest_proposed_outside_the_range_passes_with_a_derivation
The other half of decision 2: derived OR in range, not derived AND.
agent/tests/test_grounding_figures_contract.py:522
Functiontest_proposed_passes_inside_the_observed_range_and_fails_outside_it
§1 decision 2, with the spec's own two numbers. 0.65 is inside 159516.SZ's observed 0.567–1.053 and passes; 0.881 against a session that only
agent/tests/test_grounding_figures_contract.py:501
Functiontest_prose_after_the_figures_block_still_reaches_the_stream
The block is held back from its fence on; what follows it is flushed at the end.
agent/tests/test_grounding_release.py:2155
Functiontest_prose_and_lookalikes_are_left_alone
()
agent/tests/test_redaction_cookie_headers.py:41
Functiontest_prose_mentioning_ok_or_success_as_words_is_not_rejected
Control: legitimate prose that happens to contain the words ok/success must not be misclassified, the check requires the text to start with "{
agent/tests/test_swarm_output_contract.py:119
Methodtest_prose_with_no_symbols_and_no_evidence_is_untouched
(self, tmp_path: Path)
agent/tests/test_agent_output_discipline.py:670
Functiontest_protect_pdf_round_trip_contains_boolean_only
()
agent/tests/test_scheduled_routes.py:707
Functiontest_protected_agent_proposal_keeps_choice_through_confirmation
( tmp_path, monkeypatch, email_target )
agent/tests/test_pdf_protection_surfaces.py:24
Functiontest_protected_pdf_create_validates_format_and_private_password
(client, store, monkeypatch)
agent/tests/test_scheduled_routes.py:646
Functiontest_protected_pdf_flag_reaches_channel_sender_without_a_password
(tmp_path: Path)
agent/tests/test_scheduled_delivery_outbox.py:76
Functiontest_protected_pdf_update_persists_only_boolean_and_requires_secret
(client, store, monkeypatch)
agent/tests/test_scheduled_routes.py:678
Functiontest_protected_pdf_without_password_fails_closed
(monkeypatch)
agent/tests/test_email_rich_delivery.py:161
Functiontest_protection_cannot_be_serialized_for_incompatible_delivery
(channel, format)
agent/tests/test_pdf_protection_surfaces.py:74
Functiontest_protocol_relative_poll_url_is_refused_specifically
(tap_env, monkeypatch)
agent/tests/test_tap_forward.py:214
Methodtest_protocol_satisfied
SqliteStrategyStore satisfies StrategyStoreProtocol.
agent/tests/test_strategy_store.py:876
Functiontest_provenance_marks_an_a_share_index_as_unadjusted
()
agent/tests/test_price_caliber.py:306
Functiontest_provenance_marks_tencent_hk_as_unadjusted
HK rows served by tencent are unadjusted, and the field the caller reads before comparing price levels has to say so (#1493).
agent/tests/test_price_caliber.py:292
Functiontest_provenance_repair_no_longer_needs_an_unchecked_column_veto
The surface the veto guarded does not exist any more. "| 档位 | 挂单价 |" was a price column ``_validate_price_tables`` did not key on and the pro
agent/tests/test_grounding_release.py:1950
Functiontest_provenance_stamps_adjustment_for_adjusted_source
()
agent/tests/test_price_caliber.py:280
Functiontest_provenance_stamps_adjustment_for_raw_source
()
agent/tests/test_price_caliber.py:319
Functiontest_provider_and_model_default_to_none
Both fields are optional and default to None.
agent/tests/test_swarm_run_metadata.py:55
Functiontest_provider_and_model_persist_on_construction
Explicitly-supplied provider/model should appear in serialization.
agent/tests/test_swarm_run_metadata.py:31
Methodtest_provider_base_url_replaces_stale_openai_url
(self)
agent/tests/test_llm.py:310
Functiontest_provider_capabilities_are_provider_specific
DeepSeek, Kimi, Gemini, and OpenRouter should not share one mutation bag.
agent/tests/test_provider_diagnostics.py:47
Functiontest_provider_default_model_matches_live_codex_account_path
()
agent/tests/test_openai_codex.py:57
Functiontest_provider_diagnostics_redacts_secrets_and_proxy_values
Doctor output must be useful without leaking keys or proxy credentials.
agent/tests/test_provider_diagnostics.py:13
Functiontest_provider_doctor_exposes_only_the_active_nonsecret_policy
(monkeypatch)
agent/tests/test_provider_agnostic_tool_policy.py:228
Functiontest_provider_doctor_reports_header_safety_without_values
Doctor should identify a bad header source while keeping values secret.
agent/tests/test_provider_header_isolation.py:257
Functiontest_provider_exception_degrades_to_an_all_none_frame
()
agent/tests/test_industry_loader.py:292
Functiontest_provider_exception_degrades_to_no_sector
index_member_all raising after backoff: the loader itself degrades.
agent/tests/test_alpha_bench_csi300_sector.py:213
Functiontest_provider_exposes_first_milestone_financial_table_metadata
()
agent/tests/test_tushare_fundamentals_provider.py:45
Methodtest_provider_failure_becomes_error_envelope
(self)
agent/tests/test_margin_trading_tool.py:102
Functiontest_provider_failure_closes_chat_client
(tool, png_in_allowed_root)
agent/tests/test_image_vision_tool.py:80
Methodtest_provider_failure_uses_tushare_fallback_when_available
(self)
agent/tests/test_margin_trading_tool.py:116
Functiontest_provider_failures_keep_the_wrapped_message
Only the sub-daily contract error passes through the engine verbatim. A stray ValueError from inside enrichment is a provider failure and must
agent/tests/test_tushare_fundamentals_provider.py:536
Methodtest_provider_key_fallback_to_openai_key
If provider-specific key is missing, fall back to OPENAI_API_KEY.
agent/tests/test_llm.py:300
Functiontest_provider_login_explains_docker_tty_requirement
An EOF from the OAuth prompt should point Docker users to a TTY command.
agent/tests/test_cli_provider_login.py:8
Functiontest_provider_metadata_redacts_non_public_values
(provider: str)
agent/tests/test_swarm_run_metadata.py:206
Functiontest_provider_receipt_is_persisted_as_sent
(tmp_path: Path)
agent/tests/test_scheduled_research_confirmation.py:111
Methodtest_provider_rejection_is_not_reported_as_empty
(self)
agent/tests/test_lockup_expiry_tool.py:140
Methodtest_provider_response_model_wins
(self)
agent/tests/test_run_outcome_module.py:198
Functiontest_provider_scoped_entries_do_not_leak_to_other_providers
()
agent/tests/test_context_budget.py:62
Functiontest_provider_spellings_of_one_instrument_are_one_identity
A suffix convention, an exchange prefix, or a separator is not a venue.
agent/tests/test_agent_grounding.py:560
Functiontest_provider_stream_error_hints_at_base_url_on_html_body
An HTML error page (site root, not API root) appends a base-URL hint.
agent/tests/test_chat_llm_streaming.py:346
Functiontest_provider_stream_error_retryable_classification
( status_code: int | None, expected: bool )
agent/tests/test_chat_llm_streaming.py:267
← previousnext →22,501–22,600 of 26,887, ranked by callers