Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/TencentCloud/Octop
/ functions
Functions
12,485 in github.com/TencentCloud/Octop
⨍
Functions
12,485
◇
Types & classes
1,527
↳
Endpoints
468
Function
test_save_rejects_invalid_yaml
(rules_store: ToolGuardRulesStore)
tests/unit/test_tool_guard_rules_store.py:25
Function
test_save_round_trip
()
tests/unit/test_security_settings.py:23
Function
test_save_security_rebuilds_running_harness_agent
(manager: AgentManager)
tests/unit/agents/test_agent_manager.py:886
Function
test_save_then_load_roundtrip
(tmp_path: Path)
tests/unit/test_cli_state.py:16
Function
test_save_valid_rule_and_reload_catalog
(rules_store: ToolGuardRulesStore)
tests/unit/test_tool_guard_rules_store.py:32
Function
test_schedule_replaces_existing_job
_schedule() removes the old APScheduler job before adding the new one.
tests/unit/cron/test_cron_manager.py:663
Function
test_schedule_runs_linux_ensure_in_background
(monkeypatch: pytest.MonkeyPatch)
tests/unit/test_launch_bwrap.py:23
Function
test_schedule_skips_invalid_trigger_gracefully
_schedule() logs a warning but does not raise for bad trigger specs.
tests/unit/cron/test_cron_manager.py:640
Function
test_schedule_skips_non_linux
( monkeypatch: pytest.MonkeyPatch, platform: str, )
tests/unit/test_launch_bwrap.py:14
Function
test_scheduler_cancel_stops_task
cancel should stop the scheduled task.
tests/unit/proactive/test_scheduler.py:292
Function
test_scheduler_reschedule_disabled
reschedule should cancel the task when enabled=false.
tests/unit/proactive/test_scheduler.py:324
Function
test_scheduler_start_all_includes_default_on_agent
start_all should schedule agents that never saved a proactive-care row.
tests/unit/proactive/test_scheduler.py:372
Function
test_scheduler_start_all_no_enabled
start_all should not create tasks when no agent is enabled.
tests/unit/proactive/test_scheduler.py:353
Function
test_schema_v10_without_projection_tables_is_repaired
DBs that bumped to v10 via a colliding 010 file still get projection tables.
tests/unit/db/test_db_pool.py:313
Function
test_scoped_default_persists_agent_facing_path
(tmp_path: Path)
tests/unit/agents/test_workspace_dir.py:32
Function
test_score_higher_intensity_wins
Higher intensity should score higher for the same emotion.
tests/unit/proactive/test_picker.py:115
Function
test_score_negative_emotion_higher_than_positive
Negative episodes should outscore positive episodes at equal intensity and recency.
tests/unit/proactive/test_picker.py:107
Function
test_score_recent_wins_over_old
More recent episodes should score higher for the same emotion and intensity.
tests/unit/proactive/test_picker.py:123
Function
test_screenrecord_args_include_display_id
()
tests/unit/mobile/test_h264.py:75
Function
test_script_path_from_env_rejects_outside_bundle
(tmp_path, monkeypatch)
tests/unit/desktop/test_setup.py:148
Function
test_scrollback_preserves_order_under_limit
()
tests/unit/api/test_terminal_sessions.py:91
Function
test_scrollback_trims_to_max
()
tests/unit/api/test_terminal_sessions.py:83
Function
test_search_env_changed_detects_tavily
()
tests/unit/test_env_file.py:82
Function
test_search_knowledge_default_description_is_empty_catalog_fallback
()
tests/unit/knowledge/test_knowledge_tools.py:31
Function
test_search_knowledge_empty_hits_message
()
tests/unit/knowledge/test_knowledge_tools.py:81
Function
test_search_knowledge_requires_kb_and_cursor
( monkeypatch: pytest.MonkeyPatch, )
tests/unit/connectors/test_tencent_ima.py:163
Function
test_search_knowledge_requires_selected_bases
()
tests/unit/knowledge/test_knowledge_tools.py:37
Function
test_search_knowledge_returns_retrieved_context
()
tests/unit/knowledge/test_knowledge_tools.py:50
Function
test_search_notes_content_type
(monkeypatch: pytest.MonkeyPatch)
tests/unit/connectors/test_tencent_ima.py:87
Function
test_search_provider
( provider_id: str, body: TestSearchRequest, _: Any = Depends(require_permission("search")), )
src/octop/api/routers/search.py:46
Function
test_search_skillhub_uses_http_api_and_preserves_rich_fields
( monkeypatch: pytest.MonkeyPatch, )
tests/unit/agents/test_skillhub_http_market.py:40
Function
test_search_test_requires_auth
(env: Any)
tests/integration/test_search_api.py:9
Function
test_search_test_tavily_ok
(env: Any)
tests/integration/test_search_api.py:29
Function
test_search_test_unknown_provider
(env: Any)
tests/integration/test_search_api.py:15
Method
test_second_option
(self)
tests/unit/gateway/test_hitl_ask_user.py:172
Function
test_second_publish_of_same_source_is_rejected
( env: tuple[Any, Any, dict[str, str]], )
tests/integration/test_published_experts.py:371
Function
test_secondary_carrier_rejects_guideline_interpretation
()
tests/unit/agents/test_clinical_learning_subscription_template.py:436
Function
test_secondary_fulltext_requires_primary_metadata_pair
(url: str)
tests/unit/agents/test_clinical_learning_subscription_template.py:413
Function
test_secret_get_or_create
(secrets: SecretRepo)
tests/unit/db/test_repo_secret_audit.py:33
Function
test_secret_rotate
(secrets: SecretRepo)
tests/unit/db/test_repo_secret_audit.py:41
Function
test_security_policy_save
( env_admin_client: tuple[httpx.AsyncClient, dict[str, str]], )
tests/integration/test_security_api.py:14
Function
test_security_policy_save_with_running_agent
Saving policy rebuilds harness agents without failing the HTTP request.
tests/integration/test_security_api.py:53
Function
test_seed_adds_new_bundled_id
(tmp_path: Path)
tests/unit/test_plugin_seed.py:123
Function
test_seed_copies_and_disables
(tmp_path: Path)
tests/unit/test_plugin_seed.py:41
Function
test_seed_does_not_overwrite_same_version
(tmp_path: Path)
tests/unit/test_plugin_seed.py:58
Function
test_seed_does_not_recreate_after_uninstall
(tmp_path: Path)
tests/unit/test_plugin_seed.py:103
Function
test_seed_expert_directory_includes_manifest
()
tests/unit/api/test_chat_welcome.py:77
Function
test_seed_expert_template_writes_workspace_files
( manager: AgentManager, tmp_path: Path )
tests/unit/agents/test_agent_manager.py:1128
Function
test_seed_real_bundled_plugins_are_disabled
(tmp_path: Path)
tests/unit/test_bundled_plugins_layout.py:43
Function
test_seed_refreshes_when_bundled_version_newer
(tmp_path: Path)
tests/unit/test_plugin_seed.py:75
Function
test_seed_refuses_corrupt_config_and_preserves_bytes
issue #730: seeding always writes back, so a corrupt file must not read as ``{}``.
tests/unit/test_plugin_seed.py:178
Function
test_segment_keys_match_harness_when_available
()
tests/unit/agents/test_context_breakdown.py:22
Function
test_segment_keys_stable
()
tests/unit/agents/test_context_breakdown.py:16
Function
test_select_download_source_all_unreachable_falls_back
()
tests/unit/mobile/test_docker_install.py:76
Function
test_select_download_source_mirror_wins
()
tests/unit/mobile/test_docker_install.py:60
Function
test_select_download_source_official_wins_no_override
()
tests/unit/mobile/test_docker_install.py:44
Function
test_select_returns_selected_value
(monkeypatch: pytest.MonkeyPatch)
tests/unit/cli/test_prompts.py:10
Function
test_serialize_history_drops_dumped_image_ref_json_text
()
tests/unit/api/test_chat_polish.py:515
Function
test_serialize_history_exposes_inbound_attachments
()
tests/unit/gateway/test_attachment_hints.py:336
Function
test_serialize_history_message_drops_image_offload_placeholder_for_image_user
()
tests/unit/api/test_chat_polish.py:300
Function
test_serialize_history_message_drops_placeholder_for_en_locale
()
tests/unit/api/test_chat_polish.py:364
Function
test_serialize_history_message_drops_workspace_image_ref
Path-only vision refs are history noise when inbound_attachments is set.
tests/unit/api/test_chat_polish.py:460
Function
test_serialize_history_message_drops_zip_path_hint
Zip/file path hints must not appear as user-authored history text.
tests/unit/api/test_chat_polish.py:434
Function
test_serialize_history_message_falls_back_to_created_at
()
tests/unit/api/test_chat_polish.py:217
Function
test_serialize_history_message_includes_checkpoint_timestamp
()
tests/unit/api/test_chat_polish.py:193
Function
test_serialize_history_message_includes_checkpoint_timestamp_for_tool
()
tests/unit/api/test_chat_polish.py:204
Function
test_serialize_history_message_includes_thinking_and_tools
()
tests/unit/api/test_chat_polish.py:24
Function
test_serialize_history_message_keeps_placeholder_when_no_image_attachment
Without inbound_attachments, the placeholder is the only sign of media.
tests/unit/api/test_chat_polish.py:353
Function
test_serialize_history_message_keeps_user_caption_alongside_image_placeholder
()
tests/unit/api/test_chat_polish.py:328
Function
test_serialize_history_message_prefers_checkpoint_ts_over_created_at
()
tests/unit/api/test_chat_polish.py:226
Function
test_serialize_history_message_splits_redacted_thinking
()
tests/unit/api/test_chat_polish.py:111
Function
test_serialize_history_splits_caption_from_stringified_image_ref
Session JSONL joins caption + json.dumps(image_url) — must not show as text.
tests/unit/api/test_chat_polish.py:528
Function
test_serialize_history_synthesizes_attachment_from_workspace_image_ref
Even without inbound_attachments, path refs become thumbnails — not JSON text.
tests/unit/api/test_chat_polish.py:488
Function
test_service_help_lists_commands
()
tests/unit/cli/test_service_cmd.py:38
Function
test_service_run_llm_failure
Should not push, write dedup records, or raise when the LLM call fails.
tests/unit/proactive/test_proactive_service.py:186
Function
test_service_run_no_episodes
Should skip push, LLM calls, and dedup writes when there are no episodes.
tests/unit/proactive/test_proactive_service.py:166
Function
test_service_run_no_memory
Should skip push without raising when memory is disabled.
tests/unit/proactive/test_proactive_service.py:284
Function
test_service_run_push_failure
Should not write dedup records or raise when push fails.
tests/unit/proactive/test_proactive_service.py:206
Function
test_service_run_soul_md_failure_uses_default_prompt
Should use the default prompt and continue when SOUL.md cannot be read.
tests/unit/proactive/test_proactive_service.py:259
Function
test_service_run_success
Successful flow: episodes exist, LLM succeeds, push succeeds, dedup records are written.
tests/unit/proactive/test_proactive_service.py:146
Function
test_service_run_truncates_long_text
Care messages longer than 200 characters should be truncated.
tests/unit/proactive/test_proactive_service.py:226
Function
test_service_start_applies_unit_when_rewritten
Rewriting the unit (e.g. LimitNOFILE) must bounce systemd so the new cap applies.
tests/unit/cli/test_service_cmd.py:82
Function
test_service_start_emits_diagnostic_hint_when_health_unreachable
On health-check failure, surface a hint pointing to the service logs so users don't have to dig through launchd/systemd docs.
tests/unit/cli/test_service_cmd.py:116
Function
test_service_start_forwards_user_scope
`--scope user` must reach build_runtime so the user-domain path is used.
tests/unit/cli/test_service_cmd.py:176
Function
test_service_start_installs_and_starts
(monkeypatch: pytest.MonkeyPatch, tmp_path: Path)
tests/unit/cli/test_service_cmd.py:46
Function
test_service_status_exits_when_health_unreachable
( monkeypatch: pytest.MonkeyPatch, tmp_path: Path )
tests/unit/cli/test_service_cmd.py:149
Function
test_service_status_rejects_garbage_scope
Click-level validation — unknown scopes never reach build_runtime.
tests/unit/cli/test_service_cmd.py:243
Function
test_service_status_shows_plist_and_domain
`status` must report plist path and launchd domain so users can see which scope is being inspected.
tests/unit/cli/test_service_cmd.py:213
Function
test_session_channel_id_persisted
(repos)
tests/unit/db/test_repo_sessions_threads.py:50
Function
test_session_defaults
()
tests/unit/api/test_terminal_sessions.py:98
Function
test_session_to_channel_subject
(repos)
tests/unit/db/test_repo_sessions_threads.py:76
Function
test_session_unread_count
(repos)
tests/unit/db/test_repo_sessions_threads.py:120
Function
test_session_upsert_and_get
(repos)
tests/unit/db/test_repo_sessions_threads.py:27
Function
test_sessions_alias_in_catalog
()
tests/unit/gateway/test_slash_help.py:29
Function
test_sessions_keyed_by_agent_and_sid
()
tests/unit/api/test_terminal_sessions.py:107
Function
test_set_active_edge_tts_only
(voice_mgr: VoiceManager)
tests/unit/test_voice_manager.py:31
Function
test_set_email_and_clear
(manager: UserManager)
tests/unit/test_user_manager.py:103
Function
test_set_enabled_preserves_unrelated_keys
(tmp_path: Path)
tests/unit/test_plugin_manager.py:309
Function
test_set_enabled_refuses_corrupt_config_and_preserves_bytes
issue #730: the dashboard toggle must not wipe an unparseable config.json.
tests/unit/test_plugin_manager.py:294
Function
test_set_enabled_roundtrip
(tmp_path: Path)
tests/unit/test_plugin_manager.py:65
← previous
next →
11,601–11,700 of 12,485, ranked by callers