Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/bojieli/ai-agent-book
/ functions
Functions
13,003 in github.com/bojieli/ai-agent-book
⨍
Functions
13,003
◇
Types & classes
1,574
↳
Endpoints
161
Function
test_crash_watchdog_lifecycle
Test that CrashWatchdog starts and stops with browser session.
chapter9/browser-use-rpa/browser-use/tests/ci/test_browser_watchdog_crash.py:139
Function
test_crash_watchdog_network_timeout
Test that CrashWatchdog detects network timeouts by monitoring actual network requests.
chapter9/browser-use-rpa/browser-use/tests/ci/test_browser_watchdog_crash.py:23
Method
test_create_and_modify
Test creating file and then modifying it in subsequent edits
chapter5/coding-agent/tests/test_multi_edit_tool.py:131
Function
test_create_and_read
(store, writer_ctx, reader_ctx)
chapter5/permission-embedded-data-objects/tests/test_core.py:53
Method
test_create_browser_auth_error
Test cloud browser creation with auth error.
chapter9/browser-use-rpa/browser-use/tests/ci/test_cloud_browser.py:85
Method
test_create_browser_http_401
Test cloud browser creation with HTTP 401 response.
chapter9/browser-use-rpa/browser-use/tests/ci/test_cloud_browser.py:102
Method
test_create_browser_success
Test successful cloud browser creation.
chapter9/browser-use-rpa/browser-use/tests/ci/test_cloud_browser.py:45
Method
test_create_browser_with_env_var
Test cloud browser creation using BROWSER_USE_API_KEY environment variable.
chapter9/browser-use-rpa/browser-use/tests/ci/test_cloud_browser.py:122
Function
test_create_cannot_choose_foreign_tenant
(store, org)
tests/test_ch5_pedo_tenant_isolation.py:66
Function
test_create_cannot_reference_foreign_tenant
(store, reference_source)
tests/test_ch5_pedo_tenant_isolation.py:74
Function
test_create_cannot_use_foreign_parent
(store)
tests/test_ch5_pedo_tenant_isolation.py:84
Function
test_create_directories_with_bare_log_file
LOG_FILE='debug.log' (no dir) used to crash create_directories().
chapter3/user-memory/test_makedirs_bare_filename.py:16
Method
test_create_directory
Test creating a directory.
chapter4/execution-tools/test_filesystem_enhanced.py:334
Function
test_create_issues_bare_filename
out_path 为不带目录的裸文件名时,落盘不应崩溃(dirname 为空串)。
chapter5/log-diagnosis/test_github_mcp_bare_output.py:7
Function
test_create_issues_with_directory
带目录的 out_path 保持原行为:自动创建父目录。
chapter5/log-diagnosis/test_github_mcp_bare_output.py:20
Method
test_create_nested_directory
Test creating nested directories.
chapter4/execution-tools/test_filesystem_enhanced.py:344
Function
test_create_new_file_with_empty_old_string_still_works
(system_state, temp_dir)
chapter5/coding-agent/tests/test_multi_edit_empty_old_on_existing.py:37
Method
test_create_parent_directories
Test that Write creates parent directories if needed
chapter5/coding-agent/tests/test_write_tool.py:47
Method
test_create_todo_list
Test creating a TODO list
chapter5/coding-agent/tests/test_todo_write_tool.py:13
Method
test_create_workbook
Test creating a new workbook.
chapter4/collaboration-tools/test_excel_tools.py:28
Method
test_create_worksheet
Test creating a new worksheet.
chapter4/collaboration-tools/test_excel_tools.py:94
Method
test_created_at_is_timezone_aware_utc
(self)
chapter4/collaboration-tools/test_run_experiment_4_5.py:255
Function
test_credential_and_quota_blocks_are_real_failures_not_successes
()
chapter4/perception-tools/test_real_experiment_4_2_evidence.py:83
Function
test_credential_must_not_be_recorded
()
chapter1/image-gen-workflow/tests/test_manifest_schema.py:65
Function
test_csp_solver_handles_silent_resident
Verify solve handles residents in names that make no statements. Contract: In Knights and Knaves puzzles, residents listed in `names` may be
chapter5/code-for-logic/test_silent_resident.py:10
Function
test_csv_data_honors_max_rows
(tmp_path: Path)
chapter4/perception-tools/src/test_csv_max_rows.py:12
Method
test_csv_file_creation
Test CsvFile creation and basic properties.
chapter9/browser-use-rpa/browser-use/tests/ci/test_filesystem.py:58
Method
test_csv_file_disk_operations
Test CSV file sync to disk operations.
chapter9/browser-use-rpa/browser-use/tests/ci/test_filesystem.py:144
Function
test_cumulative_costs_running_sum
()
tests/test_ch6_cost_efficiency_analyzer.py:188
Function
test_cumulative_costs_running_sum
()
tests/test_ch7_cost_efficiency_analyzer.py:188
Function
test_curly_targets_and_protected_regions
()
chapter8/curly-quote-sft/tests/test_curly_pipeline.py:26
Method
test_currency_converter
Test currency conversion tool
chapter1/context/tests/test_agent.py:32
Function
test_currency_when_receipt_provides_it
(text, verdict)
tests/test_ch9_factual_grounding.py:135
Method
test_custom_action_registration
Test registering a custom action and executing it.
chapter9/browser-use-rpa/browser-use/tests/ci/test_tools.py:115
Method
test_custom_action_with_no_arguments
Test that custom actions with no arguments are handled correctly
chapter9/browser-use-rpa/browser-use/tests/ci/test_registry_action_parameter_injection.py:342
Function
test_custom_and_unsupported_channels_include_timestamp
Regression: all dispatch branches must return a 'timestamp' key for downstream consumers.
tests/test_ch4_notification_dispatcher.py:531
Function
test_custom_channel_handler
Test registering a custom channel handler.
tests/test_ch4_notification_dispatcher.py:164
Function
test_custom_channel_handler_failure_dict
Test that a custom channel returning success=False in dict result is marked as success=False.
tests/test_ch4_notification_dispatcher.py:274
Function
test_custom_channel_handler_returns_false
Test that a custom channel returning boolean False is marked as success=False.
tests/test_ch4_notification_dispatcher.py:349
Function
test_custom_decision_string_accepted
Test that custom decision string submitted by operator is preserved without fallback trigger.
tests/test_ch4_notification_dispatcher.py:206
Method
test_custom_default_still_distinguishes_missing_from_none
(self)
chapter7/model-action-threshold/tasks/cache_contract/repo/tests/test_cache.py:19
Method
test_custom_dropdown
Test get_dropdown_options with custom dropdown implementation.
chapter9/browser-use-rpa/browser-use/tests/ci/test_browser_event_GetDropdownOptionsEvent.py:398
Function
test_custom_goal_is_specific_and_time_bounded
()
chapter10/generative-agents/tests/test_runner_helpers.py:49
Function
test_custom_quality_evaluator_clamping
Regression test: custom quality scorer returns are clamped between 0.0 and 100.0.
tests/test_ch9_hermes_downstream_ablation.py:184
Function
test_custom_quality_evaluator_clamping
Regression test: custom quality scorer returns are clamped between 0.0 and 100.0.
tests/test_ch8_hermes_downstream_ablation.py:184
Function
test_custom_quality_evaluator_exception_returns_zero
Regression test: custom quality evaluator raising an exception returns 0.0, not built-in score. Closes the class where a crashed custom scorer si
tests/test_ch9_hermes_downstream_ablation.py:242
Function
test_custom_quality_evaluator_exception_returns_zero
Regression test: custom quality evaluator raising an exception returns 0.0, not built-in score. Closes the class where a crashed custom scorer si
tests/test_ch8_hermes_downstream_ablation.py:242
Function
test_custom_quality_evaluator_nan_returns_zero
Regression test: custom quality evaluator returning NaN is converted to 0.0.
tests/test_ch9_hermes_downstream_ablation.py:237
Function
test_custom_quality_evaluator_nan_returns_zero
Regression test: custom quality evaluator returning NaN is converted to 0.0.
tests/test_ch8_hermes_downstream_ablation.py:237
Function
test_custom_rates_reflected_in_report_config
Finding #5: report config start/end must match a custom rates list, not defaults. Regression: the pre-fix _parse_config kept default start_rate=1
tests/test_ch7_rate_ramp_benchmark.py:249
Function
test_custom_rates_reflected_in_report_config
Finding #5: report config start/end must match a custom rates list, not defaults. Regression: the pre-fix _parse_config kept default start_rate=1
tests/test_ch6_rate_ramp_benchmark.py:249
Function
test_custom_response_fn_is_used
()
tests/test_ch2_prompt_injection_robustness.py:98
Function
test_cut_here_thresholds
()
chapter5/provider-failover/tests/test_offline.py:156
Function
test_dangerous_bash_command_detection
()
tests/test_ch8_safety_policy_gate.py:44
Function
test_dangerous_bash_command_detection
()
tests/test_ch9_safety_policy_gate.py:44
Function
test_dashscope_citations_from_web_search_sources
()
chapter1/search-codegen/test_responses_agent.py:53
Function
test_dashscope_citations_from_web_search_string_url_sources
()
chapter1/search-codegen/test_responses_agent.py:76
Function
test_dashscope_international_region_override
(monkeypatch)
tests/test_providers.py:159
Function
test_dashscope_keeps_honouring_its_own_override
(monkeypatch)
tests/test_ch1_learning_agent_kimi_base_url.py:76
Function
test_dashscope_key_uses_bailian_directly
A Bailian key must call Alibaba directly, not the SiliconFlow route.
tests/test_providers.py:140
Function
test_dashscope_request_uses_hosted_tool_shapes_and_streaming
()
chapter1/search-codegen/test_responses_agent.py:29
Function
test_data_quality_tool_detects_deliberate_synthetic_errors
()
chapter7/public-health-reporting-eval/tests/test_offline.py:64
Function
test_dead_backend_returns_result_with_zero_metrics
(tmp_path)
chapter3/log-sanitization/tests/test_sanitize_conversation.py:47
Function
test_debug_click_logic
(index: int, browser_session: BrowserSession)
chapter9/browser-use-rpa/browser-use/tests/ci/test_browser_session_element_cache.py:186
Function
test_decision_request_default_channels_none
Test DecisionRequest has channels default to None.
tests/test_ch4_notification_dispatcher.py:290
Method
test_decorated_action_rejects_positional_args
Test that decorated actions reject positional arguments
chapter9/browser-use-rpa/browser-use/tests/ci/test_registry.py:363
Method
test_decorated_function_accepts_params_model
Decorated function should accept params as model
chapter9/browser-use-rpa/browser-use/tests/ci/test_registry.py:720
Method
test_decorated_function_ignores_extra_kwargs
Decorated function should ignore extra kwargs for easy unpacking
chapter9/browser-use-rpa/browser-use/tests/ci/test_registry.py:740
Method
test_decorated_function_only_accepts_kwargs
Decorated functions should only accept kwargs, no positional args
chapter9/browser-use-rpa/browser-use/tests/ci/test_registry.py:704
Function
test_default_attacks_cover_five_vectors
()
tests/test_ch2_prompt_injection_robustness.py:65
Function
test_default_cheaperinference_provider_is_rerouted_for_gpt5
(monkeypatch)
tests/test_providers.py:354
Function
test_default_dataset_is_ten_real_http_university_pages
()
chapter10/parallel-web-research/test_coordination.py:25
Function
test_default_endpoint_is_global_bearer_no_groupid
Global host, Bearer auth, no GroupId query param, default model.
chapter7/tts-quality-eval/test_minimax_t2a_refresh.py:50
Function
test_default_krill_provider_is_rerouted_for_gpt5
(monkeypatch)
tests/test_providers.py:383
Function
test_default_max_tokens_import_accepts_only_values_int_can_parse
()
chapter1/search-codegen/test_config_and_usage.py:32
Function
test_default_openai_provider_is_rerouted_for_gpt5
(monkeypatch)
tests/test_providers.py:429
Function
test_default_openai_provider_stays_direct_without_openrouter_key
(monkeypatch)
tests/test_providers.py:440
Method
test_default_path
Test omitting path parameter uses current directory
chapter5/coding-agent/tests/test_glob_tool.py:106
Function
test_default_policy_allow_fallback
Regression test: default_policy ACCEPT allows access when rules list is empty.
tests/test_ch5_pedo_live_security_eval.py:225
Function
test_default_pricing_values
()
tests/test_ch6_cost_efficiency_analyzer.py:408
Function
test_default_pricing_values
()
tests/test_ch7_cost_efficiency_analyzer.py:408
Function
test_default_provider_flag_does_not_reroute_non_gpt5
(monkeypatch)
tests/test_providers.py:448
Function
test_default_sandbox_config_all_restrictive
default_sandbox_config enables every protection.
tests/test_ch5_sandbox_evaluator.py:227
Function
test_default_secret_key_is_random_bytes
()
tests/test_ch8_safety_policy_gate.py:198
Function
test_default_secret_key_is_random_bytes
()
tests/test_ch9_safety_policy_gate.py:198
Function
test_default_slug
()
tests/test_split_search_index.py:65
Method
test_degenerate_candidate_is_rejected_without_crashing
(self)
chapter9/self-modifying-agent/test_evolution.py:73
Method
test_degenerate_candidate_is_rejected_without_crashing
(self)
chapter9/harness-safety-gate/test_evolution.py:205
Function
test_degrades_once_when_the_endpoint_refuses_reasoning_with_tools
()
chapter2/agent-skills-ppt/tests/test_reasoning_degrade.py:56
Function
test_delete
(store, writer_ctx, reader_ctx)
chapter5/permission-embedded-data-objects/tests/test_core.py:88
Method
test_delete_cell
Test edit_mode=delete
chapter5/coding-agent/tests/test_notebook_edit_tool.py:88
Method
test_delete_directory_recursive
Test deleting directory recursively.
chapter4/execution-tools/test_filesystem_enhanced.py:310
Method
test_delete_directory_without_recursive
Test that directory delete requires recursive flag.
chapter4/execution-tools/test_filesystem_enhanced.py:320
Method
test_delete_file
Test deleting a file.
chapter4/execution-tools/test_filesystem_enhanced.py:300
Method
test_delete_file_content
Test deleting lines from file.
chapter4/execution-tools/test_terminal_controller.py:164
Method
test_delete_requires_cell_id
Test that delete mode requires cell_id
chapter5/coding-agent/tests/test_notebook_edit_tool.py:206
Method
test_delete_without_new_source
Delete must work when new_source is omitted.
chapter5/coding-agent/tests/test_notebook_edit_tool.py:232
Function
test_dependency_stubs_are_restored
Scoped dependency replacements leave neighboring collection unchanged.
chapter3/structured-index/test_graphrag_search_top_k.py:154
Method
test_derive_claims_and_promises_tolerates_non_dict_result
Contract: _derive_claims_and_promises handles tool calls with None or non-dict result fields. Locks out AttributeError when tool_calls entrie
chapter9/trajectory-verifier/test_derive_claims_promises_null_result.py:7
Method
test_describe_large_files
Test describing filesystem with large files (truncated content).
chapter9/browser-use-rpa/browser-use/tests/ci/test_filesystem.py:518
← previous
next →
10,601–10,700 of 13,003, ranked by callers