MCPcopy Create free account

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

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

Functiontest_stream_invalid_job_id_is_400
()
agent/tests/test_alpha_compare_api.py:193
Functiontest_stream_non_200_response_raises_typed_codex_stream_error
Issue #7: a Codex 4xx raises ``CodexStreamError`` with ``status_code`` set. Regression: a plain ``RuntimeError`` carried no ``status_code`` attri
agent/tests/test_openai_codex.py:400
Functiontest_stream_non_401_response_is_not_retried
(monkeypatch: pytest.MonkeyPatch)
agent/tests/test_openai_codex.py:364
Functiontest_stream_refreshes_once_after_clock_fresh_token_gets_401
( monkeypatch: pytest.MonkeyPatch, )
agent/tests/test_openai_codex.py:463
Functiontest_stream_requests_usage_and_forwards_real_counts
stream_usage=True must put stream_options on the wire and let the accumulated response carry the provider's real token counts (#1224).
agent/tests/test_provider_header_isolation.py:320
Functiontest_stream_unknown_job_is_404
()
agent/tests/test_alpha_compare_api.py:188
Functiontest_stream_usage_rejection_self_heals_and_is_remembered
An endpoint that 400s on stream_options gets one stateless retry, and later calls skip the doomed attempt entirely.
agent/tests/test_provider_header_isolation.py:358
Functiontest_stream_usage_unsupported_error_detection
()
agent/tests/test_provider_header_isolation.py:405
Methodtest_streaming_chunks_accumulate_reasoning_across_chunks
Multiple deltas: AIMessageChunk.__add__ concatenates via merge_dicts.
agent/tests/test_kimi_reasoning_content.py:340
Methodtest_streaming_delta_without_reasoning_is_unchanged
OpenAI-style stream deltas (no reasoning_content) produce empty additional_kwargs.
agent/tests/test_kimi_reasoning_content.py:360
Functiontest_streaming_holds_back_from_the_first_block
()
agent/tests/test_grounding_shape_hardening.py:521
Functiontest_streaming_holds_back_the_figures_fence_and_nothing_else
(text: str, safe: int)
agent/tests/test_grounding_figures_contract.py:779
Methodtest_strict_100x_accepts_at_most_one_hour
(self, interval: str)
agent/tests/test_crypto_engine.py:569
Methodtest_strict_100x_rebalance_stays_finite_without_breach
(self)
agent/tests/test_crypto_engine.py:1046
Methodtest_strict_100x_rejects_unsupported_or_coarse_intervals
( self, interval: str )
agent/tests/test_crypto_engine.py:562
Methodtest_strict_100x_revalidates_run_config_before_loading
( self, tmp_path )
agent/tests/test_crypto_engine.py:573
Functiontest_strict_argparse_flags
()
agent/tests/test_alpha_bench_strict_cli.py:194
Functiontest_strict_envelope_forwards_alpha_t_stats
The JSON envelope must expose the statistics the strict gate decides on.
agent/tests/test_alpha_bench_strict_cli.py:229
Methodtest_strict_hold_keeps_configured_slippage_behavior
(self)
agent/tests/test_crypto_engine.py:1111
Methodtest_strict_isolated_liquidation_still_closes
(self)
agent/tests/test_market_hooks_liquidation.py:163
Functiontest_strict_only_options_without_strict_are_rejected
(capsys, monkeypatch, _reg)
agent/tests/test_alpha_bench_strict_cli.py:184
Functiontest_strict_perpetual_fetch_with_valid_artifact_succeeds
(monkeypatch)
agent/tests/test_ccxt_perpetual_loader.py:283
Functiontest_strict_perpetual_fetch_without_artifact_fails_closed_before_any_call
(monkeypatch)
agent/tests/test_ccxt_perpetual_loader.py:266
Methodtest_strict_rebalance_fills_use_raw_execution_open
(self)
agent/tests/test_crypto_engine.py:1083
Functiontest_strict_report_renders_alpha_t_table
The HTML report gains a strict section carrying the same numbers.
agent/tests/test_alpha_bench_strict_cli.py:256
Functiontest_strict_result_envelope_marks_counts
(capsys, monkeypatch, _reg, _no_report)
agent/tests/test_alpha_bench_strict_cli.py:215
Functiontest_strict_routes_existing_oos_split
(capsys, monkeypatch, _reg, _no_report)
agent/tests/test_alpha_bench_strict_cli.py:154
Functiontest_strict_routes_to_strict_runner
(capsys, monkeypatch, _reg, _no_report)
agent/tests/test_alpha_bench_strict_cli.py:135
Functiontest_strict_runner_emits_research_contract
(monkeypatch: pytest.MonkeyPatch)
agent/tests/test_research_contract_integration.py:124
Functiontest_stride_form_last_pinned_increasing_no_gap
G3 (iii): stride sample — last row == original last, dates strictly increasing, and no {"_gap": ...} sentinel anywhere.
agent/tests/test_get_market_data_size.py:83
Methodtest_string_depth_and_max_points_are_accepted
(self, monkeypatch)
agent/tests/test_prediction_market_tool.py:274
Functiontest_string_false_does_not_request_executions
(seen: list[bool], flag: str)
agent/tests/test_trading_orders_tool_flags.py:27
Functiontest_string_false_dry_run_applies_the_transition
(monkeypatch, flag)
agent/tests/test_sdm_decay_scan_dry_run_flag.py:43
Methodtest_string_false_include_changes_skips_the_prior_quarter_diff
(self)
agent/tests/test_institutional_holdings_tool.py:551
Functiontest_string_false_keeps_stops_and_fixed_type
(seen: dict[str, Any], flag: str)
agent/tests/test_etoro_edit_stops_tool_flags.py:26
Functiontest_string_false_no_cache_does_not_bypass_the_cache
A JSON-string "false" must not be read as truthy and skip the cache.
agent/tests/test_web_reader_privacy.py:81
Functiontest_string_false_requests_all_sessions
(seen: list[bool], flag: str)
agent/tests/test_trading_history_tool_flags.py:27
Functiontest_string_true_and_omitted_flags
(seen: dict[str, Any])
agent/tests/test_etoro_edit_stops_tool_flags.py:42
Functiontest_string_true_dry_run_changes_nothing
(monkeypatch)
agent/tests/test_sdm_decay_scan_dry_run_flag.py:53
Methodtest_string_true_include_changes_still_diffs
(self)
agent/tests/test_institutional_holdings_tool.py:561
Methodtest_strings_ignored
(self)
agent/tests/test_cli_interactive.py:361
Functiontest_strip_bot_mention_after_emoji_removes_placeholder_not_adjacent_text
()
agent/tests/test_signal_mention_utf16.py:23
Functiontest_strip_env_value_inline_comment
()
agent/tests/test_api_infrastructure.py:255
Functiontest_strip_env_value_quoted_hash_preserves_value
Quoted dotenv values may contain ' #'; do not treat as comment.
agent/tests/test_api_infrastructure.py:289
Functiontest_strip_env_value_quoted_then_inline_comment
Trailing comments after a closed quote must still be stripped.
agent/tests/test_api_infrastructure.py:295
Functiontest_strip_env_value_quotes
()
agent/tests/test_api_infrastructure.py:250
Functiontest_strip_is_addressable_on_its_own
()
agent/tests/test_grounding_figures_contract.py:250
Functiontest_strip_jsonp_extracts_array
()
agent/tests/test_sina_loader.py:64
Functiontest_strip_jsonp_handles_extra_whitespace
()
agent/tests/test_sina_loader.py:71
Functiontest_strip_jsonp_raises_on_garbage
()
agent/tests/test_sina_loader.py:76
Functiontest_strip_jsonp_raises_when_payload_not_list
()
agent/tests/test_sina_loader.py:81
Methodtest_strip_surrogates_drops_lone_half
(self)
agent/tests/test_cli_interactive.py:372
Methodtest_strip_surrogates_keeps_plain_text
(self)
agent/tests/test_cli_interactive.py:367
Functiontest_stripping_a_draft_without_a_block_changes_nothing
(tmp_path: Path)
agent/tests/test_grounding_figures_contract.py:232
Methodtest_strips_and_lowercases
(self)
agent/tests/test_stooq_loader.py:76
Methodtest_strips_ansi_escape
(self)
agent/tests/test_persistent_memory.py:515
Methodtest_strips_c1_range
(self)
agent/tests/test_persistent_memory.py:524
Methodtest_strips_cik_prefix
(self)
agent/tests/test_sec_edgar_client.py:114
Methodtest_strips_null_and_bell
(self)
agent/tests/test_persistent_memory.py:518
Methodtest_strips_us_suffix
(self)
agent/tests/test_fmp_loader.py:63
Methodtest_strong_short_sized_above_weak_short
A short with a strongly negative drift is a better short than one with near-zero drift, so it must receive more capital, not less. Re
agent/tests/test_mean_variance_optimizer.py:30
Methodtest_strong_short_sized_above_weak_short
Regression: mu was the raw unsigned asset drift, so a strong short (very negative raw mu) scored as a bad "long" in the mean-variance
agent/tests/test_turnover_aware_optimizer.py:123
Methodtest_strong_strategy_low_p_value
A consistently profitable strategy should have low p-value.
agent/tests/test_validation.py:90
Methodtest_strongly_bearish
(self)
agent/tests/test_sentiment_tool.py:36
Methodtest_strongly_bullish
(self)
agent/tests/test_sentiment_tool.py:30
Functiontest_structural_shapes_need_no_declaration
§3: a date, a year, a symbol's digits and an ordinal are structure.
agent/tests/test_grounding_figures_contract.py:289
Functiontest_structure_under_a_structural_column_stays_exempt
(header: str, cell: str, figure: str)
agent/tests/test_grounding_shape_hardening.py:384
Functiontest_structured_artifact_reader_grounds_only_shown_rows
( two_runs: GroundingLedger, monkeypatch: pytest.MonkeyPatch, mode: str )
agent/tests/test_grounding_backtest_outputs.py:848
Functiontest_structured_content_remains_available_when_fastmcp_hydration_fails
()
agent/tests/test_mcp_client_adapter.py:484
Functiontest_structured_content_that_differs_from_data_is_kept
()
agent/tests/test_mcp_result_dedup.py:236
Functiontest_structured_metrics_survive_without_widening_metrics
#1235/#1274: a dropped sleeve must stay visible by name in the card. `metrics` is a scalar-only surface, so a dict-shaped rejection map is fi
agent/tests/test_run_card_structured_metrics.py:16
Functiontest_structured_only_result_keeps_data_and_envelope
()
agent/tests/test_mcp_result_dedup.py:328
Functiontest_structured_output_turn_final_answer_does_not_trigger_native_retry
( fake_cli, )
agent/tests/test_claude_cli_provider.py:237
Functiontest_structured_reader_checks_engine_hash_and_scope
( two_runs: GroundingLedger, monkeypatch: pytest.MonkeyPatch )
agent/tests/test_grounding_backtest_outputs.py:896
Functiontest_structured_reader_never_grounds_model_written_table
( two_runs: GroundingLedger, monkeypatch: pytest.MonkeyPatch, changed: str )
agent/tests/test_grounding_backtest_outputs.py:874
Functiontest_structured_result_reaches_agent_once
()
agent/tests/test_mcp_result_dedup.py:56
Functiontest_stubbed_config_cannot_enable_cache_or_redirect_root_into_cwd
A MagicMock config must not switch the cache on or escape the home root. A bare ``MagicMock`` reads truthy and its ``__fspath__`` returns a *
agent/tests/test_loader_retry_helpers.py:254
Functiontest_stuck_internal_run_does_not_block_tick_and_terminal_written_by_background
( tmp_path: Path, clean_registry )
agent/tests/scheduling/test_internal_dispatch.py:91
Functiontest_style_drift_ignores_the_unmatched_weight_column
()
agent/tests/quantlib/test_factormodel.py:383
Functiontest_style_drift_measures_movement_not_endpoints
()
agent/tests/quantlib/test_factormodel.py:357
Functiontest_style_drift_needs_two_dates
()
agent/tests/quantlib/test_factormodel.py:392
Functiontest_style_drift_reports_first_and_last
()
agent/tests/quantlib/test_factormodel.py:372
Methodtest_sub_lot_order_is_not_executable
(self)
agent/tests/test_vietnam_equity_engine.py:75
Methodtest_sub_minute_bars_keep_the_declaration_and_say_so
(self, caplog)
agent/tests/test_cross_market_annualization.py:341
Methodtest_subadviser_rows_merge_into_one_position
(self)
agent/tests/test_institutional_holdings_tool.py:415
Functiontest_subdaily_contract_error_is_not_reworded
(monkeypatch)
agent/tests/test_tushare_fundamentals_provider.py:562
Functiontest_subdaily_detector_only_reasons_about_clocks
( index: pd.Index, expected: bool )
agent/tests/test_tushare_fundamentals_provider.py:530
Functiontest_subdaily_frames_are_rejected_by_default
An ann_date has no time of day, so a day-granular rule leaks intraday. Before this guard the 09:30 bar of the announcement day already carried
agent/tests/test_tushare_fundamentals_provider.py:427
Functiontest_subdaily_next_day_policy_hides_the_announcement_day
()
agent/tests/test_tushare_fundamentals_provider.py:445
Functiontest_subdomain_alignment_requires_receiver_dmarc
Delegated subdomains require the receiver's explicit DMARC alignment.
agent/tests/test_email_authentication_results.py:132
Methodtest_subject_classification
(self, fsp)
agent/tests/test_fetch_sina_penalties.py:170
Methodtest_subject_with_fullwidth
(self, fsp, text, expected)
agent/tests/test_fetch_sina_penalties.py:398
Methodtest_submarket_detects_uk
(self)
agent/tests/test_uk_equity_support.py:51
Methodtest_submarket_still_detects_other_markets
(self)
agent/tests/test_uk_equity_support.py:55
Functiontest_submissions_failure_is_caught_as_error_envelope
()
agent/tests/test_sec_filings_tool.py:143
Methodtest_submissions_fallback_when_full_text_search_is_down
(self)
agent/tests/test_institutional_holdings_tool.py:690
Methodtest_submit_rejects_a_reused_id_even_after_terminal
(self)
agent/tests/test_paper_order_lifecycle.py:220
Methodtest_subparser_registers_three_commands
(self)
agent/tests/test_cli_hypothesis.py:63
Methodtest_subparsers_registered
start/stop parse without error (the parser knows them).
agent/tests/test_cli_runtime.py:159
Functiontest_subscribe_does_not_double_deliver_an_event_published_during_replay
A publish() landing between queue registration and the replay snapshot must not be returned through both paths.
agent/tests/test_session_events.py:57
← previousnext →24,801–24,900 of 26,887, ranked by callers