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
Function
test_sleep_hint_receives_a_fresh_post_tick_now
The hint is sampled against a freshly read clock, after the tick.
agent/tests/scheduling/test_kernel_sleep_hint.py:62
Function
test_sleep_hint_replaces_the_fixed_tick
A 60s fixed tick would never reach the second tick inside the timeout; the hint shortens the inter-tick sleep to 1ms.
agent/tests/scheduling/test_kernel_sleep_hint.py:34
Function
test_sleep_or_wake_returns_at_once_when_stopping
stop() between the loop's check and the sleep must not wait a tick.
agent/tests/scheduling/test_kernel.py:264
Function
test_sleep_or_wake_without_a_wakeup_event_uses_bare_sleep
()
agent/tests/scheduling/test_kernel.py:253
Method
test_slices_to_requested_range
(self, monkeypatch)
agent/tests/test_alphavantage_loader.py:92
Method
test_slightly_bullish
(self)
agent/tests/test_sentiment_tool.py:58
Method
test_slippage_default
(self)
agent/tests/test_india_equity_engine.py:187
Method
test_slippage_snaps_to_cent_against_trader
(self)
agent/tests/test_brazil_market_routing.py:76
Method
test_slippage_that_crosses_the_limit_blocks_the_buy
The check is on the FILL price, so adverse slippage can breach it.
agent/tests/test_korea_equity_engine.py:155
Function
test_slow_analysis_does_not_block_other_api_requests
Health must respond while a price-data computation is still waiting.
agent/tests/test_system_routes.py:221
Function
test_slow_consumer_preserves_every_chunk_and_eof
()
agent/tests/test_chat_stream_interruption.py:187
Function
test_slow_decision_outlives_the_stream_idle_timeout
(fake_cli, monkeypatch)
agent/tests/test_claude_cli_provider.py:375
Function
test_slow_trickle_cannot_extend_message_deadline
()
agent/tests/test_baostock_socket_deadline.py:172
Method
test_slug_alone_shows_the_card
(self, capsys: pytest.CaptureFixture[str])
agent/tests/test_playbooks_surface.py:600
Method
test_slug_comes_from_the_filename
(self, tmp_path: Path)
agent/tests/test_research_playbooks.py:191
Method
test_slug_distinguishes_two_thai_titles
(self, tmp_path: Path)
agent/tests/test_persistent_memory.py:181
Method
test_slug_preserves_non_latin_chars
(self, tmp_path: Path, title: str)
agent/tests/test_persistent_memory.py:174
Method
test_slug_sanitization
(self, tmp_path: Path)
agent/tests/test_persistent_memory.py:141
Method
test_slug_uses_query_lookup
(self, monkeypatch)
agent/tests/test_prediction_market_tool.py:611
Method
test_slugs_are_unique_and_lowercase
(self)
agent/tests/test_institutional_commands.py:343
Method
test_sma_exact_bars
(self)
agent/tests/test_technical_indicator_tool.py:28
Method
test_sma_insufficient_bars
(self)
agent/tests/test_technical_indicator_tool.py:24
Method
test_sma_normal
(self)
agent/tests/test_technical_indicator_tool.py:20
Function
test_small_component_is_not_erased_by_larger_or_zero_reference
(reference)
agent/tests/test_technical_indicator_small_price_rounding.py:27
Function
test_small_history_response_reports_no_truncation
( tmp_path: Path, )
agent/tests/test_taiwan_stock_data_tool.py:613
Method
test_small_position
(self)
agent/tests/test_crypto_engine.py:501
Function
test_small_query_unchanged_plain_list
No-regression: under the cap the shape is the original plain list.
agent/tests/test_get_market_data_size.py:52
Function
test_small_results_keep_their_json_contract
(value, expected)
agent/tests/test_quantlib_result_budget.py:99
Function
test_smtp_auth_error_reports_invalid_credentials
( monkeypatch: pytest.MonkeyPatch, )
agent/tests/test_email_connection_test.py:426
Function
test_smtp_connect_error_reports_network
(monkeypatch: pytest.MonkeyPatch)
agent/tests/test_email_connection_test.py:443
Function
test_smtp_error_echoing_credentials_is_scrubbed
( monkeypatch: pytest.MonkeyPatch, caplog: pytest.LogCaptureFixture )
agent/tests/test_email_connection_test.py:673
Function
test_smtp_login_disconnect_reports_network
(monkeypatch: pytest.MonkeyPatch)
agent/tests/test_email_connection_test.py:469
Function
test_smtp_ssl_transport_skips_starttls
(monkeypatch: pytest.MonkeyPatch)
agent/tests/test_email_connection_test.py:482
Function
test_smtp_starttls_failure_reports_network
(monkeypatch: pytest.MonkeyPatch)
agent/tests/test_email_connection_test.py:456
Function
test_snapshot_contracts_are_frozen_and_reject_spot_sources
()
agent/tests/test_binance_account_reconciliation.py:108
Method
test_snapshot_frozen
(self, tmp_path: Path)
agent/tests/test_persistent_memory.py:497
Function
test_snapshot_id_reaches_the_service_and_an_unknown_id_fails_closed
(monkeypatch)
agent/tests/test_portfolio_summary_tool_snapshot.py:10
Method
test_snapshot_is_sorted_and_json_ready
(self)
agent/tests/test_paper_order_lifecycle.py:200
Method
test_snapshot_loaded_at_init
(self, tmp_path: Path)
agent/tests/test_persistent_memory.py:490
Function
test_snapshot_missing_pit_columns_degrades_to_an_all_none_frame
A payload without in_date/out_date cannot establish membership — degrade, never guess.
agent/tests/test_industry_loader.py:310
Function
test_snapshot_wrapper_without_inner_loader_serves_only_the_snapshot
()
agent/tests/test_offline_benchmark.py:166
Method
test_snippet_contains_match
(self, index: SessionSearchIndex)
agent/tests/test_session_search.py:126
Method
test_snippet_trims
(self)
agent/tests/test_stock_news_tool.py:88
Function
test_socket_mode_disabled_reports_invalid_credentials_on_leg_two
``apps.connections.open`` rejects when Socket Mode is not enabled.
agent/tests/test_slack_connection_test.py:160
Method
test_solver_failure_does_not_return_equal_weight
(self, monkeypatch)
agent/tests/test_turnover_aware_optimizer.py:323
Method
test_sort_by_maps_to_eastmoney_fid
(self)
agent/tests/test_market_screener_tool.py:80
Method
test_sorted_ascending
(self)
agent/tests/test_futu_loader.py:151
Method
test_sorted_by_slug
(self)
agent/tests/test_research_playbooks.py:93
Method
test_sortino_positive_for_growth
(self)
agent/tests/test_metrics.py:439
Function
test_sortino_preserves_calendar_annualization
()
agent/tests/test_metrics_sortino.py:50
Function
test_sortino_preserves_degenerate_path_conventions
(equity: list[float])
agent/tests/test_metrics_sortino.py:45
Function
test_sortino_preserves_no_downside_convention
()
agent/tests/test_metrics_sortino.py:37
Function
test_sortino_undefined_cases_remain_json_safe
( values: list[float], bars_per_year: int )
agent/tests/test_options_portfolio_correctness.py:256
Function
test_sortino_uses_full_sample_downside_deviation
( equity: list[float], mean_return: float, downside_mean_square: float, bars_per_year: int, )
agent/tests/test_metrics_sortino.py:26
Function
test_sortino_uses_full_sample_downside_deviation
( values: list[float], mean_return: float, downside_mean_square: float, bars_per_year: int | N
agent/tests/test_options_portfolio_correctness.py:206
Method
test_sorts_ascending_and_typed
(self)
agent/tests/test_gildata_loader.py:129
Method
test_sorts_ascending_and_typed
(self)
agent/tests/test_fmp_loader.py:76
Method
test_sorts_ascending_typed_and_named
(self)
agent/tests/test_tickerall_loader.py:382
Function
test_source_bound_benchmark_never_switches_provider
(monkeypatch, source, loader_name)
agent/tests/test_offline_benchmark.py:203
Function
test_source_calibers
(source: str, expected: str)
agent/tests/test_price_caliber.py:59
Function
test_source_code
(tmp_path: Path, ext: str)
agent/tests/test_doc_reader.py:47
Method
test_source_filters
(self, tmp_path)
agent/tests/test_strategy_discovery_facade.py:260
Method
test_source_is_case_insensitive
(self)
agent/tests/test_metrics.py:207
Method
test_source_mapping
(self, code: str, expected_source: str)
agent/tests/test_market_detection.py:275
Function
test_source_mtime_comes_from_the_file_and_is_labelled
(tmp_path)
agent/tests/test_extraetf_reader.py:491
Method
test_source_never_calls_datetime_now_or_time_time
AST-based, not substring-based: the module docstring legitimately *mentions* ``datetime.now()`` in prose while explaining why it is n
agent/tests/quantlib/valuation/test_artifact.py:389
Function
test_source_order_env_var
()
agent/tests/test_source_order_overrides.py:62
Method
test_source_pattern_matches_irt_pairs_only
(self)
agent/tests/test_nobitex_loader.py:214
Method
test_source_pattern_matches_tmn_pairs_only
(self)
agent/tests/test_wallex_loader.py:190
Function
test_source_surface_calls_no_live_trading_connector
()
agent/tests/test_paper_trade_purity.py:268
Function
test_source_surface_reads_no_environment_and_names_no_rm_credentials
()
agent/tests/test_paper_trade_purity.py:250
Method
test_sources_and_metadata
(self, tmp_path)
agent/tests/test_strategy_discovery_facade.py:228
Function
test_sources_marks_selected_and_credentialed_rows
(capsys)
agent/tests/test_cli_portfolio.py:135
Function
test_sources_without_connections_explains_where_to_create_one
(capsys)
agent/tests/test_cli_portfolio.py:164
Function
test_sp500_source_date_matches_the_roster
SP500 metadata never assigns Wikipedia's date to a fallback list.
agent/tests/test_alpha_bench_universe_metadata.py:161
Method
test_spa_pages_match
(self, path: str)
agent/tests/test_spa_deep_link.py:28
Function
test_spaced_money_matches_the_same_observation
(tmp_path, space)
agent/tests/test_grounding_spaced_magnitude_units.py:11
Method
test_spacing_inside_the_tolerance_keeps_the_declaration
Bars 72 minutes apart declared 1H sit at ratio 1.2: not a mismatch.
agent/tests/test_cross_market_annualization.py:367
Method
test_spacing_near_a_neighbouring_interval_resolves_to_it
Bars 72 minutes apart declared 30m are a mismatch (ratio 2.4) whose nearest interval, 1H, sits inside the tolerance (ratio 1.2): the run
agent/tests/test_cross_market_annualization.py:374
Function
test_spacing_preserves_word_and_line_boundaries
(text, expected)
agent/tests/test_grounding_spaced_magnitude_units.py:25
Method
test_span_days_is_none_for_an_instant_fact
(self)
agent/tests/test_sec_period_frames.py:86
Method
test_span_days_measures_a_duration_fact
(self)
agent/tests/test_sec_period_frames.py:83
Method
test_span_shorter_than_a_day_counts_as_one_year
(self)
agent/tests/test_cross_market_annualization.py:38
Method
test_span_shorter_than_a_day_still_counts_as_one_year
(self)
agent/tests/test_effective_bars_per_year_span.py:56
Function
test_spanish_grouped_tool_values_survive_the_grounding_gate
The live Argentina-report shape: localized grouping plus a rounded ratio.
agent/tests/test_grounding_numeric_locale_rounding.py:164
Function
test_spark_capabilities_use_generic_openai_path
iFlytek Spark rides the plain OpenAI-compatible path; iflytek is an alias.
agent/tests/test_provider_diagnostics.py:69
Function
test_sparse_price_features_fall_back_to_journal_only
With prices offline (autouse), promotion is skipped and rules still form.
agent/tests/test_shadow_account.py:1486
Method
test_spearman_vs_pearson_diff
(self)
agent/tests/test_correlation.py:284
Function
test_spec_defaults_are_system_and_internal
()
agent/tests/scheduling/test_system_jobs.py:152
Function
test_spec_level_enabled_predicate_gates_seeding
(tmp_path: Path)
agent/tests/scheduling/test_system_jobs.py:230
Function
test_spec_rejects_malformed_definitions
(overrides: dict)
agent/tests/scheduling/test_system_jobs.py:174
Function
test_spec_rejects_non_callable_predicate
()
agent/tests/scheduling/test_system_jobs.py:179
Method
test_special_chars
(self)
agent/tests/test_skill_writer_tools.py:29
Method
test_special_chars_stripped
(self)
agent/tests/test_session_search.py:182
Method
test_speedup_ratio
Compare optimized vs naive reindex-based implementation.
agent/tests/test_signal_alignment_perf.py:466
Function
test_spf_and_dkim_are_independent_verdicts
One mechanism passing and aligned must not make the other pass too.
agent/tests/test_email_authentication_results.py:185
Function
test_spine_does_not_widen_the_bar_price_panel
A nav must never become a column a bar engine could price as a close.
agent/tests/test_entities_spine.py:720
Function
test_split_between_legs_no_longer_fabricates_a_loss
()
agent/tests/test_trade_journal_fifo.py:58
Function
test_split_between_legs_of_a_short_mirrors_the_long_case
A short across a 1:2 split must net to zero, exactly like the long. The original short branch divided the entry price by the factor instead of
agent/tests/test_trade_journal_fifo.py:80
Function
test_split_csv_preserves_net_winners_and_date_filters
( tmp_path: Path, monkeypatch: pytest.MonkeyPatch, reverse_rows: bool )
agent/tests/test_generic_split_datetime.py:60
← previous
next →
24,501–24,600 of 26,887, ranked by callers