MCPcopy Create free account

hub / github.com/TencentCloud/Octop / functions

Functions12,485 in github.com/TencentCloud/Octop

Functiontest_save_rejects_invalid_yaml
(rules_store: ToolGuardRulesStore)
tests/unit/test_tool_guard_rules_store.py:25
Functiontest_save_round_trip
()
tests/unit/test_security_settings.py:23
Functiontest_save_security_rebuilds_running_harness_agent
(manager: AgentManager)
tests/unit/agents/test_agent_manager.py:886
Functiontest_save_then_load_roundtrip
(tmp_path: Path)
tests/unit/test_cli_state.py:16
Functiontest_save_valid_rule_and_reload_catalog
(rules_store: ToolGuardRulesStore)
tests/unit/test_tool_guard_rules_store.py:32
Functiontest_schedule_replaces_existing_job
_schedule() removes the old APScheduler job before adding the new one.
tests/unit/cron/test_cron_manager.py:663
Functiontest_schedule_runs_linux_ensure_in_background
(monkeypatch: pytest.MonkeyPatch)
tests/unit/test_launch_bwrap.py:23
Functiontest_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
Functiontest_schedule_skips_non_linux
( monkeypatch: pytest.MonkeyPatch, platform: str, )
tests/unit/test_launch_bwrap.py:14
Functiontest_scheduler_cancel_stops_task
cancel should stop the scheduled task.
tests/unit/proactive/test_scheduler.py:292
Functiontest_scheduler_reschedule_disabled
reschedule should cancel the task when enabled=false.
tests/unit/proactive/test_scheduler.py:324
Functiontest_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
Functiontest_scheduler_start_all_no_enabled
start_all should not create tasks when no agent is enabled.
tests/unit/proactive/test_scheduler.py:353
Functiontest_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
Functiontest_scoped_default_persists_agent_facing_path
(tmp_path: Path)
tests/unit/agents/test_workspace_dir.py:32
Functiontest_score_higher_intensity_wins
Higher intensity should score higher for the same emotion.
tests/unit/proactive/test_picker.py:115
Functiontest_score_negative_emotion_higher_than_positive
Negative episodes should outscore positive episodes at equal intensity and recency.
tests/unit/proactive/test_picker.py:107
Functiontest_score_recent_wins_over_old
More recent episodes should score higher for the same emotion and intensity.
tests/unit/proactive/test_picker.py:123
Functiontest_screenrecord_args_include_display_id
()
tests/unit/mobile/test_h264.py:75
Functiontest_script_path_from_env_rejects_outside_bundle
(tmp_path, monkeypatch)
tests/unit/desktop/test_setup.py:148
Functiontest_scrollback_preserves_order_under_limit
()
tests/unit/api/test_terminal_sessions.py:91
Functiontest_scrollback_trims_to_max
()
tests/unit/api/test_terminal_sessions.py:83
Functiontest_search_env_changed_detects_tavily
()
tests/unit/test_env_file.py:82
Functiontest_search_knowledge_default_description_is_empty_catalog_fallback
()
tests/unit/knowledge/test_knowledge_tools.py:31
Functiontest_search_knowledge_empty_hits_message
()
tests/unit/knowledge/test_knowledge_tools.py:81
Functiontest_search_knowledge_requires_kb_and_cursor
( monkeypatch: pytest.MonkeyPatch, )
tests/unit/connectors/test_tencent_ima.py:163
Functiontest_search_knowledge_requires_selected_bases
()
tests/unit/knowledge/test_knowledge_tools.py:37
Functiontest_search_knowledge_returns_retrieved_context
()
tests/unit/knowledge/test_knowledge_tools.py:50
Functiontest_search_notes_content_type
(monkeypatch: pytest.MonkeyPatch)
tests/unit/connectors/test_tencent_ima.py:87
Functiontest_search_provider
( provider_id: str, body: TestSearchRequest, _: Any = Depends(require_permission("search")), )
src/octop/api/routers/search.py:46
Functiontest_search_skillhub_uses_http_api_and_preserves_rich_fields
( monkeypatch: pytest.MonkeyPatch, )
tests/unit/agents/test_skillhub_http_market.py:40
Functiontest_search_test_requires_auth
(env: Any)
tests/integration/test_search_api.py:9
Functiontest_search_test_tavily_ok
(env: Any)
tests/integration/test_search_api.py:29
Functiontest_search_test_unknown_provider
(env: Any)
tests/integration/test_search_api.py:15
Methodtest_second_option
(self)
tests/unit/gateway/test_hitl_ask_user.py:172
Functiontest_second_publish_of_same_source_is_rejected
( env: tuple[Any, Any, dict[str, str]], )
tests/integration/test_published_experts.py:371
Functiontest_secondary_carrier_rejects_guideline_interpretation
()
tests/unit/agents/test_clinical_learning_subscription_template.py:436
Functiontest_secondary_fulltext_requires_primary_metadata_pair
(url: str)
tests/unit/agents/test_clinical_learning_subscription_template.py:413
Functiontest_secret_get_or_create
(secrets: SecretRepo)
tests/unit/db/test_repo_secret_audit.py:33
Functiontest_secret_rotate
(secrets: SecretRepo)
tests/unit/db/test_repo_secret_audit.py:41
Functiontest_security_policy_save
( env_admin_client: tuple[httpx.AsyncClient, dict[str, str]], )
tests/integration/test_security_api.py:14
Functiontest_security_policy_save_with_running_agent
Saving policy rebuilds harness agents without failing the HTTP request.
tests/integration/test_security_api.py:53
Functiontest_seed_adds_new_bundled_id
(tmp_path: Path)
tests/unit/test_plugin_seed.py:123
Functiontest_seed_copies_and_disables
(tmp_path: Path)
tests/unit/test_plugin_seed.py:41
Functiontest_seed_does_not_overwrite_same_version
(tmp_path: Path)
tests/unit/test_plugin_seed.py:58
Functiontest_seed_does_not_recreate_after_uninstall
(tmp_path: Path)
tests/unit/test_plugin_seed.py:103
Functiontest_seed_expert_directory_includes_manifest
()
tests/unit/api/test_chat_welcome.py:77
Functiontest_seed_expert_template_writes_workspace_files
( manager: AgentManager, tmp_path: Path )
tests/unit/agents/test_agent_manager.py:1128
Functiontest_seed_real_bundled_plugins_are_disabled
(tmp_path: Path)
tests/unit/test_bundled_plugins_layout.py:43
Functiontest_seed_refreshes_when_bundled_version_newer
(tmp_path: Path)
tests/unit/test_plugin_seed.py:75
Functiontest_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
Functiontest_segment_keys_match_harness_when_available
()
tests/unit/agents/test_context_breakdown.py:22
Functiontest_segment_keys_stable
()
tests/unit/agents/test_context_breakdown.py:16
Functiontest_select_download_source_all_unreachable_falls_back
()
tests/unit/mobile/test_docker_install.py:76
Functiontest_select_download_source_mirror_wins
()
tests/unit/mobile/test_docker_install.py:60
Functiontest_select_download_source_official_wins_no_override
()
tests/unit/mobile/test_docker_install.py:44
Functiontest_select_returns_selected_value
(monkeypatch: pytest.MonkeyPatch)
tests/unit/cli/test_prompts.py:10
Functiontest_serialize_history_drops_dumped_image_ref_json_text
()
tests/unit/api/test_chat_polish.py:515
Functiontest_serialize_history_exposes_inbound_attachments
()
tests/unit/gateway/test_attachment_hints.py:336
Functiontest_serialize_history_message_drops_image_offload_placeholder_for_image_user
()
tests/unit/api/test_chat_polish.py:300
Functiontest_serialize_history_message_drops_placeholder_for_en_locale
()
tests/unit/api/test_chat_polish.py:364
Functiontest_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
Functiontest_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
Functiontest_serialize_history_message_falls_back_to_created_at
()
tests/unit/api/test_chat_polish.py:217
Functiontest_serialize_history_message_includes_checkpoint_timestamp
()
tests/unit/api/test_chat_polish.py:193
Functiontest_serialize_history_message_includes_checkpoint_timestamp_for_tool
()
tests/unit/api/test_chat_polish.py:204
Functiontest_serialize_history_message_includes_thinking_and_tools
()
tests/unit/api/test_chat_polish.py:24
Functiontest_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
Functiontest_serialize_history_message_keeps_user_caption_alongside_image_placeholder
()
tests/unit/api/test_chat_polish.py:328
Functiontest_serialize_history_message_prefers_checkpoint_ts_over_created_at
()
tests/unit/api/test_chat_polish.py:226
Functiontest_serialize_history_message_splits_redacted_thinking
()
tests/unit/api/test_chat_polish.py:111
Functiontest_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
Functiontest_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
Functiontest_service_help_lists_commands
()
tests/unit/cli/test_service_cmd.py:38
Functiontest_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
Functiontest_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
Functiontest_service_run_no_memory
Should skip push without raising when memory is disabled.
tests/unit/proactive/test_proactive_service.py:284
Functiontest_service_run_push_failure
Should not write dedup records or raise when push fails.
tests/unit/proactive/test_proactive_service.py:206
Functiontest_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
Functiontest_service_run_success
Successful flow: episodes exist, LLM succeeds, push succeeds, dedup records are written.
tests/unit/proactive/test_proactive_service.py:146
Functiontest_service_run_truncates_long_text
Care messages longer than 200 characters should be truncated.
tests/unit/proactive/test_proactive_service.py:226
Functiontest_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
Functiontest_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
Functiontest_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
Functiontest_service_start_installs_and_starts
(monkeypatch: pytest.MonkeyPatch, tmp_path: Path)
tests/unit/cli/test_service_cmd.py:46
Functiontest_service_status_exits_when_health_unreachable
( monkeypatch: pytest.MonkeyPatch, tmp_path: Path )
tests/unit/cli/test_service_cmd.py:149
Functiontest_service_status_rejects_garbage_scope
Click-level validation — unknown scopes never reach build_runtime.
tests/unit/cli/test_service_cmd.py:243
Functiontest_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
Functiontest_session_channel_id_persisted
(repos)
tests/unit/db/test_repo_sessions_threads.py:50
Functiontest_session_defaults
()
tests/unit/api/test_terminal_sessions.py:98
Functiontest_session_to_channel_subject
(repos)
tests/unit/db/test_repo_sessions_threads.py:76
Functiontest_session_unread_count
(repos)
tests/unit/db/test_repo_sessions_threads.py:120
Functiontest_session_upsert_and_get
(repos)
tests/unit/db/test_repo_sessions_threads.py:27
Functiontest_sessions_alias_in_catalog
()
tests/unit/gateway/test_slash_help.py:29
Functiontest_sessions_keyed_by_agent_and_sid
()
tests/unit/api/test_terminal_sessions.py:107
Functiontest_set_active_edge_tts_only
(voice_mgr: VoiceManager)
tests/unit/test_voice_manager.py:31
Functiontest_set_email_and_clear
(manager: UserManager)
tests/unit/test_user_manager.py:103
Functiontest_set_enabled_preserves_unrelated_keys
(tmp_path: Path)
tests/unit/test_plugin_manager.py:309
Functiontest_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
Functiontest_set_enabled_roundtrip
(tmp_path: Path)
tests/unit/test_plugin_manager.py:65
← previousnext →11,601–11,700 of 12,485, ranked by callers