MCPcopy Create free account

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

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

Functiontest_okx_session_has_proxies_when_configured
(monkeypatch)
agent/tests/test_okx_loader_bounded.py:204
Methodtest_okx_slash_to_hyphen
(self)
agent/tests/test_market_detection.py:316
Functiontest_okx_snapshot_business_error_returns_error_envelope
(monkeypatch)
agent/tests/test_position_read_error_envelope.py:107
Functiontest_okx_spot_balances_flow_through_the_generic_portfolio_contract
(tmp_path)
agent/tests/test_portfolio_service.py:747
Methodtest_old_db_opens_and_reads_via_new_code
The most important test: a DB written before governance fields existed must still be readable (and writable) by the new store.
agent/tests/test_strategy_store.py:1282
Methodtest_old_db_still_writable_after_migration
New writes (including governance fields) work on a migrated DB.
agent/tests/test_strategy_store.py:1311
Methodtest_old_db_update_status_still_works
update_status (unrelated to governance) keeps working on a migrated row.
agent/tests/test_strategy_store.py:1340
Methodtest_old_file_without_new_fields_uses_defaults
Legacy files without new frontmatter fields should parse with safe defaults.
agent/tests/test_memory_lifecycle.py:82
Methodtest_old_json_loads_with_new_field_defaults
(self)
agent/tests/test_scheduled_research_model_compat.py:72
Functiontest_old_metrics_do_not_turn_no_progress_into_success
(tmp_path)
agent/tests/test_agent_loop_no_progress.py:143
Functiontest_old_run_json_deserializes_with_default_cache_fields
stale_state guard: run.json files written before cache tracking must still load, with the new fields at honest defaults (0 / None — never a fa
agent/tests/test_swarm_cache_source.py:204
Functiontest_old_style_card_has_explicit_missing_trace_and_evidence_text
(tmp_path)
agent/tests/test_run_card_trust_layer_v1.py:145
Functiontest_old_token_and_individual_opt_ins_across_agent_and_mcp
(monkeypatch)
agent/tests/test_gildata_boundaries.py:94
Methodtest_older_position_may_sell
(self)
agent/tests/test_composite_market_rules.py:62
Methodtest_ollama_base_url_appends_v1
(self)
agent/tests/test_llm.py:260
Methodtest_ollama_base_url_is_normalized_at_credentials_boundary
( self, configured_url: str, )
agent/tests/test_llm.py:1036
Methodtest_ollama_fallback_when_no_key
When no API key is set at all, fall back to 'ollama'.
agent/tests/test_ocr_engine.py:266
Methodtest_ollama_no_key_required
(self)
agent/tests/test_llm.py:249
Methodtest_ollama_provider_keeps_placeholder_key
Ollama provider should still use 'ollama' placeholder when no OPENAI_API_KEY set.
agent/tests/test_ocr_engine.py:449
Methodtest_ollama_provider_uses_ollama_default_key
(self)
agent/tests/test_llm.py:1022
Functiontest_ols_matches_independent_least_squares_and_preserves_inputs
()
agent/tests/quantlib/test_neutralization.py:32
Methodtest_omits_the_body_by_default
(self)
agent/tests/test_research_playbooks.py:411
Functiontest_omitted_components_are_not_silently_zeroed
An unsupplied optional item is flagged by name, distinct from an explicit confirmed zero.
agent/tests/quantlib/valuation/test_comps.py:167
Methodtest_omitted_dates_send_no_window_params
(self, monkeypatch)
agent/tests/test_fred_macro_tool.py:109
Methodtest_omitted_expiration_is_not_validated
No expiration → nearest chain, passthrough; an empty result stays ok.
agent/tests/test_options_chain_tool.py:246
Functiontest_omitted_rules_stay_none_rather_than_blank
None reads as "not stated"; an empty string would claim there are none.
agent/tests/test_sdm_register_strategy_fields.py:60
Functiontest_omitted_top_is_not_rejected_as_top
()
agent/tests/test_alpha_bench_top_zero.py:23
Methodtest_on_grid_price_is_unchanged
(self)
agent/tests/test_vietnam_equity_engine.py:49
Functiontest_on_halt_action_noop_when_unregistered
(live_runtime: Path)
agent/tests/test_halt.py:121
Functiontest_on_tick_exception_does_not_kill_the_loop
QA (a): the first two ticks raise; the kernel survives and keeps ticking.
agent/tests/scheduling/test_kernel.py:280
Methodtest_onboarding_skips_when_project_env_exists
Interactive startup must accept the provider loader's project-local `.env`.
agent/tests/test_cli_interactive.py:181
Methodtest_once_spec_has_no_next_run
(self)
agent/tests/scheduling/test_triggers_equivalence.py:211
Methodtest_once_spec_is_case_insensitive_and_stripped
(self)
agent/tests/scheduling/test_triggers_equivalence.py:215
Functiontest_one_5m_order_symbol_issues_exactly_one_provider_call
()
agent/tests/test_paper_trade_5m_scope.py:160
Functiontest_one_ambiguous_entity_does_not_retract_another_lock
(tmp_path: Path)
agent/tests/test_grounding_resolution_context.py:150
Methodtest_one_bad_symbol_does_not_abort_batch
(self)
agent/tests/test_eastmoney_loader.py:130
Methodtest_one_bad_symbol_does_not_abort_batch
(self, monkeypatch)
agent/tests/test_stooq_loader.py:144
Methodtest_one_bad_symbol_does_not_abort_batch
(self, monkeypatch)
agent/tests/test_nobitex_loader.py:170
Methodtest_one_bad_symbol_does_not_abort_batch
(self, monkeypatch)
agent/tests/test_wallex_loader.py:139
Methodtest_one_bad_symbol_does_not_abort_the_batch
( self, monkeypatch: pytest.MonkeyPatch, fake_pykrx: _FakeStock )
agent/tests/test_pykrx_loader.py:140
Functiontest_one_bar_horizon_preserves_existing_training_window
()
agent/tests/test_ml_strategy_skill.py:76
Functiontest_one_broken_tool_module_costs_only_its_own_tool
A broken tool module must not take the other mirrored tools down with it. Regression: importing every class in one ``from ... import`` block made
agent/tests/test_mcp_new_tools.py:318
Methodtest_one_channel_missing_leaves_none_and_partial_total
(self)
agent/tests/test_southbound_tool.py:81
Functiontest_one_compaction_cannot_replay_past_the_budget
The cap is checked when a call is restored, not when keys are reopened: with one recovery left, four lost keys give one replay and three re-runs.
agent/tests/test_readonly_replay_after_microcompact.py:478
Methodtest_one_currency_across_two_markets_is_allowed
(self)
agent/tests/test_composite_currency_guard.py:58
Methodtest_one_day_inside_aging_threshold_is_fresh
(self)
agent/tests/test_strategy_discovery_decay.py:141
Methodtest_one_day_inside_stale_threshold_is_aging
(self)
agent/tests/test_strategy_discovery_decay.py:133
Functiontest_one_failed_server_does_not_affect_other_mcp_servers
Tools from a healthy server must be registered even if another server fails.
agent/tests/test_registry_mcp_integration.py:186
Functiontest_one_failing_directory_does_not_block_the_rest
(tmp_path: Path)
agent/tests/test_state_migration.py:102
Methodtest_one_failing_id_does_not_abort_the_batch
(self, monkeypatch)
agent/tests/test_prediction_market_tool.py:625
Methodtest_one_failing_series_does_not_abort_the_batch
(self, monkeypatch)
agent/tests/test_prediction_market_tool.py:968
Methodtest_one_failing_symbol_does_not_abort_batch
(self, monkeypatch)
agent/tests/test_gildata_loader.py:231
Methodtest_one_failing_symbol_does_not_abort_batch
(self, monkeypatch)
agent/tests/test_fmp_loader.py:283
Methodtest_one_failing_symbol_does_not_abort_batch
(self, monkeypatch)
agent/tests/test_finnhub_loader.py:172
Methodtest_one_failure_does_not_abort_batch
(self, monkeypatch)
agent/tests/test_alphavantage_loader.py:144
Functiontest_one_instrument_under_two_portfolios_stays_two_positions
Every export covers all depots, so one ISIN under two Portfolio IDs is the normal case rather than a conflict the reader is allowed to resolve.
agent/tests/test_extraetf_reader.py:455
Methodtest_one_minute_not_mapped_to_month
(self)
agent/tests/test_yahoo_loader.py:101
Functiontest_one_minute_payload_is_data_not_ready_not_a_session
()
agent/tests/test_paper_trade_5m_payload.py:152
Functiontest_one_observation_reports_no_ic_std
()
agent/tests/quantlib/test_combination_single_ic_std.py:44
Functiontest_one_oversized_message_does_not_empty_the_history_window
The newest turn survives truncated instead of the window collapsing.
agent/tests/test_session_service_lifecycle.py:252
Methodtest_one_period_carries_both_kinds_of_concept
(self)
agent/tests/test_sec_period_frames.py:199
Methodtest_one_period_yields_one_row
(self)
agent/tests/test_sec_period_frames.py:181
Functiontest_one_point_is_data_in_an_additive_sum
(tmp_path)
agent/tests/test_grounding_percent_unit_fields.py:158
Functiontest_one_query_one_numeric_representation_and_no_mutation
(vendor, tables)
agent/tests/test_gildata_fin_query.py:52
Functiontest_one_ranged_5m_call_with_an_exclusive_end_bound
()
agent/tests/test_paper_trade_5m_session.py:275
Methodtest_one_row_over_the_cap_is_reported
(self, monkeypatch)
agent/tests/test_fred_macro_tool.py:266
Functiontest_one_run_holding_two_drawdowns_is_still_one_source
Engine and risk X-ray both report a max_drawdown; a ref cannot be ambiguous between two numbers the same run wrote.
agent/tests/test_grounding_backtest_outputs.py:289
Methodtest_one_session_of_minute_bars_keeps_the_declared_count
(self)
agent/tests/test_cross_market_annualization.py:202
Methodtest_one_share_lots
(self)
agent/tests/test_india_equity_engine.py:123
Methodtest_one_share_lots
(self)
agent/tests/test_korea_equity_engine.py:216
Functiontest_one_sided_book_no_asks_is_rejected
(monkeypatch: pytest.MonkeyPatch)
agent/tests/test_orderbook_depth_tool.py:284
Functiontest_one_sided_book_no_bids_is_rejected
(monkeypatch: pytest.MonkeyPatch)
agent/tests/test_orderbook_depth_tool.py:276
Methodtest_one_source_failure_does_not_abort_others
(self)
agent/tests/test_symbol_search_tool.py:405
Methodtest_one_symbol_error_doesnt_crash_backtest
If rebalance fails for one symbol, other symbols still execute.
agent/tests/test_engine_robustness.py:98
Functiontest_one_symbol_with_and_without_the_prefix_is_refused
(network: type[_NetworkLoader])
agent/tests/test_local_prefix_routing.py:164
Functiontest_one_symbols_indicator_does_not_ground_an_unattributed_claim
The cross-symbol union is for observed quotes; an indicator is symbol-bound. ``technical_indicators`` returns a level for one symbol, so 562500's
agent/tests/test_grounding_release.py:1220
Functiontest_one_tail_risk_identity_still_grounds_without_a_ref
The other side of the guard: the rule fires on ambiguity, not on tail risk. Same claim, same prose, a session holding only ``var_95`` -- no ref n
agent/tests/test_grounding_role_hardening.py:748
Methodtest_one_unreadable_filer_does_not_abort_the_batch
(self)
agent/tests/test_institutional_holdings_tool.py:1228
Functiontest_one_unsplit_question_and_optional_vendor_topk
(vendor, topk)
agent/tests/test_gildata_stock_selection.py:57
Methodtest_one_week_of_hourly_bars_keeps_the_declared_count
(self)
agent/tests/test_cross_market_annualization.py:195
Functiontest_only_a_commonmark_fence_exempts_what_it_holds
(text: str, measured: set[str])
agent/tests/test_grounding_shape_hardening.py:266
Functiontest_only_a_literal_square_or_cube_is_evaluated
``9^9^9`` would take the process down computing a number of 370 million digits.
agent/tests/test_grounding_backtest_outputs.py:792
Functiontest_only_asserting_untampered_pass_would_be_insufficient_so_also_assert_ok_baseline
Companion positive control for the negative tests above: confirms the SAME 5-record fixture verifies clean before any tampering, so the negati
agent/tests/test_governance.py:386
Functiontest_only_boundary_crossing_kinds_are_treated_as_external
A dividend is already inside the valuation and must not be netted out.
agent/tests/quantlib/test_performance.py:224
Functiontest_only_builtin_declarations_are_rendered
(monkeypatch)
agent/tests/test_capability_matrix.py:85
Functiontest_only_dates_nobody_traded_are_dropped
()
agent/tests/test_argentina_equity_engine.py:425
Functiontest_only_declared_periodic_runs_feed_decay
Default runs are bookkeeping; decay moves only on runs declared for it.
agent/tests/test_backtest_records_bench.py:189
Functiontest_only_explicit_provider_waiting_reaches_activity_callback
()
agent/tests/test_chat_llm_streaming.py:401
Functiontest_only_federated_identity_is_attributable
()
agent/tests/test_principal.py:37
Methodtest_only_filter_with_parallel
(self, monkeypatch)
agent/tests/test_bench_parallel.py:121
Methodtest_only_get_read_endpoints_are_touched
Contract 2: every request is a GET to a read endpoint; the module has no trade/order/mutation path.
agent/tests/test_tickerall_loader.py:169
Methodtest_only_price_frames_are_measured
Injected fundamental panels must not decide the annualisation.
agent/tests/test_cross_market_annualization.py:255
Methodtest_only_price_frames_are_measured_even_when_a_panel_is_longer
A longer injected panel must not win the measurement by length.
agent/tests/test_cross_market_annualization.py:397
Functiontest_only_real_readable_duplicate_keeps_lock
( harness, monkeypatch, compact, duplicate )
agent/tests/test_compaction_call_identity.py:139
Methodtest_only_refresh_and_adaptation_are_write_tools
(self, fake_facade)
agent/tests/test_strategy_discovery_tools.py:141
Methodtest_only_registered_fund_nav_rows_are_price_indicators
(self, tmp_path)
agent/tests/test_fund_nav_tool.py:239
Functiontest_only_registered_leaves_are_price_evidence
Registration is per tool AND per leaf, in both directions.
agent/tests/test_grounding_release.py:1295
Functiontest_only_the_head_of_a_compound_leaf_names_its_metric
#1426: a metric word that qualifies another noun does not make the field that metric.
agent/tests/test_grounding_role_hardening.py:1122
Functiontest_only_the_header_line_is_redacted
()
agent/tests/test_redaction_cookie_headers.py:17
Functiontest_only_the_latest_mark_counts_as_residual_value
()
agent/tests/quantlib/test_fundmath.py:400
← previousnext →21,701–21,800 of 26,887, ranked by callers