MCPcopy Create free account

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

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

Functiontest_sandbox_sets_both_home_spellings_and_no_root_override
One knob, two spellings — and the override must stay unset. ``USERPROFILE`` is what ``Path.home()`` reads on Windows, so setting only the POS
agent/tests/test_config_root_sandbox.py:50
Functiontest_sanitize_data_map_guards_every_source
The runner's central pass drops dirty bars from any loader's frame. This is the catch-all boundary: a loader that never calls ``validate_ohlc``
agent/tests/test_ohlc_validation.py:116
Functiontest_sanitize_empty_overrides_returns_empty
()
agent/tests/test_agent_config.py:542
Functiontest_sanitize_logs_warning_when_stripping
(caplog: pytest.LogCaptureFixture)
agent/tests/test_agent_config.py:513
Functiontest_sanitize_non_mcp_keys_always_pass_through
()
agent/tests/test_agent_config.py:546
Functiontest_sanitize_passes_through_true_and_yes_opt_in
(monkeypatch: pytest.MonkeyPatch)
agent/tests/test_agent_config.py:535
Functiontest_sanitize_passes_through_when_env_opt_in
(monkeypatch: pytest.MonkeyPatch)
agent/tests/test_agent_config.py:523
Methodtest_sanitize_query_special_chars
Special chars don't break search.
agent/tests/memory/test_search_index.py:137
Functiontest_sanitize_strips_mcp_servers_by_default
()
agent/tests/test_agent_config.py:495
Functiontest_sanitize_strips_snake_case_key_by_default
()
agent/tests/test_agent_config.py:506
Functiontest_sanitizer_does_not_strand_a_scheme_behind_a_keyword_label
A keyword chain must not hide the scheme's value from the scheme arm.
agent/tests/test_loader_health.py:332
Functiontest_sanitizer_drops_a_body_it_cannot_classify
()
agent/tests/test_loader_health.py:343
Functiontest_sanitizer_handles_structured_and_quoted_credentials
(warning)
agent/tests/test_loader_health.py:434
Functiontest_sanitizer_keeps_market_slashes_but_omits_filesystem_paths
Market symbols remain useful; filesystem paths are omitted, never partially redacted.
agent/tests/test_loader_health.py:297
Functiontest_sanitizer_redacts_a_schemes_labelled_value
(message, expected)
agent/tests/test_loader_health.py:328
Functiontest_sanitizer_redacts_header_and_token_shaped_credentials
()
agent/tests/test_loader_health.py:309
Functiontest_sanitizer_truncates_and_collapses_whitespace
()
agent/tests/test_loader_health.py:338
Methodtest_save_adds_frontmatter
(self, tool: SaveSkillTool, user_dir: Path)
agent/tests/test_skill_writer_tools.py:76
Methodtest_save_and_load_relations
Roundtrip write/read .relations.json.
agent/tests/memory/test_semantic_links.py:100
Methodtest_save_and_load_round_trip
(self, fake_mt5: FakeMT5)
agent/tests/test_mt5_connector.py:386
Functiontest_save_base64_data_url_decodes_and_limits_size
(tmp_path: Path)
agent/tests/test_channels_runtime.py:325
Methodtest_save_basic
(self, tool: RememberTool)
agent/tests/test_remember_tool.py:27
Methodtest_save_basic
(self, tool: SaveSkillTool, user_dir: Path)
agent/tests/test_skill_writer_tools.py:69
Functiontest_save_completes_short_writes
(live_runtime, monkeypatch)
agent/tests/test_runtime_jobstore.py:75
Functiontest_save_creates_runtime_dir_private
(live_runtime: Path)
agent/tests/test_runtime_jobstore.py:59
Methodtest_save_forces_frontmatter_name_to_match_slug
A frontmatter name that disagrees with the slug this tool advertises would make the skill unreachable under load_skill(slug) and cause
agent/tests/test_skill_writer_tools.py:91
Methodtest_save_inserts_name_when_frontmatter_lacks_it
(self, tool: SaveSkillTool, user_dir: Path)
agent/tests/test_skill_writer_tools.py:103
Functiontest_save_is_atomic_no_temp_left_behind
(live_runtime: Path)
agent/tests/test_runtime_jobstore.py:68
Methodtest_save_missing_both
(self, tool: RememberTool)
agent/tests/test_remember_tool.py:45
Methodtest_save_missing_content
(self, tool: RememberTool)
agent/tests/test_remember_tool.py:41
Methodtest_save_missing_content
(self, tool: SaveSkillTool)
agent/tests/test_skill_writer_tools.py:114
Methodtest_save_missing_name
(self, tool: SaveSkillTool)
agent/tests/test_skill_writer_tools.py:110
Methodtest_save_missing_title
(self, tool: RememberTool)
agent/tests/test_remember_tool.py:37
Methodtest_save_overwrite
(self, tool: SaveSkillTool, user_dir: Path)
agent/tests/test_skill_writer_tools.py:118
Functiontest_save_overwrites_in_place
(live_runtime: Path)
agent/tests/test_runtime_jobstore.py:101
Methodtest_save_preserves_existing_frontmatter
(self, tool: SaveSkillTool, user_dir: Path)
agent/tests/test_skill_writer_tools.py:83
Functiontest_save_proposal_rejects_path_shaped_proposal_id
Only generated mp_<hex> ids may be persisted as proposal records.
agent/tests/test_mandate_commit_security.py:75
Methodtest_save_recall_forget_recall
(self, tool: RememberTool)
agent/tests/test_remember_tool.py:128
Functiontest_save_requires_a_successful_test
(client: TestClient, custom_store: CustomProviderStore)
agent/tests/test_custom_provider_routes.py:99
Functiontest_save_search_and_reload_across_instances
(tmp_path)
agent/tests/test_research_artifact_store.py:32
Functiontest_save_then_load_roundtrips
(live_runtime: Path)
agent/tests/test_runtime_jobstore.py:47
Methodtest_save_with_type
(self, tool: RememberTool)
agent/tests/test_remember_tool.py:32
Functiontest_saved_account_scans_intervening_days_before_applying_target_orders
(service)
agent/tests/test_paper_accounts.py:259
Functiontest_saved_models_are_sent_unchanged
(requests, monkeypatch, model_name)
agent/tests/test_minimax_flash.py:161
Methodtest_saved_token_and_other_features_do_not_enable_quotes
(self, monkeypatch)
agent/tests/test_gildata_loader.py:74
Functiontest_scaffold_false_or_invalid_overwrite_keeps_existing_file
( isolated_env: Path, flag: str, error: str )
agent/tests/test_autopilot_phase3.py:179
Functiontest_scaffold_generates_a_valid_readonly_connector
(tmp_path)
agent/tests/test_local_connections.py:68
Functiontest_scaffold_refuses_overwrite_by_default
(isolated_env: Path)
agent/tests/test_autopilot_phase3.py:145
Functiontest_scaffold_rejects_path_outside_run_roots
(isolated_env: Path)
agent/tests/test_autopilot_phase3.py:79
Functiontest_scaffold_requires_hypothesis_id
(isolated_env: Path)
agent/tests/test_autopilot_phase3.py:60
Functiontest_scaffold_requires_run_dir
(isolated_env: Path)
agent/tests/test_autopilot_phase3.py:70
Functiontest_scaffold_string_true_overwrite_replaces_file
(isolated_env: Path)
agent/tests/test_autopilot_phase3.py:198
Functiontest_scaffold_unknown_hypothesis
(isolated_env: Path)
agent/tests/test_autopilot_phase3.py:90
Functiontest_scaffold_writes_contract_correct_stub
(isolated_env: Path)
agent/tests/test_autopilot_phase3.py:100
Functiontest_scalable_has_no_order_intent_extractor
No extractor is registered for Scalable — the gate can only fail closed.
agent/tests/test_scalable_connector.py:314
Functiontest_scalar_calls_are_unchanged_and_return_floats
The valid scalar path keeps its exact previous values and float type.
agent/tests/quantlib/test_impact_scalar_only_inputs.py:66
Functiontest_scalar_contribution_is_not_reclassified_as_an_instrument_map
(tmp_path)
agent/tests/test_grounding_keyed_metric_paths.py:58
Functiontest_scalar_refs_keep_working
(tmp_path: Path)
agent/tests/test_grounding_container_field_refs.py:132
Functiontest_scalar_var_broadcasts_over_returns
()
agent/tests/quantlib/test_var_backtest.py:42
Methodtest_scale_empty_frame_is_noop
(self)
agent/tests/test_uk_equity_support.py:140
Functiontest_scale_l1_normalises
()
agent/tests/factors/test_base.py:61
Methodtest_scale_leaves_other_currencies_untouched
(self)
agent/tests/test_uk_equity_support.py:131
Methodtest_scale_scales_pence_when_currency_is_gbp_pence
(self)
agent/tests/test_uk_equity_support.py:115
Functiontest_scale_zero_row_returns_nan
()
agent/tests/factors/test_base.py:67
Functiontest_scaling_in_holds_the_whole_position_for_the_new_lot
Buy, add, then try to exit one session after the add. Weights execute a bar late, so this path is: open on bar 1, increase on bar 3, exit sig
agent/tests/test_vietnam_backtest_smoke.py:85
Methodtest_scan_all_includes_root_and_subdirs
scan_all finds .md files in both base dir and category subdirs.
agent/tests/memory/test_hierarchy.py:52
Methodtest_scan_all_skips_special_files
scan_all skips MEMORY.md and .hierarchy.yaml.
agent/tests/memory/test_hierarchy.py:67
Methodtest_scan_category_empty
scan_category for non-existent dir returns empty list.
agent/tests/memory/test_hierarchy.py:91
Methodtest_scan_category_only_target
scan_category only returns files in specified category.
agent/tests/memory/test_hierarchy.py:80
Methodtest_scan_entries_reads_category_from_frontmatter
Write .md with category in frontmatter, verify it's parsed.
agent/tests/test_persistent_memory.py:653
Methodtest_scan_limit_bounds_the_number_of_filings_read
(self)
agent/tests/test_institutional_holdings_tool.py:1363
Functiontest_scan_prompt_injection_allows_plain_financial_text
()
agent/tests/test_security_scanner.py:35
Functiontest_scan_prompt_injection_detects_instruction_override
()
agent/tests/test_security_scanner.py:23
Functiontest_scan_shadow_signals_absent_per_market_defaults_to_three
An absent per_market defaults to 3 and reaches the scanner.
agent/tests/test_tools_type_value_safety.py:362
Functiontest_scan_shadow_signals_rejects_malformed_per_market
per_market is validated before the profile load, so the branch is reached.
agent/tests/test_tools_type_value_safety.py:346
Functiontest_scan_shadow_signals_tool
( profitable_journal: Path, tmp_path: Path, monkeypatch: pytest.MonkeyPatch, )
agent/tests/test_shadow_account.py:1172
Functiontest_scan_symbols_detects_joined_pairs
A bare joined crypto pair is scanned as the canonical symbol.
agent/tests/test_agent_grounding.py:619
Functiontest_scan_symbols_detects_venue_prefixed_symbols
A pasted connector code is locked as an identity, prose is not.
agent/tests/test_agent_grounding.py:3552
Functiontest_scan_today_signals_honors_prior_return_dict_band
``prior_5d_return`` as a ``{min,max}`` dict must range-check momentum. Before the fix the dict reached ``_to_float`` and returned ``None`` → the
agent/tests/test_shadow_scanner.py:162
Functiontest_scan_today_signals_keeps_backwards_compatible_call_signature
()
agent/tests/test_shadow_scanner.py:99
Functiontest_scan_today_signals_matches_price_features
()
agent/tests/test_shadow_scanner.py:56
Functiontest_scan_today_signals_matches_rsi_range_condition
An RSI ``{min,max}`` bound must be honored by the scanner (PR #314). Before the fix, ``entry_rsi14`` mapped to no feature and the bound was s
agent/tests/test_shadow_scanner.py:133
Functiontest_scan_today_signals_no_match_when_rsi_history_insufficient
Too few bars to compute RSI → the RSI-bearing rule cannot match.
agent/tests/test_shadow_scanner.py:181
Functiontest_scan_today_signals_rejects_out_of_band_rsi
A steady uptrend (RSI ~100) must fail a low-RSI [0, 30] band.
agent/tests/test_shadow_scanner.py:151
Functiontest_scan_today_signals_respects_per_market_cap
()
agent/tests/test_shadow_scanner.py:106
Functiontest_scan_today_signals_returns_no_match_when_features_fail
()
agent/tests/test_shadow_scanner.py:78
Functiontest_scan_today_signals_skips_missing_and_empty_data
()
agent/tests/test_shadow_scanner.py:91
Methodtest_scanned_slashed_pair_matches_resolver_answer
The query-as-asserted scan must agree with the chosen candidate.
agent/tests/test_agent_grounding.py:2691
Functiontest_scenario_entry_cell_equals_negative_entry_commission
The entry scenario includes the same opening fee as the engine.
agent/tests/test_options_payoff.py:203
Functiontest_schedule_from_loader_columns_parses_validated_json
()
agent/tests/test_perpetual_risk.py:117
Functiontest_schedule_from_loader_columns_rejects_bad_payloads
(payload: str, match: str)
agent/tests/test_perpetual_risk.py:145
Functiontest_schedule_holds_the_given_version_without_recomputing_it
()
agent/tests/test_perpetual_risk.py:60
Methodtest_schedule_persists_a_job
( self, cli_store: ScheduledResearchJobStore, capsys: pytest.CaptureFixture[str] )
agent/tests/test_playbooks_surface.py:637
Functiontest_schedule_rejects_empty_symbol_version_or_brackets
()
agent/tests/test_perpetual_risk.py:108
Methodtest_schedule_reports_a_bad_variable_without_storing
( self, cli_store: ScheduledResearchJobStore, capsys: pytest.CaptureFixture[str] )
agent/tests/test_playbooks_surface.py:653
Functiontest_schedule_requires_strictly_increasing_bracket_tiers
()
agent/tests/test_perpetual_risk.py:96
Functiontest_schedule_requires_strictly_increasing_notional_caps
()
agent/tests/test_perpetual_risk.py:84
Functiontest_scheduled_delivery_forces_proactive_mail_but_requires_consent
(monkeypatch)
agent/tests/test_email_rich_delivery.py:237
Functiontest_scheduled_email_dispatch_passes_only_protection_flag
(monkeypatch)
agent/tests/test_scheduled_routes.py:730
Functiontest_scheduler_fires_due_job_then_removes_oneshot
()
agent/tests/test_runtime_scheduler.py:103
← previousnext →23,901–24,000 of 26,887, ranked by callers