MCPcopy Create free account

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

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

Functiontest_concurrent_expired_credential_reads_share_one_refresh
(no_ambient_credentials, monkeypatch)
agent/tests/test_copilot_provider.py:160
Functiontest_concurrent_instances_append_a_single_serial_revision_chain
( tmp_path, monkeypatch )
agent/tests/test_research_artifact_store.py:168
Functiontest_concurrent_latch_updates_both_episodes_recorded
( live_root: Path, )
agent/tests/test_sweep_latch.py:481
Functiontest_concurrent_match_commits_only_once
(service)
agent/tests/test_paper_accounts.py:166
Functiontest_concurrent_orders_share_one_daily_cap_permit
Two callers racing a cap of one must make only one broker call.
agent/tests/test_sdk_order_gate.py:880
Functiontest_concurrent_portfolio_reconnect_returns_conflict
(monkeypatch)
agent/tests/test_portfolio_routes.py:124
Functiontest_concurrent_process_like_managers_do_not_lose_updates
(tmp_path)
agent/tests/test_pixel_office.py:55
Functiontest_concurrent_puts_serialize_per_channel
(tmp_path: Path, monkeypatch)
agent/tests/test_channels_config_api.py:990
Functiontest_concurrent_reloads_of_one_channel_leave_one_adapter_running
Two reloads racing on one channel each stopped the adapter they saw and started their own, so one replacement ran outside the manager.
agent/tests/test_channel_manager_reload.py:399
Methodtest_concurrent_reset_and_read
Interleaved reset + read must not raise.
agent/tests/test_env_schema.py:460
Functiontest_concurrent_saves_use_distinct_temporary_files
(live_runtime, monkeypatch)
agent/tests/test_runtime_jobstore.py:83
Functiontest_concurrent_start_while_stopping_does_not_orphan_the_loop
Regression: the old unconditional ``self._task = None`` at the tail of stop() nulled a NEW loop task installed by a start() that landed in the
agent/tests/scheduling/test_kernel_sleep_hint.py:194
Functiontest_concurrent_stops_do_not_cancel_teardown_twice
(tmp_path, monkeypatch)
agent/tests/test_api_live_runtime.py:592
Functiontest_concurrent_stops_wait_for_cleanup_without_recancelling
()
agent/tests/scheduling/test_kernel_concurrent_stop.py:7
Functiontest_concurrent_stores_writing_same_run_do_not_crash_or_clobber
mcp_server._get_swarm_store() builds a fresh SwarmStore per tool call, so two pollers of the same run each hold their own _write_lock. A shared
agent/tests/test_swarm_store_atomic_write.py:128
Functiontest_concurrent_task_stores_saving_one_task_do_not_crash
The TaskStore sibling of the SwarmStore race (#1536): two workers writing the same task file each used ``task-<id>.tmp``, so one rename could cons
agent/tests/test_swarm_store_atomic_write.py:166
Functiontest_concurrent_writes_to_different_channels_both_survive
Two threads patching different channels at once must not lose a patch. The barrier forces both readers to overlap when the write lock is absent;
agent/tests/test_config_writer.py:132
Methodtest_condition_id_routes_to_clob
(self, monkeypatch)
agent/tests/test_prediction_market_tool.py:742
Functiontest_conditional_coverage_catches_a_model_that_only_fails_on_timing
()
agent/tests/quantlib/test_var_backtest.py:230
Functiontest_conditional_coverage_is_exactly_the_sum_of_its_components
()
agent/tests/quantlib/test_var_backtest.py:213
Functiontest_conditional_coverage_passes_a_correctly_calibrated_model
()
agent/tests/quantlib/test_var_backtest.py:223
Functiontest_conditional_entry_both_rsi_and_return_must_pass
Both RSI and prior-return conditions must pass (AND logic).
agent/tests/test_shadow_account.py:2346
Functiontest_conditional_entry_emits_signal_when_rsi_in_range
RSI in [25, 45] → signal fires.
agent/tests/test_shadow_account.py:2188
Functiontest_conditional_entry_falls_back_to_time_only_when_no_price_keys
Rule without price conditions uses time-window-only entry.
agent/tests/test_shadow_account.py:2296
Functiontest_conditional_entry_holds_for_full_duration
Once entered, signal persists for hold_days bars.
agent/tests/test_shadow_account.py:2242
Functiontest_conditional_entry_no_reentry_while_holding
remaining_hold > 0 must prevent re-entry during a hold.
agent/tests/test_shadow_account.py:2268
Functiontest_conditional_entry_only_prior_return_condition
Rule with only prior_5d_return (no RSI) gates on return alone.
agent/tests/test_shadow_account.py:2378
Functiontest_conditional_entry_prior_return_gates_entry
Prior return outside bounds → no entry.
agent/tests/test_shadow_account.py:2315
Functiontest_conditional_entry_respects_hour_window
Entry only allowed when bar hour is in [9, 11]; outside → zero.
agent/tests/test_shadow_account.py:2223
Functiontest_conditional_entry_rsi_nan_bars_are_skipped
Bars where RSI is NaN (warmup) are skipped, then entry fires after warmup.
agent/tests/test_shadow_account.py:2438
Functiontest_conditional_entry_skips_when_rsi_out_of_range
RSI strictly below min → no entry. Use a steep uptrend to push RSI high.
agent/tests/test_shadow_account.py:2205
Functiontest_confidence_must_be_a_strict_probability
(fn, confidence)
agent/tests/quantlib/test_risk.py:209
Functiontest_config_defaults_to_paper_port
()
agent/tests/test_ibkr_local.py:110
Methodtest_config_file_feeds_initialize
( self, fake_mod: _FakeMT5Module, tmp_path: Path, monkeypatch: pytest.MonkeyPatch )
agent/tests/test_mt5_loader.py:221
Methodtest_config_file_skipped
(self)
tools/test_ci_env_var_gate.py:144
Functiontest_config_formats
(tmp_path: Path, ext: str)
agent/tests/test_doc_reader.py:38
Functiontest_config_hash_is_deterministic_independent_of_key_order
(tmp_path: Path)
agent/tests/test_run_card.py:16
Methodtest_config_order_applies
(self)
agent/tests/test_constraints.py:152
Methodtest_config_records_provenance_but_never_overwrites_the_caller
(self)
agent/tests/test_research_playbooks.py:383
Methodtest_config_visitor_clean
(self)
tools/test_ci_env_var_gate.py:150
Methodtest_configurable_lag_still_counts_from_newest
(self)
agent/tests/test_vietnam_equity_engine.py:201
Functiontest_configuration_problems_are_reported_together
()
agent/tests/test_argentina_equity_engine.py:83
Methodtest_configured_allowed_run_root_is_accepted
( self, isolated_home: Path, monkeypatch: pytest.MonkeyPatch, tmp_path: Path )
agent/tests/test_strategy_discovery_refresh.py:277
Functiontest_configured_api_key_accepts_bearer_for_sensitive_reads
( monkeypatch: pytest.MonkeyPatch, )
agent/tests/test_security_auth_api.py:158
Functiontest_configured_api_key_required_for_sensitive_reads
( monkeypatch: pytest.MonkeyPatch, )
agent/tests/test_security_auth_api.py:138
Functiontest_configured_api_key_required_for_session_event_stream
( monkeypatch: pytest.MonkeyPatch, )
agent/tests/test_security_auth_api.py:529
Functiontest_configured_api_key_takes_priority
(tmp_path, monkeypatch)
agent/tests/test_alpha_bench_cache.py:80
Functiontest_configured_delivery_keeps_raw_provider_target_out_of_public_payload
( monkeypatch, )
agent/tests/test_scheduled_research_confirmation.py:87
Methodtest_configured_fundamental_enrichment_failure_is_not_silent
Explicit statement-field requests should fail rather than degrade silently.
agent/tests/test_engine_robustness.py:305
Methodtest_configured_import_root_file_accepted
(self, tmp_path: Path, monkeypatch)
agent/tests/test_path_safety.py:53
Functiontest_configured_iqs_keeps_priority
(monkeypatch, adapter, _offline_sources)
agent/tests/test_parallel_search.py:118
Methodtest_configured_key_rejects_uncredentialed_requests
( self, method: str, path: str, rest_store: ScheduledResearchJobStore,
agent/tests/test_playbooks_surface.py:350
Methodtest_configured_leverage_is_not_reported_as_assumed
(self)
agent/tests/test_global_futures_pricing_assumptions.py:108
Methodtest_configured_run_id_accepted
(self, tmp_path: Path, monkeypatch)
agent/tests/test_path_safety.py:174
Methodtest_configured_run_root_accepted
(self, tmp_path: Path, monkeypatch)
agent/tests/test_path_safety.py:125
Methodtest_confirmation_declined_keeps_entry
(self, tmp_path: Path, capsys: pytest.CaptureFixture[str])
agent/tests/test_cli_memory.py:189
Functiontest_conflict_credentials_never_call_require_longbridge
is_available and fetch both exit before calling _require_longbridge.
agent/tests/test_longbridge_loader.py:397
Functiontest_conflicting_exact_recall_matches_do_not_pick_first
(tmp_path, monkeypatch)
agent/tests/test_gildata_boundaries.py:33
Methodtest_conflicting_identity_offers_no_recovery
(self, tmp_path: Path)
agent/tests/test_grounding_recovery.py:167
Functiontest_connect_failure_degrades_to_none
(monkeypatch)
agent/tests/test_baostock_socket_deadline.py:113
Functiontest_connection
Validate the email credentials with standalone IMAP + SMTP probes. Uses fresh ``imaplib`` / ``smtplib`` connections rather than the channel's
agent/src/channels/email_probe.py:166
Functiontest_connection
Validate the Slack credentials with a standalone two-leg probe. Uses fresh ``httpx.AsyncClient`` requests rather than the channel's ``slack_s
agent/src/channels/slack_probe.py:50
Functiontest_connection
Validate the QQ credentials with a standalone token request. Uses a fresh ``httpx.AsyncClient`` rather than the channel's shared client (whic
agent/src/channels/qq_probe.py:29
Functiontest_connection
Validate the Discord bot token with a standalone REST probe. Uses a fresh ``httpx.AsyncClient`` request rather than the channel's ``discord.p
agent/src/channels/discord_probe.py:51
Functiontest_connection
Validate the Feishu/Lark credentials with a standalone token request. Uses a fresh ``httpx.AsyncClient`` rather than any lark SDK client (which
agent/src/channels/feishu_probe.py:35
Functiontest_connection
Validate the DingTalk credentials with a standalone token request. Uses a fresh ``httpx.AsyncClient`` rather than the channel's shared client
agent/src/channels/dingtalk_probe.py:38
Functiontest_connection
Validate the WebSocket channel's local configuration. Runs the SSL-material and TCP-bind checks in a worker thread (both are blocking) and ne
agent/src/channels/websocket_probe.py:147
Methodtest_connection
Validate the DingTalk credentials with a standalone token request. Delegates to :func:`src.channels.dingtalk_probe.test_connection`; see
agent/src/channels/dingtalk.py:323
Methodtest_connection
Validate the email credentials with a standalone IMAP + SMTP probe. Delegates to :func:`src.channels.email_probe.test_connection`; see
agent/src/channels/email.py:257
Methodtest_connection
Validate the Feishu credentials with a standalone token request. Delegates to :func:`src.channels.feishu_probe.test_connection`; see
agent/src/channels/feishu.py:867
Methodtest_connection
Probe this channel's credentials without starting it. Default implementation reports ``unsupported``; adapters that can validate cred
agent/src/channels/base.py:77
Methodtest_connection
Validate the Slack credentials with a standalone two-leg probe. Delegates to :func:`src.channels.slack_probe.test_connection`; see th
agent/src/channels/slack.py:162
Methodtest_connection
Validate the Discord bot token with a standalone REST probe. Delegates to :func:`src.channels.discord_probe.test_connection`; see tha
agent/src/channels/discord.py:481
Methodtest_connection
Validate the WebSocket local configuration with a standalone probe. Delegates to :func:`src.channels.websocket_probe.test_connection`; see
agent/src/channels/websocket.py:370
Functiontest_connection_error_fails_closed
(tap_env, monkeypatch)
agent/tests/test_tap_forward.py:73
Functiontest_connection_list_isolates_invalid_gateway_config
(ibkr_endpoint_client, tmp_path, connector, filename)
agent/tests/test_connection_routes.py:304
Functiontest_connection_modules_import_without_keyring_installed
Connection metadata must stay importable on a base install. Runs in a child process because re-importing these modules in the test process wo
agent/tests/test_local_connections_hardening.py:171
Functiontest_connection_registry_never_serializes_credentials
(tmp_path)
agent/tests/test_local_connections.py:28
Functiontest_connection_registry_normalizes_ids_before_duplicate_checks
(tmp_path)
agent/tests/test_local_connections.py:45
Functiontest_connection_registry_rejects_control_characters_in_labels
(tmp_path)
agent/tests/test_local_connections.py:58
Functiontest_connection_routes_create_list_and_check_without_returning_secrets
( tmp_path, monkeypatch, )
agent/tests/test_connection_routes.py:78
Functiontest_connection_routes_reject_credentials_not_declared_by_profile
(tmp_path, monkeypatch)
agent/tests/test_connection_routes.py:133
Functiontest_connection_scoped_overrides_obey_the_connector_allowlist
A vault-backed call must not widen what a caller may override. Every SDK connector narrows overrides on purpose: OKX and Binance both exclude
agent/tests/test_local_connections.py:245
Functiontest_connection_test_keeps_echoed_url_credentials
(tmp_path, monkeypatch)
agent/tests/test_channels_config_api.py:669
Functiontest_connector_account_renders_balances_table
(capsys)
agent/tests/test_cli_connector_renderers.py:57
Functiontest_connector_account_renders_ccxt_asset_balances
#1539: Binance spot rows are asset/free/used/total, not Longbridge's keys.
agent/tests/test_cli_connector_renderers.py:81
Functiontest_connector_account_renders_direct_sdk_account_mapping
(capsys)
agent/tests/test_cli_connector_renderers.py:180
Functiontest_connector_account_renders_futu_assets
#1539: Futu's accinfo_query rows arrive as ``assets``, not ``balances``.
agent/tests/test_cli_connector_renderers.py:112
Functiontest_connector_account_renders_trading212_cash_and_metadata
#1539: Trading 212 splits the account into ``cash`` and ``metadata`` mappings.
agent/tests/test_cli_connector_renderers.py:146
Functiontest_connector_account_still_handles_ibkr_summary
(capsys)
agent/tests/test_cli_connector_renderers.py:165
Methodtest_connector_bridges_to_dispatch_connector
(self)
agent/tests/test_cli_runtime.py:488
Functiontest_connector_check_uses_sdk_diagnostics_without_oauth_rows
(capsys)
agent/tests/test_cli_connector_renderers.py:210
Functiontest_connector_observation_normalizer_fails_closed
( observation: dict[str, object], )
agent/tests/test_binance_account_reconciliation.py:181
Functiontest_connector_observation_normalizes_into_frozen_snapshot
()
agent/tests/test_binance_account_reconciliation.py:121
Functiontest_connector_orders_keeps_class_b_ticker_intact
(capsys)
agent/tests/test_cli_connector_renderers.py:293
Functiontest_connector_orders_renders_flat_broker_sdk_row
(capsys)
agent/tests/test_cli_connector_renderers.py:262
Functiontest_connector_orders_still_renders_the_nested_ibkr_row
(capsys)
agent/tests/test_cli_connector_renderers.py:317
Functiontest_connector_path_resolves_longbridge_credentials_from_dotenv
Credentials living only in the ``.env`` file resolve after a dispatch.
agent/tests/test_cli_connector_env.py:49
Functiontest_connector_place_order_rejects_bad_side
(connector)
agent/tests/test_sdk_order_gate.py:982
Functiontest_connector_place_order_rejects_both_qty_and_notional
(connector)
agent/tests/test_sdk_order_gate.py:992
← previousnext →16,401–16,500 of 26,887, ranked by callers