MCPcopy Create free account

hub / github.com/internetarchive/openlibrary / functions

Functions6,179 in github.com/internetarchive/openlibrary

Methodtest_call
(self)
openlibrary/tests/core/test_cache.py:48
Methodtest_callback_with_books_path
callback works with /api/books path too.
openlibrary/tests/fastapi/test_books.py:225
Methodtest_callback_with_format_json
callback with format=json.
openlibrary/tests/fastapi/test_books.py:232
Methodtest_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
Methodtest_callback_wraps_json
callback parameter wraps JSON in function call.
openlibrary/tests/fastapi/test_books.py:218
Methodtest_calls_dynlinks_with_bibkeys
Verify the endpoint passes bibkeys and options to dynlinks.
openlibrary/tests/fastapi/test_books.py:67
Methodtest_calls_readlinks
Verify the endpoint calls readlinks with the decoded request string.
openlibrary/tests/fastapi/test_books.py:314
Methodtest_calls_readlinks_with_id
Verify the endpoint builds 'idtype:idval' and calls readlinks.
openlibrary/tests/fastapi/test_books.py:343
Methodtest_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
Functiontest_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
Functiontest_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
Functiontest_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
Functiontest_canonical_url
()
openlibrary/plugins/upstream/tests/test_utils.py:102
Methodtest_caps_limit_and_preserves_legacy_links
(self, fastapi_client, patched_site)
openlibrary/tests/fastapi/test_work_editions_author_works.py:64
Methodtest_caps_limit_and_preserves_legacy_links
(self, fastapi_client, patched_site)
openlibrary/tests/fastapi/test_work_editions_author_works.py:186
Methodtest_caps_the_number_of_author_rows
(self)
openlibrary/plugins/worksearch/tests/test_author_suggestion.py:81
Functiontest_check_cover_url_host
Only cover URLs available via the HTTP Proxy are allowed.
openlibrary/catalog/add_book/tests/test_add_book.py:2083
Methodtest_check_rate
(self, monkeypatch)
openlibrary/utils/tests/test_processors.py:14
Functiontest_choose_sorting_ddc
(ddcs, outpt, name)
openlibrary/utils/tests/test_ddc.py:152
Functiontest_choose_sorting_lcc
(lccs, result, name)
openlibrary/utils/tests/test_lcc.py:142
Functiontest_classify_workers_cur_fn_direct_matches
()
scripts/monitoring/tests/test_olspy_sh.py:74
Functiontest_classify_workers_cur_fn_fallback_and_special_cases
()
scripts/monitoring/tests/test_olspy_sh.py:102
Functiontest_classify_workers_cur_fn_path_based_matches
()
scripts/monitoring/tests/test_olspy_sh.py:88
Functiontest_clean_amazon_metadata_does_not_load_DVDS_physical_format
(physical_format, expected)
openlibrary/tests/core/test_vendors.py:466
Functiontest_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
Functiontest_clean_amazon_metadata_for_load_ISBN
()
openlibrary/tests/core/test_vendors.py:59
Functiontest_clean_amazon_metadata_for_load_non_ISBN
()
openlibrary/tests/core/test_vendors.py:19
Functiontest_clean_amazon_metadata_for_load_subtitle
()
openlibrary/tests/core/test_vendors.py:205
Functiontest_clean_amazon_metadata_for_load_translator
()
openlibrary/tests/core/test_vendors.py:106
Methodtest_clean_record_returns_empty
Records with no HTML entities return an empty updates dict.
scripts/tests/test_fix_unicode_html_entities.py:80
Methodtest_clean_string_returns_false
Plain Unicode strings with no entities return False.
scripts/tests/test_fix_unicode_html_entities.py:23
Methodtest_clear_cache
(self)
openlibrary/tests/solr/test_data_provider.py:34
Methodtest_client_exception_preserves_status_code
(self, fastapi_client, mock_authenticated_user)
openlibrary/tests/fastapi/test_lists_json.py:203
Methodtest_colon_in_secret_preserved
(self, mock_web)
openlibrary/plugins/upstream/tests/test_account.py:494
Functiontest_commify
()
openlibrary/tests/core/test_helpers.py:96
Functiontest_commify_list
(name: str, seq: Sequence[str], locale: str, expected: str, request_context_fixture)
openlibrary/plugins/upstream/tests/test_utils.py:336
Functiontest_compare_publisher
()
openlibrary/catalog/add_book/tests/test_match.py:250
Functiontest_compute_trending_z_score_zero_for_low_past
()
scripts/solr_updater/tests/test_trending_updater_hourly.py:4
Methodtest_conflicting_ids_cause_error
(self, mock_site)
openlibrary/catalog/add_book/tests/test_load_book.py:170
Methodtest_content_format_prefix_finds_tag_by_slug
decorate_with_tags handles 'content_format:' prefix correctly.
openlibrary/plugins/worksearch/tests/test_subjects.py:111
Methodtest_contributor
(self)
openlibrary/tests/solr/updater/test_work.py:426
Methodtest_cookies_on_verify_human_always_pass_through
(self, monkeypatch)
openlibrary/plugins/openlibrary/tests/test_verification.py:144
Methodtest_count_forwards_filters
(self, fastapi_client)
openlibrary/tests/fastapi/test_bestbook.py:279
Methodtest_count_response_matches_legacy
(self, fastapi_client, params)
openlibrary/tests/fastapi/test_bestbook.py:371
Methodtest_count_works_without_filters
(self, fastapi_client)
openlibrary/tests/fastapi/test_bestbook.py:294
Functiontest_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
Functiontest_create
(config)
openlibrary/plugins/openlibrary/tests/test_listapi.py:63
Methodtest_create
(self)
openlibrary/tests/core/test_db.py:465
Methodtest_create_event
(self)
openlibrary/tests/core/test_db.py:387
Functiontest_create_list_doc
(wildcard)
openlibrary/plugins/upstream/tests/test_account.py:23
Methodtest_create_list_uses_legacy_process_method
(self, fastapi_client, mock_authenticated_user)
openlibrary/tests/fastapi/test_lists_json.py:110
Functiontest_creators_serialize_categories_filter_internal_nodes
UUID-named, ASIN-containing, promotional, and generic root nodes are excluded.
openlibrary/tests/core/test_vendors.py:776
Functiontest_creators_serialize_does_not_load_dvds
DVD product_group is filtered out regardless of case.
openlibrary/tests/core/test_vendors.py:801
Functiontest_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
Functiontest_creators_serialize_full_book
Golden path: all standard and Creators-API-specific fields serialize correctly.
openlibrary/tests/core/test_vendors.py:708
Functiontest_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
Functiontest_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
Methodtest_date_validation
(self)
openlibrary/plugins/upstream/tests/test_checkins.py:34
Methodtest_dates
(self, marcfile, expect)
openlibrary/catalog/marc/tests/test_parse.py:159
Functiontest_datestr
(monkeypatch)
openlibrary/tests/core/test_helpers.py:70
Functiontest_day_buckets
(days_ago, expected)
openlibrary/plugins/openlibrary/tests/test_patron_status.py:65
Methodtest_day_out_of_range
(self)
openlibrary/plugins/upstream/tests/test_checkins.py:49
Methodtest_ddcs
(self, doc_ddcs, solr_ddcs, sort_ddc_index)
openlibrary/tests/solr/updater/test_work.py:416
Methodtest_debug_openapi_structure
Debug test to see the actual OpenAPI structure for search endpoint parameters.
openlibrary/tests/fastapi/test_search.py:369
Methodtest_dedupes_a_prolific_author_to_a_single_row
(self)
openlibrary/plugins/worksearch/tests/test_author_suggestion.py:77
Methodtest_default_get_gets_latest_version
(self)
scripts/tests/test_copydocs.py:84
Methodtest_delete
(self, setup_db)
openlibrary/coverstore/tests/test_webapp.py:123
Methodtest_delete
(self)
openlibrary/tests/core/test_cache.py:81
Methodtest_delete
(self, import_item_db)
openlibrary/tests/core/test_imports.py:127
Methodtest_delete
(self)
openlibrary/tests/solr/test_update.py:115
Methodtest_delete_admin_user
Admin user can delete any list, even ones they don't own.
openlibrary/tests/fastapi/test_lists_delete.py:108
Methodtest_delete_admin_via_legacy_route
Admin can delete via legacy route too.
openlibrary/tests/fastapi/test_lists_delete.py:137
Methodtest_delete_all_by_username
(self)
openlibrary/tests/core/test_db.py:266
Methodtest_delete_by_id
(self)
openlibrary/tests/core/test_db.py:410
Methodtest_delete_by_username
(self)
openlibrary/tests/core/test_db.py:417
Methodtest_delete_by_username
(self)
openlibrary/tests/core/test_db.py:501
Methodtest_delete_calls_api
Test that delete calls the IA lending API.
openlibrary/tests/core/test_waitinglist.py:256
Methodtest_delete_forbidden_via_legacy_route
Non-admin cannot delete via legacy route either.
openlibrary/tests/fastapi/test_lists_delete.py:147
Methodtest_delete_forbidden_wrong_user
User cannot delete another user's list (non-admin).
openlibrary/tests/fastapi/test_lists_delete.py:99
Methodtest_delete_list_not_found
List not found returns 404.
openlibrary/tests/fastapi/test_lists_delete.py:83
Methodtest_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
Methodtest_delete_success
User can delete their own list.
openlibrary/tests/fastapi/test_lists_delete.py:68
Methodtest_delete_unauthenticated
Unauthenticated request returns 401.
openlibrary/tests/fastapi/test_lists_delete.py:78
Methodtest_delete_with_batch_id
(self, import_item_db)
openlibrary/tests/core/test_imports.py:133
Methodtest_delete_wrong_type
Document exists but is not a list type returns 404.
openlibrary/tests/fastapi/test_lists_delete.py:91
Methodtest_deletes_old_orphans
(self)
openlibrary/tests/solr/updater/test_edition.py:9
Methodtest_deletes_spam_lists
(self, mock_site)
openlibrary/plugins/admin/tests/test_code.py:111
Methodtest_deletes_spam_works
(self, mock_site)
openlibrary/plugins/admin/tests/test_code.py:50
Methodtest_description_as_dict_unescaped
description stored as {type, value} dict is unescaped.
openlibrary/catalog/add_book/tests/test_add_book.py:2033
Methodtest_details_true_passed_to_dynlinks
details=true is passed to dynlinks.
openlibrary/tests/fastapi/test_books.py:243
Methodtest_detects_hex_entity
Hex character references like A are detected.
scripts/tests/test_fix_unicode_html_entities.py:15
Methodtest_detects_named_entity
Named entities like & are detected.
scripts/tests/test_fix_unicode_html_entities.py:19
Methodtest_detects_numeric_entity
Numeric character references like С are detected.
scripts/tests/test_fix_unicode_html_entities.py:11
Methodtest_dict_converts_datetime_to_iso_string
Test that datetime objects are converted to ISO format strings.
openlibrary/tests/core/test_waitinglist.py:194
Methodtest_dict_field_preserves_type_key
Fixing a dict field value preserves the type key.
scripts/tests/test_fix_unicode_html_entities.py:57
Methodtest_dict_is_json_serializable
Test that the dict output can be serialized to JSON.
openlibrary/tests/core/test_waitinglist.py:203
Methodtest_dict_preserves_all_keys
Test that dict() preserves all original keys.
openlibrary/tests/core/test_waitinglist.py:220
Functiontest_dicthash
()
openlibrary/plugins/upstream/tests/test_merge_authors.py:336
Functiontest_doctest
(module)
openlibrary/coverstore/tests/test_doctests.py:15
Functiontest_doctest
(test)
openlibrary/plugins/books/tests/test_doctests.py:14
← previousnext →5,001–5,100 of 6,179, ranked by callers