Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/internetarchive/openlibrary
/ functions
Functions
6,179 in github.com/internetarchive/openlibrary
⨍
Functions
6,179
◇
Types & classes
1,059
↳
Endpoints
131
Method
test_call
(self)
openlibrary/tests/core/test_cache.py:48
Method
test_callback_with_books_path
callback works with /api/books path too.
openlibrary/tests/fastapi/test_books.py:225
Method
test_callback_with_format_json
callback with format=json.
openlibrary/tests/fastapi/test_books.py:232
Method
test_callback_with_json_path_returns_plain_json_wrapped
callback with .json path returns plain JSON (not JS variable) wrapped in callback.
openlibrary/tests/fastapi/test_books.py:207
Method
test_callback_wraps_json
callback parameter wraps JSON in function call.
openlibrary/tests/fastapi/test_books.py:218
Method
test_calls_dynlinks_with_bibkeys
Verify the endpoint passes bibkeys and options to dynlinks.
openlibrary/tests/fastapi/test_books.py:67
Method
test_calls_readlinks
Verify the endpoint calls readlinks with the decoded request string.
openlibrary/tests/fastapi/test_books.py:314
Method
test_calls_readlinks_with_id
Verify the endpoint builds 'idtype:idval' and calls readlinks.
openlibrary/tests/fastapi/test_books.py:343
Method
test_can_load_and_render_affiliate_links_template
Should be able to load the AffiliateLinks.html.jinja template from the macros/ directory and render it with store data.
openlibrary/tests/core/test_jinja.py:148
Function
test_cannot_validate_list_with_an_empty_string
Ensure lists will not validate with empty string values.
openlibrary/plugins/importapi/tests/test_import_validator.py:65
Function
test_cannot_validate_with_empty_string_values
Ensure the title and publish_date are not mere empty strings.
openlibrary/plugins/importapi/tests/test_import_validator.py:47
Function
test_cannot_validate_with_with_empty_lists
Ensure list values will not validate if they are empty.
openlibrary/plugins/importapi/tests/test_import_validator.py:56
Function
test_canonical_url
()
openlibrary/plugins/upstream/tests/test_utils.py:102
Method
test_caps_limit_and_preserves_legacy_links
(self, fastapi_client, patched_site)
openlibrary/tests/fastapi/test_work_editions_author_works.py:64
Method
test_caps_limit_and_preserves_legacy_links
(self, fastapi_client, patched_site)
openlibrary/tests/fastapi/test_work_editions_author_works.py:186
Method
test_caps_the_number_of_author_rows
(self)
openlibrary/plugins/worksearch/tests/test_author_suggestion.py:81
Function
test_check_cover_url_host
Only cover URLs available via the HTTP Proxy are allowed.
openlibrary/catalog/add_book/tests/test_add_book.py:2083
Method
test_check_rate
(self, monkeypatch)
openlibrary/utils/tests/test_processors.py:14
Function
test_choose_sorting_ddc
(ddcs, outpt, name)
openlibrary/utils/tests/test_ddc.py:152
Function
test_choose_sorting_lcc
(lccs, result, name)
openlibrary/utils/tests/test_lcc.py:142
Function
test_classify_workers_cur_fn_direct_matches
()
scripts/monitoring/tests/test_olspy_sh.py:74
Function
test_classify_workers_cur_fn_fallback_and_special_cases
()
scripts/monitoring/tests/test_olspy_sh.py:102
Function
test_classify_workers_cur_fn_path_based_matches
()
scripts/monitoring/tests/test_olspy_sh.py:88
Function
test_clean_amazon_metadata_does_not_load_DVDS_physical_format
(physical_format, expected)
openlibrary/tests/core/test_vendors.py:466
Function
test_clean_amazon_metadata_does_not_load_DVDS_product_group
Ensure data load does not load dvds and relies on fake API response objects
openlibrary/tests/core/test_vendors.py:367
Function
test_clean_amazon_metadata_for_load_ISBN
()
openlibrary/tests/core/test_vendors.py:59
Function
test_clean_amazon_metadata_for_load_non_ISBN
()
openlibrary/tests/core/test_vendors.py:19
Function
test_clean_amazon_metadata_for_load_subtitle
()
openlibrary/tests/core/test_vendors.py:205
Function
test_clean_amazon_metadata_for_load_translator
()
openlibrary/tests/core/test_vendors.py:106
Method
test_clean_record_returns_empty
Records with no HTML entities return an empty updates dict.
scripts/tests/test_fix_unicode_html_entities.py:80
Method
test_clean_string_returns_false
Plain Unicode strings with no entities return False.
scripts/tests/test_fix_unicode_html_entities.py:23
Method
test_clear_cache
(self)
openlibrary/tests/solr/test_data_provider.py:34
Method
test_client_exception_preserves_status_code
(self, fastapi_client, mock_authenticated_user)
openlibrary/tests/fastapi/test_lists_json.py:203
Method
test_colon_in_secret_preserved
(self, mock_web)
openlibrary/plugins/upstream/tests/test_account.py:494
Function
test_commify
()
openlibrary/tests/core/test_helpers.py:96
Function
test_commify_list
(name: str, seq: Sequence[str], locale: str, expected: str, request_context_fixture)
openlibrary/plugins/upstream/tests/test_utils.py:336
Function
test_compare_publisher
()
openlibrary/catalog/add_book/tests/test_match.py:250
Function
test_compute_trending_z_score_zero_for_low_past
()
scripts/solr_updater/tests/test_trending_updater_hourly.py:4
Method
test_conflicting_ids_cause_error
(self, mock_site)
openlibrary/catalog/add_book/tests/test_load_book.py:170
Method
test_content_format_prefix_finds_tag_by_slug
decorate_with_tags handles 'content_format:' prefix correctly.
openlibrary/plugins/worksearch/tests/test_subjects.py:111
Method
test_contributor
(self)
openlibrary/tests/solr/updater/test_work.py:426
Method
test_cookies_on_verify_human_always_pass_through
(self, monkeypatch)
openlibrary/plugins/openlibrary/tests/test_verification.py:144
Method
test_count_forwards_filters
(self, fastapi_client)
openlibrary/tests/fastapi/test_bestbook.py:279
Method
test_count_response_matches_legacy
(self, fastapi_client, params)
openlibrary/tests/fastapi/test_bestbook.py:371
Method
test_count_works_without_filters
(self, fastapi_client)
openlibrary/tests/fastapi/test_bestbook.py:294
Function
test_covers_are_added_to_edition
Ensures a cover from rec is added to a matched edition.
openlibrary/catalog/add_book/tests/test_add_book.py:1233
Function
test_create
(config)
openlibrary/plugins/openlibrary/tests/test_listapi.py:63
Method
test_create
(self)
openlibrary/tests/core/test_db.py:465
Method
test_create_event
(self)
openlibrary/tests/core/test_db.py:387
Function
test_create_list_doc
(wildcard)
openlibrary/plugins/upstream/tests/test_account.py:23
Method
test_create_list_uses_legacy_process_method
(self, fastapi_client, mock_authenticated_user)
openlibrary/tests/fastapi/test_lists_json.py:110
Function
test_creators_serialize_categories_filter_internal_nodes
UUID-named, ASIN-containing, promotional, and generic root nodes are excluded.
openlibrary/tests/core/test_vendors.py:776
Function
test_creators_serialize_does_not_load_dvds
DVD product_group is filtered out regardless of case.
openlibrary/tests/core/test_vendors.py:801
Function
test_creators_serialize_dvd_returns_empty
Items whose binding is 'DVD' are filtered out and return an empty dict.
openlibrary/tests/core/test_vendors.py:767
Function
test_creators_serialize_full_book
Golden path: all standard and Creators-API-specific fields serialize correctly.
openlibrary/tests/core/test_vendors.py:708
Function
test_creators_serialize_isbn13_fallback_from_isbn10
When external_ids.eans is absent, ISBN-13 is computed from the ISBN-10 ASIN.
openlibrary/tests/core/test_vendors.py:745
Function
test_creators_serialize_non_isbn_asin
An ASIN starting with 'B' (not an ISBN) produces empty isbn_10 and isbn_13.
openlibrary/tests/core/test_vendors.py:755
Method
test_date_validation
(self)
openlibrary/plugins/upstream/tests/test_checkins.py:34
Method
test_dates
(self, marcfile, expect)
openlibrary/catalog/marc/tests/test_parse.py:159
Function
test_datestr
(monkeypatch)
openlibrary/tests/core/test_helpers.py:70
Function
test_day_buckets
(days_ago, expected)
openlibrary/plugins/openlibrary/tests/test_patron_status.py:65
Method
test_day_out_of_range
(self)
openlibrary/plugins/upstream/tests/test_checkins.py:49
Method
test_ddcs
(self, doc_ddcs, solr_ddcs, sort_ddc_index)
openlibrary/tests/solr/updater/test_work.py:416
Method
test_debug_openapi_structure
Debug test to see the actual OpenAPI structure for search endpoint parameters.
openlibrary/tests/fastapi/test_search.py:369
Method
test_dedupes_a_prolific_author_to_a_single_row
(self)
openlibrary/plugins/worksearch/tests/test_author_suggestion.py:77
Method
test_default_get_gets_latest_version
(self)
scripts/tests/test_copydocs.py:84
Method
test_delete
(self, setup_db)
openlibrary/coverstore/tests/test_webapp.py:123
Method
test_delete
(self)
openlibrary/tests/core/test_cache.py:81
Method
test_delete
(self, import_item_db)
openlibrary/tests/core/test_imports.py:127
Method
test_delete
(self)
openlibrary/tests/solr/test_update.py:115
Method
test_delete_admin_user
Admin user can delete any list, even ones they don't own.
openlibrary/tests/fastapi/test_lists_delete.py:108
Method
test_delete_admin_via_legacy_route
Admin can delete via legacy route too.
openlibrary/tests/fastapi/test_lists_delete.py:137
Method
test_delete_all_by_username
(self)
openlibrary/tests/core/test_db.py:266
Method
test_delete_by_id
(self)
openlibrary/tests/core/test_db.py:410
Method
test_delete_by_username
(self)
openlibrary/tests/core/test_db.py:417
Method
test_delete_by_username
(self)
openlibrary/tests/core/test_db.py:501
Method
test_delete_calls_api
Test that delete calls the IA lending API.
openlibrary/tests/core/test_waitinglist.py:256
Method
test_delete_forbidden_via_legacy_route
Non-admin cannot delete via legacy route either.
openlibrary/tests/fastapi/test_lists_delete.py:147
Method
test_delete_forbidden_wrong_user
User cannot delete another user's list (non-admin).
openlibrary/tests/fastapi/test_lists_delete.py:99
Method
test_delete_list_not_found
List not found returns 404.
openlibrary/tests/fastapi/test_lists_delete.py:83
Method
test_delete_no_prefix_route_forbidden
Legacy route /lists/{list_id}/delete.json requires admin for lists without user prefix.
openlibrary/tests/fastapi/test_lists_delete.py:126
Method
test_delete_success
User can delete their own list.
openlibrary/tests/fastapi/test_lists_delete.py:68
Method
test_delete_unauthenticated
Unauthenticated request returns 401.
openlibrary/tests/fastapi/test_lists_delete.py:78
Method
test_delete_with_batch_id
(self, import_item_db)
openlibrary/tests/core/test_imports.py:133
Method
test_delete_wrong_type
Document exists but is not a list type returns 404.
openlibrary/tests/fastapi/test_lists_delete.py:91
Method
test_deletes_old_orphans
(self)
openlibrary/tests/solr/updater/test_edition.py:9
Method
test_deletes_spam_lists
(self, mock_site)
openlibrary/plugins/admin/tests/test_code.py:111
Method
test_deletes_spam_works
(self, mock_site)
openlibrary/plugins/admin/tests/test_code.py:50
Method
test_description_as_dict_unescaped
description stored as {type, value} dict is unescaped.
openlibrary/catalog/add_book/tests/test_add_book.py:2033
Method
test_details_true_passed_to_dynlinks
details=true is passed to dynlinks.
openlibrary/tests/fastapi/test_books.py:243
Method
test_detects_hex_entity
Hex character references like A are detected.
scripts/tests/test_fix_unicode_html_entities.py:15
Method
test_detects_named_entity
Named entities like & are detected.
scripts/tests/test_fix_unicode_html_entities.py:19
Method
test_detects_numeric_entity
Numeric character references like С are detected.
scripts/tests/test_fix_unicode_html_entities.py:11
Method
test_dict_converts_datetime_to_iso_string
Test that datetime objects are converted to ISO format strings.
openlibrary/tests/core/test_waitinglist.py:194
Method
test_dict_field_preserves_type_key
Fixing a dict field value preserves the type key.
scripts/tests/test_fix_unicode_html_entities.py:57
Method
test_dict_is_json_serializable
Test that the dict output can be serialized to JSON.
openlibrary/tests/core/test_waitinglist.py:203
Method
test_dict_preserves_all_keys
Test that dict() preserves all original keys.
openlibrary/tests/core/test_waitinglist.py:220
Function
test_dicthash
()
openlibrary/plugins/upstream/tests/test_merge_authors.py:336
Function
test_doctest
(module)
openlibrary/coverstore/tests/test_doctests.py:15
Function
test_doctest
(test)
openlibrary/plugins/books/tests/test_doctests.py:14
← previous
next →
5,001–5,100 of 6,179, ranked by callers