MCPcopy Create free account

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

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

Functiontest_error_payload_is_returned_unchanged
()
agent/tests/test_mcp_result_dedup.py:242
Methodtest_error_raises
(self, monkeypatch)
agent/tests/test_yahoo_client.py:420
Methodtest_error_renders
(self)
agent/tests/test_cli_interactive.py:590
Functiontest_error_result_end_to_end_keeps_message
()
agent/tests/test_mcp_result_dedup.py:256
Functiontest_error_shaped_reply_raises_instead_of_returning_none
A non-zero-code reply with no payload is a failure, not an empty window.
agent/tests/test_tencent_loader.py:287
Methodtest_error_status_skips_symbol
(self, monkeypatch)
agent/tests/test_nobitex_loader.py:165
Functiontest_errored_cancel_is_not_retried
(live_runtime: Path)
agent/tests/test_runtime_flatten.py:116
Functiontest_errored_flatten_is_not_retried
(live_runtime: Path)
agent/tests/test_runtime_flatten.py:135
Functiontest_errors_empty_and_unsupported_responses
(vendor)
agent/tests/test_gildata_stock_selection.py:90
Functiontest_errors_use_shared_credential_redaction
(message)
agent/tests/test_portfolio_cash_and_error_details.py:38
Methodtest_es_commission_via_active_symbol
calc_commission uses _active_symbol for product lookup.
agent/tests/test_global_futures_engine.py:192
Methodtest_es_limit_down_blocks_short
(self)
agent/tests/test_global_futures_engine.py:131
Methodtest_es_limit_up_blocks_long
ES has 7% limit; at limit-up, can't open long.
agent/tests/test_global_futures_engine.py:125
Methodtest_es_within_limit
(self)
agent/tests/test_global_futures_engine.py:136
Methodtest_estimate_retention_empty_both
Both empty returns 1.0.
agent/tests/memory/test_compression.py:165
Methodtest_estimate_retention_low
Very different content returns low score.
agent/tests/memory/test_compression.py:157
Methodtest_estimate_retention_perfect
Same content returns ~1.0.
agent/tests/memory/test_compression.py:150
Functiontest_estimate_tokens_falls_back_when_usage_metadata_is_all_zero
A provider that returns ``{"input_tokens": 0, "output_tokens": 0}`` is treated as 'no real data' so we don't pin per-run totals at zero.
agent/tests/test_swarm_token_tracking.py:122
Functiontest_estimate_tokens_falls_back_when_usage_metadata_is_none
()
agent/tests/test_swarm_token_tracking.py:111
Functiontest_estimate_tokens_handles_non_llmresponse_object_safely
Defensive: callers from older code paths might pass a raw string.
agent/tests/test_swarm_token_tracking.py:147
Functiontest_estimate_tokens_ignores_extra_metadata_fields
LangChain occasionally returns extra fields (cache hits, reasoning sub-counts). They should not interfere with the bare input/output read.
agent/tests/test_swarm_token_tracking.py:161
Functiontest_estimate_tokens_partial_usage_metadata_is_used_directly
If the provider reports input but not output, take input verbatim and let output drop to 0 — better than silently mixing real + heuristic.
agent/tests/test_swarm_token_tracking.py:135
Functiontest_estimate_tokens_stays_a_two_tuple_wrapper
The legacy 2-tuple signature is a contract (6 call sites in test_swarm_token_tracking.py unpack it); it must equal the first two fields of _me
agent/tests/test_swarm_cache_source.py:138
Functiontest_estimate_tokens_uses_real_usage_metadata_when_present
()
agent/tests/test_swarm_token_tracking.py:99
Functiontest_estimated_then_provider_total_stays_estimated
D1 regression: iteration 0 falls back to the heuristic (no usage), iteration 1 reports real usage. The cumulative total mixes heuristic + real
agent/tests/test_swarm_cache_source.py:404
Functiontest_estimation_gap_is_respected
()
agent/tests/quantlib/test_eventstudy.py:235
Functiontest_estimation_window_excludes_the_event_window
()
agent/tests/quantlib/test_eventstudy.py:215
Methodtest_etf_codes_match
(self, code: str)
agent/tests/test_akshare_loader.py:44
Methodtest_etf_codes_match
(self, code: str)
agent/tests/test_tushare_loader.py:42
Functiontest_etf_intraday_interval_rejected
()
agent/tests/test_akshare_nona_share_interval.py:46
Methodtest_etf_prices_are_corporate_action_adjusted
(self)
agent/tests/test_tushare_loader.py:224
Methodtest_etf_returns_data
(self)
agent/tests/test_tushare_loader.py:396
Methodtest_etf_routes_to_fund_daily
(self)
agent/tests/test_tushare_loader.py:175
Methodtest_etf_routes_to_fund_etf_hist_sina
(self, fake_akshare: SimpleNamespace)
agent/tests/test_akshare_loader.py:220
Methodtest_etf_share_classes_outrank_mutual_fund_classes_on_a_theme_query
(self)
agent/tests/test_etf_holdings_tool.py:535
Methodtest_etf_sz_uses_sz_prefix
(self, fake_akshare: SimpleNamespace)
agent/tests/test_akshare_loader.py:231
Methodtest_etf_warns_and_skips
(self)
agent/tests/test_tushare_loader.py:296
Functiontest_etoro_missing_credentials_maps_not_configured
( tmp_path: Path, monkeypatch )
agent/tests/test_etoro_runtime.py:35
Functiontest_etoro_profiles_registered
()
agent/tests/test_etoro_connector.py:64
Functiontest_etoro_valid_check_maps_connected
(tmp_path: Path, monkeypatch)
agent/tests/test_etoro_runtime.py:61
Methodtest_eurex_short_code_not_chinese
(self)
agent/tests/test_market_detection.py:381
Functiontest_european_amounts_reach_fifo_analysis
(tmp_path, monkeypatch)
agent/tests/test_trade_journal_parser_european_decimal.py:33
Functiontest_european_never_claws_back_but_american_does_on_the_same_cash_flows
The single most important test in this file. Same two deals as the hand-computed American test above (0% pref, 20% carry, 100% catch-up):
agent/tests/quantlib/test_fundmath.py:1132
Methodtest_eurusd
(self)
agent/tests/test_forex_engine.py:77
Methodtest_eurusd_matches
(self)
agent/tests/test_akshare_loader.py:61
Methodtest_evaluation_start_date_lands_on_the_first_bar_at_or_after_it
(self)
agent/tests/test_warmup_window.py:76
Functiontest_event_after_last_session_is_dropped
()
agent/tests/quantlib/test_eventstudy.py:426
Methodtest_event_and_market_use_the_same_words
Both record types must answer "is this settled?" identically.
agent/tests/test_prediction_market_tool.py:471
Functiontest_event_before_first_session_is_dropped
()
agent/tests/quantlib/test_eventstudy.py:413
Functiontest_event_buffer_is_released_after_the_stream_ends
()
agent/tests/test_openbb_bridge/test_adapter.py:179
Functiontest_event_callback_sink_called_with_redacted_record
H5 sink 3: event_callback fires with ("live.action", redacted_record).
agent/tests/test_audit_redact.py:220
Functiontest_event_fill_predicate
()
agent/tests/test_runtime_triggers.py:297
Functiontest_event_loop_shutdown_remains_recoverable
(tmp_path: Path, monkeypatch)
agent/tests/test_session_restart_recovery.py:148
Functiontest_event_not_mutated_by_redaction
(live_runtime: Path)
agent/tests/test_audit_redact.py:76
Functiontest_event_predicate_drives_due
()
agent/tests/test_runtime_triggers.py:285
Methodtest_event_resolves_only_when_all_its_markets_do
(self, monkeypatch)
agent/tests/test_prediction_market_tool.py:442
Functiontest_event_stream_accepts_ticket_once_then_rejects_reuse
( monkeypatch: pytest.MonkeyPatch, )
agent/tests/test_sse_ticket_and_headers.py:102
Functiontest_event_stream_accepts_valid_bearer_when_key_configured
( monkeypatch: pytest.MonkeyPatch, )
agent/tests/test_auth_precedence.py:103
Functiontest_event_stream_accepts_valid_ticket_when_key_configured
( monkeypatch: pytest.MonkeyPatch, )
agent/tests/test_auth_precedence.py:89
Functiontest_event_stream_allowed_in_dev_mode_without_key
()
agent/tests/test_auth_precedence.py:138
Functiontest_event_stream_rejects_invalid_ticket_when_key_configured
( monkeypatch: pytest.MonkeyPatch, )
agent/tests/test_auth_precedence.py:127
Functiontest_event_stream_still_accepts_bearer_header_for_non_browser_callers
( monkeypatch: pytest.MonkeyPatch, )
agent/tests/test_sse_ticket_and_headers.py:120
Functiontest_event_stream_without_credential_rejected_when_key_configured
( monkeypatch: pytest.MonkeyPatch, )
agent/tests/test_auth_precedence.py:116
Functiontest_event_too_early_for_an_estimation_window_is_dropped
()
agent/tests/quantlib/test_eventstudy.py:344
Functiontest_event_trigger_without_predicate_raises
()
agent/tests/test_runtime_triggers.py:306
Methodtest_event_type_extracted
(self, fsp)
agent/tests/test_fetch_sina_penalties.py:157
Functiontest_event_type_follows_the_prompt
()
agent/tests/test_swarm_tool_variables.py:74
Functiontest_event_window_running_past_the_frame_is_dropped
()
agent/tests/quantlib/test_eventstudy.py:351
Functiontest_events_from_other_attempts_are_ignored
()
agent/tests/test_openbb_bridge/test_adapter.py:202
Methodtest_every_accepted_interval_has_a_bar_width
(self, monkeypatch, interval, fidelity)
agent/tests/test_prediction_market_tool.py:925
Functiontest_every_action_is_audited
(live_runtime: Path)
agent/tests/test_runtime_flatten.py:156
Functiontest_every_adapter_credential_key_lands_in_secrets
Every credential-shaped field lands in ``secrets``, never in ``values``.
agent/tests/test_channel_config_meta.py:1009
Functiontest_every_allowlisted_module_actually_imports
(tool)
agent/tests/test_quantlib_tool.py:71
Functiontest_every_allowlisted_module_exposes_at_least_one_function
An allowlisted module that lists nothing is unreachable, not merely empty. Importing cleanly is not the same as being callable: dispatch is `
agent/tests/test_quantlib_tool.py:77
Methodtest_every_allowlisted_provider_has_a_recorded_reason
The allowlist stays short and every entry is accounted for here. A new provider flipping ``top_level_reasoning_effort=True`` has to be
agent/tests/test_llm_reasoning_effort.py:267
Functiontest_every_analysis_mode_checks_dates
(tmp_path, monkeypatch, mode)
agent/tests/test_trade_journal_invalid_datetime.py:53
Functiontest_every_builtin_portfolio_connector_has_an_explicit_compatibility_tier
()
agent/tests/test_portfolio_compatibility.py:18
Methodtest_every_bundled_record_is_json_serializable
(self)
agent/tests/test_research_playbooks.py:422
Functiontest_every_catalog_entry_names_its_source
()
agent/tests/test_context_budget.py:76
Functiontest_every_chain_source_resolves
()
agent/tests/test_price_caliber.py:215
Functiontest_every_connector_is_classified
A new broker must be classified before it can ship. This is the drift alarm. If it fails, decide whether the new connector has a runtime pape
agent/tests/test_paper_capped_connectors_refuse_live.py:89
Functiontest_every_container_stops_at_the_shared_budget
(value)
agent/tests/test_quantlib_result_budget.py:59
Functiontest_every_conventional_declaration_grounded_the_same_delta
``1.13`` and ``1.13个百分点`` declare the same figure, one verdict (#2107). The delta is written in the answer with its unit word glued, as a CN fili
agent/tests/test_grounding_percentage_points.py:123
Functiontest_every_currency_market_has_a_sample
()
agent/tests/test_market_identity_parity.py:37
Functiontest_every_declared_check_has_a_fixture_pair
()
agent/tests/test_grounding_registry.py:229
Functiontest_every_direct_runtime_root_child_is_gitignored
()
agent/tests/test_gitignore_runtime_files.py:133
Functiontest_every_discovered_channel_satisfies_the_authoring_contract
(name)
agent/tests/test_channel_authoring_contract.py:51
Functiontest_every_docker_action_is_pinned_to_a_sha
A moving tag would silently change what the release build runs.
agent/tests/test_docker_workflow_publish_guard.py:94
Functiontest_every_documented_factor_declares_at_least_one_characteristic
()
agent/tests/quantlib/test_factormodel.py:186
Functiontest_every_emitted_fallback_weight_row_is_normalised
No emitted row escapes the absolute-sum normalisation the docs promise.
agent/tests/quantlib/test_combination_equal_fallback_weights.py:42
Functiontest_every_emitted_value_survives_the_route_vocabulary
The route drops any value outside its frozensets — none may be dropped.
agent/tests/test_futu_check_status_envelope.py:67
Functiontest_every_english_text_has_a_current_chinese_version
( registry_meta: dict[str, dict], store: dict, field: str, bucket: str )
agent/tests/factors/test_alpha_library_translations.py:36
Methodtest_every_evidence_stage_is_accepted
(self)
agent/tests/test_strategy_discovery_models.py:106
Functiontest_every_figure_keeps_its_original_spelling_and_offsets
()
agent/tests/test_grounding_shape_hardening.py:113
Functiontest_every_figures_block_declares_and_every_one_is_stripped
(tmp_path: Path)
agent/tests/test_grounding_shape_hardening.py:492
Functiontest_every_figures_example_in_the_system_prompt_parses
A malformed example teaches every run to write a malformed block.
agent/tests/test_grounding_figures_contract.py:743
Functiontest_every_fill_model_is_accepted
(value: str)
agent/tests/test_paper_trade_v12_schema.py:199
Functiontest_every_fill_price_is_the_reference_recomputed_from_the_csv
()
agent/tests/test_paper_trade_5m_golden.py:154
Methodtest_every_final_oracle_spelling_resolves
(self, monkeypatch, uma)
agent/tests/test_prediction_market_tool.py:321
Functiontest_every_frozen_error_code_is_accepted
(code: str)
agent/tests/test_paper_trade_schema.py:212
← previousnext →17,701–17,800 of 26,887, ranked by callers