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
Method
test_native_select_dropdown
Test get_dropdown_options with native HTML select element.
chapter9/browser-use-rpa/browser-use/tests/ci/test_browser_event_GetDropdownOptionsEvent.py:278
Method
test_native_windows_uses_ollama_even_when_cuda_is_available
(self)
chapter2/local_llm_serving/test_platform_detection.py:18
Method
test_native_windows_with_cuda_recommends_ollama
(self)
chapter2/local_llm_serving/test_platform_detection.py:47
Method
test_navigate_and_get_current_page
Test that navigate method changes the URL and get_current_page returns the proper page.
chapter9/browser-use-rpa/browser-use/tests/ci/test_registry_action_parameter_injection.py:133
Method
test_navigate_and_verify_page_properties
Test that NavigateToUrlEvent changes the URL and page properties are accessible.
chapter9/browser-use-rpa/browser-use/tests/ci/test_browser_event_NavigateToUrlEvent.py:387
Method
test_navigate_data_url
Test navigating to a data: URL.
chapter9/browser-use-rpa/browser-use/tests/ci/test_browser_event_NavigateToUrlEvent.py:172
Method
test_navigate_javascript_url
Test that javascript: URLs are handled appropriately.
chapter9/browser-use-rpa/browser-use/tests/ci/test_browser_event_NavigateToUrlEvent.py:155
Method
test_navigate_multiple_tabs
Test navigating in multiple tabs sequentially.
chapter9/browser-use-rpa/browser-use/tests/ci/test_browser_event_NavigateToUrlEvent.py:267
Method
test_navigate_redirect
Test navigating to a URL that redirects.
chapter9/browser-use-rpa/browser-use/tests/ci/test_browser_event_NavigateToUrlEvent.py:310
Method
test_navigate_timeout_handling
Test that navigation timeouts are handled gracefully.
chapter9/browser-use-rpa/browser-use/tests/ci/test_browser_event_NavigateToUrlEvent.py:293
Method
test_navigate_to_url_event_directly
Test NavigateToUrlEvent directly through the event bus.
chapter9/browser-use-rpa/browser-use/tests/ci/test_browser_event_NavigateToUrlEvent.py:109
Method
test_navigate_to_url_event_with_new_tab_and_tab_created_event
Test NavigateToUrlEvent with new_tab=True and verify TabCreatedEvent is emitted.
chapter9/browser-use-rpa/browser-use/tests/ci/test_browser_event_NavigateToUrlEvent.py:336
Method
test_navigate_with_hash
Test navigating to URLs with hash fragments.
chapter9/browser-use-rpa/browser-use/tests/ci/test_browser_event_NavigateToUrlEvent.py:192
Method
test_navigate_with_new_tab_focuses_properly
Test that NavigateToUrlEvent with new_tab=True properly switches focus.
chapter9/browser-use-rpa/browser-use/tests/ci/test_browser_event_NavigateToUrlEvent.py:360
Method
test_navigate_with_query_params
Test navigating to URLs with query parameters.
chapter9/browser-use-rpa/browser-use/tests/ci/test_browser_event_NavigateToUrlEvent.py:228
Method
test_navigation_chain
Test navigating through multiple pages and back through history.
chapter9/browser-use-rpa/browser-use/tests/ci/test_tools.py:255
Function
test_navigation_events_fast_page_load
Test navigation events for page that loads easily/normally within 1s.
chapter9/browser-use-rpa/browser-use/tests/ci/test_browser_event_NavigateToUrlEvent2.py:21
Function
test_navigation_events_link_clicks
Test that clicking links (same tab and new tab) triggers NavigationCompleteEvent.
chapter9/browser-use-rpa/browser-use/tests/ci/test_browser_event_NavigateToUrlEvent2.py:157
Function
test_navigation_events_slow_page_with_timeout
Test navigation events for page that takes >10s to load and times out.
chapter9/browser-use-rpa/browser-use/tests/ci/test_browser_event_NavigateToUrlEvent2.py:76
Function
test_ndcg_at_k_imperfect_ordering
()
tests/test_ch3_retrieval_stage_evaluator.py:107
Function
test_ndcg_at_k_no_relevant_returns_zero
()
tests/test_ch3_retrieval_stage_evaluator.py:120
Function
test_ndcg_at_k_perfect_ordering
()
tests/test_ch3_retrieval_stage_evaluator.py:101
Function
test_near_duplicates_same_user_different_assistant
()
tests/test_ch8_sft_data_auditor.py:173
Function
test_near_duplicates_same_user_different_assistant
()
tests/test_ch7_sft_data_auditor.py:173
Function
test_near_simultaneous_hits_settle_and_broadcast_once
()
chapter10/parallel-web-research/test_coordination.py:13
Function
test_nearest_returns_none_when_no_archetypes
()
chapter3/structured-knowledge-extraction/test_advise_zero_archetypes.py:25
Function
test_negative_dollar_amount
()
chapter8/Intuitor/test_normalize_negative_currency.py:7
Function
test_negative_fraction_with_space
()
chapter8/Intuitor/test_normalize_negative_currency.py:29
Function
test_negative_interval_rejected
()
chapter4/collaboration-tools/test_recurring_interval_positive.py:28
Function
test_negative_latex_dollar_amount
()
chapter8/Intuitor/test_normalize_negative_currency.py:11
Function
test_negative_latex_frac
()
chapter8/Intuitor/test_normalize_negative_currency.py:19
Function
test_negative_limit_reads_to_eof
(tmp_path: Path)
chapter5/coding-agent/tests/test_read_negative_limit.py:8
Method
test_negative_lookup_is_loaded_once
(self)
chapter7/model-action-threshold/tasks/cache_contract/repo/tests/test_cache.py:7
Function
test_negative_max_length_keeps_full_content
(tmp_path: Path)
chapter4/perception-tools/src/test_negative_max_length.py:33
Function
test_negative_prompt_optional_default_empty
()
chapter1/image-gen-workflow/tests/test_rewrite_parsing.py:31
Function
test_negative_rrf_k_parameter
Verify negative rrf_k override is safely clamped without division by zero.
tests/test_ch3_hybrid_structured_retriever.py:251
Function
test_negative_size_reads_all
(tmp_path: Path)
chapter2/kv-cache/tests/test_negative_size.py:20
Function
test_negative_uplift_finding_does_not_make_executed_campaign_incomplete
()
chapter8/cot-distillation/test_student_pipeline.py:39
Function
test_negative_vector_similarity_clamped_to_zero
Verify negative cosine similarity is clamped to 0, not ranked above positive text relevance (Finding 10).
tests/test_ch3_hybrid_structured_retriever.py:320
Function
test_nested_validation_output_is_created
(tmp_path)
chapter1/learning-from-experience/test_experiment_8_2_evidence.py:83
Function
test_net_improvement_count_and_rate
Regression test: net_improvement_count tracks tasks where baseline failed and evolved passed.
tests/test_ch9_hermes_downstream_ablation.py:254
Function
test_net_improvement_count_and_rate
Regression test: net_improvement_count tracks tasks where baseline failed and evolved passed.
tests/test_ch8_hermes_downstream_ablation.py:254
Function
test_net_improvement_count_and_rate_consistency
Regression test: net_improvement_count and net_improvement_rate use the same basis. Closes the class where net_improvement_count counted only imp
tests/test_ch9_hermes_downstream_ablation.py:277
Function
test_net_improvement_count_and_rate_consistency
Regression test: net_improvement_count and net_improvement_rate use the same basis. Closes the class where net_improvement_count counted only imp
tests/test_ch8_hermes_downstream_ablation.py:277
Function
test_network_call_detected_medium_risk
A requests call is detected and classified as medium risk.
tests/test_ch5_sandbox_evaluator.py:95
Function
test_network_plus_env_var_high
Network plus env-var access is data exfiltration and classified high.
tests/test_ch5_sandbox_evaluator.py:183
Function
test_network_plus_file_read_high
Network plus file read (data exfiltration) is classified as high. Reading private data and sending it externally is the core exfiltration cas
tests/test_ch5_sandbox_evaluator.py:192
Function
test_neutral_carries_plaintext_as_ordinary_text
()
chapter5/provider-failover/tests/test_offline.py:55
Function
test_neutral_drops_foreign_credential
()
chapter5/provider-failover/tests/test_offline.py:34
Function
test_neutral_remints_ids_and_keeps_pairing
()
chapter5/provider-failover/tests/test_offline.py:104
Method
test_new_game
Test starting a new game.
chapter4/collaboration-tools/test_chess_tools.py:31
Function
test_new_session_uses_structured_memory_without_old_raw_history
()
chapter3/user-memory/test_session_scoped_history.py:76
Function
test_new_tab_cdp_session_attachment
Test that CDP session is properly attached when creating new tabs.
chapter9/browser-use-rpa/browser-use/tests/ci/test_browser_session_via_cdp_tab_management.py:31
Method
test_new_turns_from_other_instance_are_seen
Processor must see turns saved by a separate ConversationHistory.
chapter3/user-memory/test_background_processor_loop.py:52
Function
test_no_bare_except_in_book_owned_code
No book-owned Python file may contain a bare ``except:`` clause. A bare except catches ``BaseException``, swallowing ``KeyboardInterrupt`` an
tests/test_no_bare_except.py:48
Function
test_no_compression_handles_null_content
Ensure _no_compression does not raise TypeError when result['content'] is None.
chapter2/context-compression/test_null_content_compression.py:14
Method
test_no_contradiction_for_unrelated_claims
Claims about different subjects do not trigger contradictions.
tests/test_ch8_trajectory_consistency_checker.py:137
Method
test_no_contradiction_for_unrelated_claims
Claims about different subjects do not trigger contradictions.
tests/test_ch9_trajectory_consistency_checker.py:137
Function
test_no_diminishing_returns_when_every_stage_helps
()
tests/test_ch3_retrieval_stage_evaluator.py:298
Method
test_no_failure_means_no_change_request
(self)
chapter9/harness-safety-gate/test_evolution.py:61
Function
test_no_history_contract_rejects_sliding_window
()
chapter1/context/test_experiment_1_1.py:39
Method
test_no_infinite_loop_when_nothing_new
should_process() must go False after a no-op processing run.
chapter3/user-memory/test_background_processor_loop.py:69
Function
test_no_literal_plus_prefix_bullets
No ledger bullet may start with ``+- `` — it renders as text, not a list item.
tests/test_docs_experiment_status_links.py:20
Method
test_no_matches
Test when pattern matches nothing
chapter5/coding-agent/tests/test_grep_tool.py:191
Method
test_no_matches
Test when pattern matches nothing
chapter5/coding-agent/tests/test_glob_tool.py:62
Function
test_no_object_raises
()
chapter5/video-edit/test_extract_json_adjacent.py:20
Method
test_no_output_during_execution_fails
(self)
chapter6/astra-async-steering/test_judging.py:88
Method
test_no_output_during_execution_fails
(self)
chapter6/astra-async-steering/validation/runs/exp6-14-20260905-formal/source/test_judging.py:88
Method
test_no_params_action
Test action with NoParamsAction model
chapter9/browser-use-rpa/browser-use/tests/ci/test_registry.py:224
Function
test_no_reasoning_requires_provider_reasoning_but_stripped_history
()
chapter1/context/test_experiment_1_1.py:50
Method
test_no_special_params_action
Test action with no special params (like wait action in Tools)
chapter9/browser-use-rpa/browser-use/tests/ci/test_registry.py:642
Function
test_no_terminal_answer_is_distinct_from_an_empty_one
()
chapter1/context/test_grounding.py:103
Function
test_no_tool_definitions_requires_absent_request_fields
()
chapter1/context/test_experiment_1_1.py:72
Function
test_no_tool_results_requires_literal_hidden_observations
()
chapter1/context/test_experiment_1_1.py:59
Function
test_node_without_call_record_fails
()
chapter1/image-gen-workflow/tests/test_manifest_schema.py:99
Function
test_non_dict_file_items_dropped
(frontend_dir)
chapter5/conversational-ui/test_customize_non_dict_file_item.py:27
Function
test_non_dict_issue_items_dropped
()
chapter5/paper-to-ppt/test_null_issues.py:28
Function
test_non_homepage_is_unchanged
()
tests/test_homepage_index.py:67
Function
test_non_key_text_unchanged
()
chapter3/log-sanitization/tests/test_truncated_pem.py:33
Function
test_non_live_evaluator_labeled_not_live
Regression: evaluator without store/dsn is labeled live=False in metrics.
tests/test_ch5_pedo_live_security_eval.py:568
Function
test_non_live_non_json_string_uses_allowed_fields_filter
Regression: non-JSON string in non-live mode uses allowed_fields filter instead of treating the string as a field list. Closes the class wher
tests/test_ch5_pedo_live_security_eval.py:734
Method
test_non_numeric_literal_rejected
(self)
chapter1/context/tests/test_calc_sandbox.py:83
Function
test_non_numeric_stats_input_returns_error_string_not_crash
()
chapter10/multi-role-transfer/tests/test_tool_dispatch_errors.py:59
Function
test_non_pending_record_with_custom_decision_string_without_approved
Test that a non-pending record with a custom decision string and approved=None is accepted.
tests/test_ch4_notification_dispatcher.py:297
Method
test_non_serializable_params_handled
(self)
chapter9/harness-safety-gate/test_safety_policy_gate.py:164
Function
test_non_streaming_history_preserves_thinking_and_tool_names
()
chapter2/local_llm_serving/test_ollama_thinking.py:102
Function
test_non_usd_pricing_requires_dated_fx_for_comparable_cost
()
chapter7/model-benchmark/test_campaign.py:341
Function
test_none_task_does_not_crash
Regression: None entries in tasks list must not crash the benchmark. Old code used `task = ... or ""` which doesn't handle None properly.
tests/test_ch2_benchmark_compression.py:193
Function
test_nonempty_pass_rate_still_computes
()
chapter8/cot-distillation/test_empty_problems.py:47
Function
test_nonempty_still_rates
()
chapter7/elo-leaderboard/tests/test_zero_battles_bt.py:21
Function
test_nonempty_summary_still_shows_percent
(tmp_path, monkeypatch, capsys)
chapter5/code-for-math/test_empty_problems.py:48
Function
test_nonempty_text_list
()
chapter8/Intuitor/tests/test_empty_text_list.py:15
Method
test_nonexistent_action
Test calling a non-existent action
chapter9/browser-use-rpa/browser-use/tests/ci/test_registry.py:434
Method
test_nonexistent_bash_id
Test error when bash_id doesn't exist
chapter5/coding-agent/tests/test_bash_output_tool.py:66
Method
test_nonexistent_file
Test reading nonexistent file
chapter5/coding-agent/tests/test_read_tool.py:95
Method
test_nonexistent_path
Test searching in nonexistent path
chapter5/coding-agent/tests/test_grep_tool.py:217
Method
test_nonexistent_path
Test with nonexistent path
chapter5/coding-agent/tests/test_glob_tool.py:74
Method
test_nonterminating_candidate_fails_closed
(self)
chapter9/self-modifying-agent/test_evolution.py:127
Function
test_nonzero_base_resp_raises
base_resp.status_code != 0 raises a clear error instead of decoding junk.
chapter7/tts-quality-eval/test_minimax_t2a_refresh.py:86
Function
test_normal_edit_still_works
()
chapter4/execution-tools/test_edit_reject_empty_search.py:27
← previous
next →
11,601–11,700 of 13,003, ranked by callers