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_resolve_venv_python_prefers_octop_home
( monkeypatch: pytest.MonkeyPatch, tmp_path: Path )
tests/unit/cli/test_update_cmd.py:138
Function
test_resolve_workspace_dir_backfills_legacy_row
(manager: AgentManager)
tests/unit/agents/test_agent_manager.py:1075
Function
test_resolve_workspace_dir_uses_persisted_path
(manager: AgentManager, tmp_path: Path)
tests/unit/agents/test_agent_manager.py:1063
Function
test_resolve_yesterday_local
()
tests/unit/db/test_usage_window.py:45
Method
test_resolved_pending_not_routed
(self)
tests/unit/gateway/test_hitl_ask_user.py:254
Method
test_resolves_ask_pending
(self)
tests/unit/gateway/test_hitl_ask_user.py:218
Method
test_respond
(self)
tests/unit/api/test_hitl_resume_validation.py:25
Method
test_respond_on_approval_tool_rejected
(self)
tests/unit/gateway/test_hitl_ask_user.py:319
Method
test_respond_on_ask_tool_accepted
(self)
tests/unit/gateway/test_hitl_ask_user.py:314
Method
test_respond_with_blank_message
(self)
tests/unit/api/test_hitl_resume_validation.py:56
Method
test_respond_without_message
(self)
tests/unit/api/test_hitl_resume_validation.py:52
Function
test_response_mode_defaults_to_invoke_and_accepts_stream
()
tests/unit/gateway/test_response_mode.py:107
Function
test_restart_endpoint_desktop_schedules_process_exec
( monkeypatch: pytest.MonkeyPatch, )
tests/unit/api/test_update_router.py:134
Function
test_restart_endpoint_rejects_when_service_not_installed
( monkeypatch: pytest.MonkeyPatch, )
tests/unit/api/test_update_router.py:102
Function
test_restart_endpoint_schedules_background_restart
( monkeypatch: pytest.MonkeyPatch, )
tests/unit/api/test_update_router.py:67
Function
test_restart_keeps_committed_partial_content
(archive)
tests/unit/gateway/test_versioned_history.py:281
Function
test_restart_service_refreshes_unit
(monkeypatch: pytest.MonkeyPatch, tmp_path: Path)
tests/unit/infra/setup/test_service.py:269
Function
test_restart_service_requires_install
(tmp_path: Path)
tests/unit/infra/setup/test_service.py:380
Function
test_restart_service_still_restarts_when_install_fails
Remote upgrades only `restart`; drop-in/sudo failures must not leave the process down.
tests/unit/infra/setup/test_service.py:300
Function
test_restart_service_waits_for_startup
restart must apply the same startup grace as start, otherwise the health probe races the new process.
tests/unit/infra/setup/test_service.py:654
Function
test_restore_backup_file_rehydrates_providers_channels_and_cron
After restore, sync providers/agents, channels, and cron without process restart.
tests/unit/api/test_backup_restore_rehydrate.py:17
Function
test_restore_backup_file_skips_rehydrate_without_runtime
( monkeypatch: pytest.MonkeyPatch, )
tests/unit/api/test_backup_restore_rehydrate.py:66
Function
test_restore_backup_rejects_when_lock_held
(monkeypatch: pytest.MonkeyPatch)
tests/unit/api/test_backup_restore_rehydrate.py:195
Function
test_restore_repairs_old_physical_schema_with_current_watermark
Restore runs idempotent repairs when a folded migration number is unchanged.
tests/unit/backup/test_system_archive.py:1128
Function
test_restore_replaces_stale_knowledge_files
(layout: PathLayout, tmp_path: Path)
tests/unit/backup/test_system_archive.py:741
Function
test_restore_replaces_stale_plugin_files
(layout: PathLayout, tmp_path: Path)
tests/unit/backup/test_system_archive.py:690
Function
test_restore_replaces_stale_skill_package_files
(layout: PathLayout, tmp_path: Path)
tests/unit/backup/test_system_archive.py:794
Function
test_restore_skips_chat_workspace_files_when_manifest_omits_chats
( tmp_path: Path, )
tests/unit/backup/test_system_archive.py:434
Function
test_restore_without_chats_remaps_user_ids_by_username
(tmp_path: Path)
tests/unit/backup/test_system_archive.py:350
Function
test_restore_without_skill_packages_keeps_live_files
( layout: PathLayout, tmp_path: Path )
tests/unit/backup/test_system_archive.py:635
Function
test_resume_pending_index_jobs_resets_processing_and_enqueues
( tmp_path: Path, monkeypatch: pytest.MonkeyPatch )
tests/unit/knowledge/test_jobs.py:172
Function
test_resume_picks_previous
(dispatcher, ctx)
tests/unit/gateway/test_slash_dispatcher.py:168
Function
test_resume_wizard_after_admin_created
(env: Any)
tests/integration/test_setup_wizard.py:258
Function
test_retrieve_context_filters_unreadable_knowledge_base
(tmp_path, monkeypatch)
tests/unit/knowledge/test_retrieve.py:18
Function
test_retrieve_context_skips_empty_non_text_turn
()
tests/unit/knowledge/test_retrieve.py:70
Function
test_returns_refreshed_skill_count_for_multiple_skills
(store: SkillPackageStore)
tests/unit/skills/test_skill_package_from_skillhub.py:90
Function
test_revised_state_message_keeps_latest_tool_metadata
(archive)
tests/unit/gateway/test_versioned_history.py:440
Function
test_right_mousedown_uses_right_button_mask
()
tests/unit/api/test_browser_stream_mouse.py:131
Function
test_role_values
()
tests/unit/test_identity.py:10
Function
test_rollback_adds_legacy_interval_without_losing_v2
(archive)
tests/unit/gateway/test_versioned_history.py:187
Function
test_root_help_does_not_import_subcommand_modules
`octop --help` must not import individual command modules eagerly.
tests/unit/test_cli_main.py:167
Function
test_root_help_lists_global_options
Plan §13.1 mandates root-level --user / --agent / --json options.
tests/unit/test_cli_main.py:70
Function
test_root_help_lists_groups
()
tests/unit/test_cli_main.py:10
Function
test_root_listing_entry_keeps_basename_only
()
tests/unit/api/test_workspace_tree_entries.py:8
Function
test_root_paths
(tmp_path: Path)
tests/unit/test_paths.py:10
Function
test_root_serves_dashboard_index
(tmp_octop_home: Path)
tests/integration/test_dashboard_serve.py:15
Function
test_root_version_flag
()
tests/unit/cli/test_version_cmd.py:24
Function
test_round_trip_preserves_structure
()
tests/unit/utils/test_doc_edit.py:99
Function
test_roundtrip_backup
(layout: PathLayout, tmp_path: Path)
tests/unit/backup/test_system_archive.py:62
Function
test_router_is_mounted
Smoke: ``/agents/{aid}/terminal/ws`` is in the FastAPI route table.
tests/integration/test_terminal_ws.py:23
Function
test_row_for_probe_merges_secrets_from_base
()
tests/unit/test_storage_browse.py:35
Function
test_row_for_probe_overrides_secrets_when_provided
()
tests/unit/test_storage_browse.py:53
Function
test_row_payload_includes_has_original
(tmp_path: Path, monkeypatch: pytest.MonkeyPatch)
tests/unit/api/test_knowledge_bases.py:340
Function
test_row_to_backend_spec_docker
()
tests/unit/test_storage_spec.py:122
Function
test_row_to_backend_spec_opensandbox
()
tests/unit/test_storage_spec.py:92
Function
test_run_cli_args_override_config
Explicit CLI flags take precedence over config.json.
tests/unit/cli/test_run_cmd.py:83
Function
test_run_cli_on_corrupt_config_refuses_and_preserves_file
POC regression: ``octop run --port`` used to wipe config.json to one key.
tests/unit/cli/test_run_bind_resolution.py:112
Function
test_run_dispatches_to_uvicorn
(monkeypatch: pytest.MonkeyPatch)
tests/unit/cli/test_run_cmd.py:33
Function
test_run_does_not_overwrite_corrupt_config
A corrupt config.json is preserved byte-for-byte, never rewritten as empty. Supersedes the old "treat a malformed file as empty so the next run r
tests/unit/cli/test_run_cmd.py:225
Function
test_run_help_lists_finnie_aligned_flags
()
tests/unit/cli/test_run_cmd.py:16
Function
test_run_merges_with_existing_config
Saving host/port must not clobber unrelated keys in config.json.
tests/unit/cli/test_run_cmd.py:165
Function
test_run_migrations_creates_tables
(db: SqlitePool)
tests/unit/db/test_db_pool.py:36
Function
test_run_migrations_idempotent
(db: SqlitePool)
tests/unit/db/test_db_pool.py:74
Function
test_run_now_fires_job
run_now() schedules an immediate async task via ensure_future.
tests/unit/cron/test_cron_manager.py:612
Function
test_run_now_raises_for_unknown
(tmp_path: Path)
tests/unit/cron/test_cron_manager.py:601
Function
test_run_now_records_last_status
Run-now should invoke the cron manager and the job's repo update leaves ``last_status`` set.
tests/integration/test_cron_api.py:145
Function
test_run_now_unknown_cron_returns_404
(env: Any)
tests/integration/test_cron_api.py:251
Function
test_run_passes_delivery_command
(setup)
tests/unit/cron/test_cron_job.py:106
Function
test_run_port_zero_not_overridden_by_config
``port=0`` (OS-assigned random port) must reach uvicorn unchanged.
tests/unit/cli/test_run_cmd.py:253
Function
test_run_reads_host_port_from_config_by_default
`octop run` with no args should fall back to config.json values.
tests/unit/cli/test_run_cmd.py:55
Function
test_run_reads_legacy_host_key_for_compatibility
Old config.json with 'host' key must still be read (backward compat).
tests/unit/cli/test_run_cmd.py:278
Function
test_run_records_error_on_failure
(setup)
tests/unit/cron/test_cron_job.py:136
Function
test_run_records_ok
(setup)
tests/unit/cron/test_cron_job.py:86
Function
test_run_reports_corrupt_config_cleanly
A malformed config.json must fail cleanly, not with a traceback (#730). The command cannot guess the ~18 settings the file holds, and boot would
tests/unit/cli/test_run_cmd.py:195
Function
test_run_skillhub_cmd_timeout_kills_process
Timeout must kill+drain the child so transports close on a live loop.
tests/unit/test_skills_hub_errors.py:81
Function
test_run_writes_config_before_uvicorn_starts
Config is persisted immediately when --host/--port are provided.
tests/unit/cli/test_run_cmd.py:106
Function
test_run_writes_config_even_on_uvicorn_failure
Config is persisted before uvicorn starts, so a crash does not lose it.
tests/unit/cli/test_run_cmd.py:140
Function
test_running_in_container_detects_dockerenv
(monkeypatch: pytest.MonkeyPatch)
tests/unit/infra/utils/test_host_dirs.py:278
Function
test_running_in_container_env_override
(monkeypatch: pytest.MonkeyPatch)
tests/unit/infra/utils/test_host_dirs.py:266
Function
test_safe_request_blocks_internal_ip
()
tests/unit/connectors/test_mcp_oauth_ssrf.py:89
Function
test_same_channel_id_does_not_rewrite_session
(registry: ThreadRegistry)
tests/unit/gateway/test_thread_registry.py:235
Function
test_same_connector_kind_supports_multiple_named_instances
(env)
tests/integration/test_connectors_api.py:110
Function
test_sanitize_ascii_name_passthrough
()
tests/unit/test_plugins.py:108
Function
test_sanitize_chinese_name_transliterates_to_pinyin
()
tests/unit/test_plugins.py:115
Function
test_sanitize_collision_gets_suffix
()
tests/unit/test_plugins.py:128
Function
test_sanitize_falls_back_to_underscores_without_pypinyin
( monkeypatch: pytest.MonkeyPatch, )
tests/unit/test_plugins.py:143
Function
test_sanitize_im_metadata_persists_weixin_routing
()
tests/unit/gateway/test_message_keys.py:82
Function
test_sanitize_im_metadata_persists_xiaoyi_routing
()
tests/unit/gateway/test_message_keys.py:64
Function
test_sanitize_inbound_filename_keeps_cjk
()
tests/unit/gateway/test_inbound_store.py:31
Function
test_sanitize_mixed_name_keeps_ascii_parts
()
tests/unit/test_plugins.py:123
Function
test_sanitize_plugin_tools_reserved_names
()
tests/unit/test_plugins.py:162
Function
test_sanitize_redirect_after_keeps_only_safe_internal_paths
( path: str | None, expected: str )
tests/unit/auth/test_sso_redirect_after.py:24
Function
test_sanitize_subprocess_log_filters_script_paths
()
tests/unit/desktop/test_setup.py:95
Function
test_sanitize_truncates_overlong_names
()
tests/unit/test_plugins.py:137
Function
test_save_and_load
(tmp_path: Path, monkeypatch)
tests/unit/test_env_file.py:29
Function
test_save_and_load_round_trip
(acp_store: tuple[ACPSettingsStore, AgentRepo, int])
tests/unit/agents/test_acp_settings.py:48
Function
test_save_attachment_pdf_uses_extension
()
tests/unit/api/test_attachments.py:196
Function
test_save_attachment_zip_from_windows_browser
()
tests/unit/api/test_attachments.py:181
Function
test_save_overrides_merges_without_dropping_keys
(octop_home: Path)
tests/unit/cli/test_run_bind_resolution.py:92
Function
test_save_overrides_on_corrupt_config_preserves_bytes
(octop_home: Path)
tests/unit/cli/test_run_bind_resolution.py:80
← previous
next →
11,501–11,600 of 12,485, ranked by callers