Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/HKUDS/Vibe-Trading
/ functions
Functions
26,887 in github.com/HKUDS/Vibe-Trading
⨍
Functions
26,887
◇
Types & classes
2,943
↳
Endpoints
204
Method
test_llm_vision_unavailable_without_api_key
llm-vision is_available returns False when no API key is set. When the cloud engine is unavailable, get_ocr_engine falls back to auto
agent/tests/test_ocr_engine.py:91
Function
test_load_agent_config_accepts_camel_case_json
(tmp_path: Path)
agent/tests/test_agent_config.py:72
Function
test_load_agent_config_accepts_channel_reply_timeout_aliases
(tmp_path: Path)
agent/tests/test_agent_config.py:98
Function
test_load_agent_config_returns_defaults_when_file_missing
(tmp_path: Path)
agent/tests/test_agent_config.py:63
Function
test_load_agent_config_supports_yaml
(tmp_path: Path)
agent/tests/test_agent_config.py:130
Function
test_load_agent_config_warns_and_falls_back_on_invalid_file
( tmp_path: Path, caplog: pytest.LogCaptureFixture, )
agent/tests/test_agent_config.py:225
Function
test_load_alpha_meta_from_py
(tmp_path: Path)
agent/tests/factors/test_registry.py:149
Function
test_load_alpha_meta_missing_assignment
(tmp_path: Path)
agent/tests/factors/test_registry.py:158
Function
test_load_alpha_meta_not_literal
(tmp_path: Path)
agent/tests/factors/test_registry.py:165
Function
test_load_alpha_meta_py_size_cap
(tmp_path: Path)
agent/tests/factors/test_registry.py:192
Function
test_load_alpha_meta_pydantic_rejects_unknown_field
(tmp_path: Path)
agent/tests/factors/test_registry.py:172
Function
test_load_cashflows_accepts_an_unambiguous_single_dot
A dot not followed by exactly three digits can only be a decimal point.
agent/tests/test_entities_spine.py:499
Function
test_load_cashflows_blank_amount_is_an_error_not_zero
(tmp_path)
agent/tests/test_entities_spine.py:545
Function
test_load_cashflows_currency_argument_substitutes_for_a_missing_column
(tmp_path)
agent/tests/test_entities_spine.py:386
Function
test_load_cashflows_explicit_column_mapping
(tmp_path)
agent/tests/test_entities_spine.py:401
Function
test_load_cashflows_header_aliases_are_matched_case_insensitively
(tmp_path)
agent/tests/test_entities_spine.py:423
Function
test_load_cashflows_header_only_file_yields_an_empty_series
(tmp_path)
agent/tests/test_entities_spine.py:576
Function
test_load_cashflows_invert_sign_restores_the_convention
A file reporting calls as positive is corrected at the boundary.
agent/tests/test_entities_spine.py:524
Function
test_load_cashflows_missing_currency_is_an_error_not_a_default
(tmp_path)
agent/tests/test_entities_spine.py:380
Function
test_load_cashflows_missing_file_raises_ingest_error
(tmp_path)
agent/tests/test_entities_spine.py:565
Function
test_load_cashflows_missing_kind_is_an_error_unless_defaulted
(tmp_path)
agent/tests/test_entities_spine.py:393
Function
test_load_cashflows_missing_required_column_raises_not_none
(tmp_path)
agent/tests/test_entities_spine.py:369
Function
test_load_cashflows_mixed_currency_file_is_refused
(tmp_path)
agent/tests/test_entities_spine.py:583
Function
test_load_cashflows_parses_accounting_negatives_and_separators
(tmp_path)
agent/tests/test_entities_spine.py:434
Function
test_load_cashflows_preserves_unmapped_columns_as_metadata
(tmp_path)
agent/tests/test_entities_spine.py:354
Function
test_load_cashflows_reads_a_fixture_csv
(tmp_path)
agent/tests/test_entities_spine.py:337
Function
test_load_cashflows_reads_dot_grouping_with_no_fraction
1.234.567' is 1234567, the same way '1,234,567' already is. Two or more of the same separator cannot be a decimal point, so the number is una
agent/tests/test_entities_spine.py:454
Function
test_load_cashflows_reads_european_grouping_without_mangling_it
1.234,50 must be 1234.50, not 1.2345.
agent/tests/test_entities_spine.py:444
Function
test_load_cashflows_refuses_an_ambiguous_single_comma
1,234' is 1234 in a US export and 1.234 in a European one.
agent/tests/test_entities_spine.py:477
Function
test_load_cashflows_refuses_an_ambiguous_single_dot
12.000' is 12 in a US export and 12000 in a European one.
agent/tests/test_entities_spine.py:488
Function
test_load_cashflows_rejects_a_mapping_to_an_absent_column
(tmp_path)
agent/tests/test_entities_spine.py:417
Function
test_load_cashflows_rejects_an_invalid_decimal_separator
(tmp_path)
agent/tests/test_entities_spine.py:507
Function
test_load_cashflows_reports_the_offending_row_number
(tmp_path)
agent/tests/test_entities_spine.py:553
Function
test_load_cashflows_requires_explicit_format_for_non_iso_dates
(tmp_path)
agent/tests/test_entities_spine.py:535
Function
test_load_cashflows_skips_trailing_blank_line
(tmp_path)
agent/tests/test_entities_spine.py:603
Function
test_load_cashflows_strips_currency_symbols_and_nbsp
(tmp_path)
agent/tests/test_entities_spine.py:515
Function
test_load_cashflows_tsv_delimiter_inferred_from_suffix
(tmp_path)
agent/tests/test_entities_spine.py:595
Function
test_load_cashflows_unsupported_suffix_is_explicit
(tmp_path)
agent/tests/test_entities_spine.py:570
Function
test_load_cli_env_reads_dotenv_file
End-to-end: a token present only in .env reaches get_env_config().
agent/tests/test_alpha_cli_dotenv.py:173
Function
test_load_cli_env_swallows_dotenv_errors
A broken .env must not crash the command; the downstream error does.
agent/tests/test_alpha_cli_dotenv.py:162
Function
test_load_dataframe_accepts_utf16_bom_csv
(tmp_path: Path)
agent/tests/test_trade_journal.py:318
Function
test_load_equity_accepts_equity_column
(tmp_path: Path)
agent/tests/test_load_equity_aliases.py:23
Function
test_load_equity_accepts_nav_column
(tmp_path: Path)
agent/tests/test_load_equity_aliases.py:13
Function
test_load_equity_accepts_value_column
(tmp_path: Path)
agent/tests/test_load_equity_aliases.py:32
Function
test_load_equity_unknown_columns_raise
(tmp_path: Path)
agent/tests/test_load_equity_aliases.py:41
Function
test_load_mandate_absent_returns_none
No file on disk → None (fail-closed, gate denies).
agent/tests/test_mandate_model.py:142
Function
test_load_mandate_malformed_json_returns_none
Unparseable JSON → None rather than an exception.
agent/tests/test_mandate_model.py:147
Function
test_load_mandate_missing_field_returns_none
A structurally invalid record (missing section) → None (fail-closed).
agent/tests/test_mandate_model.py:157
Function
test_load_mandate_round_trip
A written mandate loads back into an equal frozen object.
agent/tests/test_mandate_model.py:92
Method
test_load_missing_file_returns_empty_dict
(self, tmp_path: Path)
agent/tests/test_scheduled_research_store.py:171
Method
test_load_optimizer_applies_constraints
(self)
agent/tests/test_constraints.py:196
Function
test_load_panel_ambiguous_header_raises_and_explicit_layout_resolves_it
A header that matches no recognised shape must not be silently guessed.
agent/tests/test_entities_spine.py:979
Function
test_load_panel_empty_file_raises_not_none
(tmp_path)
agent/tests/test_entities_spine.py:999
Function
test_load_panel_explicit_column_mapping
(tmp_path)
agent/tests/test_entities_spine.py:1029
Function
test_load_panel_header_only_long_file_yields_an_empty_panel
(tmp_path)
agent/tests/test_entities_spine.py:1005
Function
test_load_panel_infers_wide_dates_rows_layout_and_skips_holes
(tmp_path)
agent/tests/test_entities_spine.py:928
Function
test_load_panel_infers_wide_entities_rows_layout
(tmp_path)
agent/tests/test_entities_spine.py:942
Function
test_load_panel_long_layout_reads_a_fixture_csv
(tmp_path)
agent/tests/test_entities_spine.py:907
Function
test_load_panel_metric_is_normalized
(tmp_path)
agent/tests/test_entities_spine.py:1051
Function
test_load_panel_missing_currency_is_an_error_not_a_default
(tmp_path)
agent/tests/test_entities_spine.py:963
Function
test_load_panel_missing_unit_is_an_error_not_a_default
(tmp_path)
agent/tests/test_entities_spine.py:971
Function
test_load_panel_missing_value_column_raises_not_none
(tmp_path)
agent/tests/test_entities_spine.py:955
Function
test_load_panel_rejects_an_invalid_decimal_separator
(tmp_path)
agent/tests/test_entities_spine.py:1076
Function
test_load_panel_rejects_an_invalid_layout_value
(tmp_path)
agent/tests/test_entities_spine.py:1086
Function
test_load_panel_wide_entities_rows_bad_date_header_raises
(tmp_path)
agent/tests/test_entities_spine.py:1021
Function
test_load_panel_wide_layout_requires_metric_currency_and_unit
(tmp_path)
agent/tests/test_entities_spine.py:1011
Method
test_load_relations_missing_file
Returns empty list gracefully when no .relations.json.
agent/tests/memory/test_semantic_links.py:116
Function
test_load_run_missing_is_fast_none
Fast not-found path must stay immediate (guards get_run_result(bogus)).
agent/tests/test_swarm_store_atomic_write.py:117
Function
test_load_run_retries_transient_read_then_parses
(tmp_path, monkeypatch)
agent/tests/test_swarm_store_atomic_write.py:98
Method
test_load_support_file
(self, tmp_path: Path)
agent/tests/test_skills.py:108
Method
test_load_support_file_missing
(self, tmp_path: Path)
agent/tests/test_skills.py:113
Method
test_load_support_file_no_dir
(self)
agent/tests/test_skills.py:104
Function
test_load_swarm_agent_config_loads_swarm_specific_file
When ``swarm-agent.json`` exists, its servers are validated and loaded. End-to-end check that the resolver + loader integrates cleanly: the `
agent/tests/test_swarm_m3_boot_wiring.py:190
Function
test_load_swarm_agent_config_returns_default_when_unconfigured
Boot wiring stays safe even with no operator config on disk. The boot helpers in ``mcp_server.py`` / ``api_server.py`` / CLI runners call ``l
agent/tests/test_swarm_m3_boot_wiring.py:167
Function
test_load_trades_blank_holding_days_defaults_to_zero
Blank holding_days cells must not abort validation with ValueError.
agent/tests/test_validation.py:424
Function
test_load_trades_prefers_fill_derived_holding_bars
(tmp_path: Path)
agent/tests/test_validation.py:441
Method
test_load_upsert_save_load_roundtrip_idempotent
(self, tmp_path: Path)
agent/tests/test_scheduled_research_model_compat.py:105
Function
test_loaded_dotenv_refreshes_cached_env_config
A config cached before dotenv loading must be refreshed afterwards.
agent/tests/test_dotenv_observability.py:75
Function
test_loaded_equity_gap_reaches_validation_sample_guard
(tmp_path)
agent/tests/test_validation_missing_equity.py:67
Function
test_loader_alignment_no_first_day_loss
End-to-end: a window starting on a trading day keeps that day's bar.
agent/tests/test_zerodha_sdk.py:123
Function
test_loader_and_connector_resolve_same_source
(monkeypatch, tmp_path)
agent/tests/test_sdk_connectors.py:349
Function
test_loader_cache_corrupt_entry_falls_back_to_live_fetch
( tmp_path, monkeypatch, fake_duckdb, loader_cache_root, )
agent/tests/test_loader_retry_helpers.py:351
Function
test_loader_cache_disabled_by_default_bypasses_home
(tmp_path, monkeypatch)
agent/tests/test_loader_retry_helpers.py:228
Function
test_loader_cache_happy_path_writes_then_reuses
( tmp_path, monkeypatch, fake_duckdb, loader_cache_root, )
agent/tests/test_loader_retry_helpers.py:314
Function
test_loader_cache_key_partitions_source_symbol_timeframe_date_and_fields
()
agent/tests/test_loader_retry_helpers.py:295
Function
test_loader_cache_range_is_final_only_for_settled_past
()
agent/tests/test_loader_retry_helpers.py:439
Function
test_loader_cache_real_duckdb_round_trip
Exercise the real duckdb -> parquet -> duckdb path (CI mocks duckdb elsewhere).
agent/tests/test_loader_retry_helpers.py:472
Function
test_loader_cache_root_honors_real_string_override
A genuine string override is still respected.
agent/tests/test_loader_retry_helpers.py:279
Function
test_loader_cache_round_trip_keeps_adjustment_override
A frame-level ``adjustment`` override must survive the cache. FMP/Tiingo stamp ``adjustment="raw"`` when a response carries no usable adjuste
agent/tests/test_loader_retry_helpers.py:503
Function
test_loader_cache_skips_unsettled_today_range
A range ending today must never be cached: its last bar is still forming.
agent/tests/test_loader_retry_helpers.py:451
Function
test_loader_defaults_to_v11_and_rejects_an_unknown_version
()
agent/tests/test_paper_trade_v12_schema.py:516
Function
test_loader_differing_complete_sources_fail_before_sdk
( monkeypatch: pytest.MonkeyPatch, tmp_path )
agent/tests/test_longbridge_loader.py:147
Function
test_loader_evidence_is_sanitized
(monkeypatch)
agent/tests/test_loader_health.py:265
Function
test_loader_exception_is_contained_not_lost
(monkeypatch)
agent/tests/test_get_market_data_unresolved.py:76
Function
test_loader_failure_never_takes_the_bench_down
Placeholder token → loader RuntimeError → warn, no sector, bench proceeds.
agent/tests/test_alpha_bench_csi300_sector.py:184
Function
test_loader_invalid_config_degrades_without_attach
(fake_mod, monkeypatch, config)
agent/tests/test_mt5_loader.py:313
Function
test_loader_partial_environment_with_complete_file_fails_before_sdk
( monkeypatch: pytest.MonkeyPatch, tmp_path )
agent/tests/test_longbridge_loader.py:105
Function
test_loader_resolves_contracts_from_inside_the_package
()
agent/tests/test_paper_trade_v12_schema.py:503
Function
test_loader_self_registers
()
agent/tests/test_tiingo_loader.py:359
Function
test_loader_volume_unit_declaration
(loader_cls, market, expected)
agent/tests/test_loader_volume_units.py:45
← previous
next →
20,201–20,300 of 26,887, ranked by callers