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_does_not_delete_edited_lists
(self, mock_site)
openlibrary/plugins/admin/tests/test_code.py:137
Method
test_does_not_match_a_query_mid_word_inside_a_name_token
(self)
openlibrary/plugins/worksearch/tests/test_author_suggestion.py:39
Method
test_does_not_match_a_title_that_skews_to_one_author
(self)
openlibrary/plugins/worksearch/tests/test_author_suggestion.py:42
Method
test_does_not_undelete
(self, mock_site)
openlibrary/plugins/admin/tests/test_code.py:162
Method
test_donate_js_returns_200
donate.js is proxied with correct status, headers, and body.
openlibrary/tests/fastapi/test_cdn.py:28
Method
test_dont_remove_prevents_toggle_removal
(self, fastapi_client, mock_authenticated_user, mock_bookshelves_model)
openlibrary/tests/fastapi/test_work_bookshelves.py:118
Method
test_dont_remove_response_matches_legacy
(self, fastapi_client, mock_authenticated_user, mock_bookshelves_model)
openlibrary/tests/fastapi/test_work_bookshelves.py:194
Method
test_dot_notation
(self)
openlibrary/tests/core/test_features.py:175
Method
test_dummy_data_to_satisfy_parse_data_is_removed
(self, rec, expected)
openlibrary/catalog/add_book/tests/test_add_book.py:1835
Function
test_duplicate_ia_book
Here all fields that are 'used' (i.e. read and contribute to the edition) are the same.
openlibrary/catalog/add_book/tests/test_add_book.py:339
Function
test_dynlinks
(monkeypatch)
openlibrary/plugins/books/tests/test_dynlinks.py:336
Function
test_dynlinks_details
(monkeypatch)
openlibrary/plugins/books/tests/test_dynlinks.py:432
Function
test_dynlinks_ia
(monkeypatch)
openlibrary/plugins/books/tests/test_dynlinks.py:416
Function
test_dynlinks_public
(monkeypatch)
openlibrary/plugins/books/tests/test_dynlinks.py:363
Method
test_editing_edition
(self, monkeypatch)
openlibrary/plugins/upstream/tests/test_addbook.py:207
Method
test_editing_orphan_creates_work
(self, monkeypatch)
openlibrary/plugins/upstream/tests/test_addbook.py:44
Method
test_editing_work
(self, monkeypatch)
openlibrary/plugins/upstream/tests/test_addbook.py:170
Method
test_editing_work_and_edition
(self, monkeypatch)
openlibrary/plugins/upstream/tests/test_addbook.py:244
Method
test_edition_count_for_doc
(self)
openlibrary/olbase/tests/test_events.py:68
Method
test_edition_count_when_editions_in_data_provider
(self)
openlibrary/tests/solr/updater/test_work.py:59
Method
test_edition_count_when_editions_on_work
(self)
openlibrary/tests/solr/updater/test_work.py:102
Method
test_edition_key
(self)
openlibrary/tests/solr/updater/test_work.py:114
Function
test_editions_match_identical_record
(mock_site)
openlibrary/catalog/add_book/tests/test_match.py:21
Function
test_editions_matched
(mock_site, add_languages, ia_writeback)
openlibrary/catalog/add_book/tests/test_add_book.py:105
Function
test_editions_matched_no_results
(mock_site)
openlibrary/catalog/add_book/tests/test_add_book.py:97
Method
test_editior_role_from_700
(self, mock_site, add_languages)
openlibrary/catalog/add_book/tests/test_add_book.py:525
Method
test_empty_access_raises
(self, mock_web)
openlibrary/plugins/upstream/tests/test_account.py:481
Method
test_empty_counts
Test with no ratings.
openlibrary/tests/core/test_ratings.py:94
Method
test_empty_list
(self, fastapi_client, mock_optional_authenticated_user)
openlibrary/tests/fastapi/test_follows.py:33
Method
test_empty_results_no_pagination
When there are no results, no pagination links.
openlibrary/plugins/openlibrary/tests/test_lists.py:201
Method
test_empty_secret_raises
(self, mock_web)
openlibrary/plugins/upstream/tests/test_account.py:475
Method
test_empty_string_returns_false
Empty strings return False.
scripts/tests/test_fix_unicode_html_entities.py:27
Method
test_empty_strings
(self)
scripts/tests/test_detect_missing_i18n.py:13
Method
test_empty_values_filtered
(self)
openlibrary/tests/fastapi/test_models.py:131
Method
test_empty_works_list
(self, fastapi_client, mock_get_trending_books)
openlibrary/tests/fastapi/test_trending.py:49
Method
test_encode_args
(self)
openlibrary/tests/core/test_cache.py:11
Method
test_enqueues_orphans_as_works
(self)
openlibrary/tests/solr/updater/test_edition.py:23
Function
test_entity_decode
()
openlibrary/plugins/upstream/tests/test_utils.py:44
Method
test_exception_filter
(self, monkeytime)
openlibrary/utils/tests/test_retry.py:9
Method
test_excludes_fav_ia_collections
(self)
openlibrary/tests/solr/updater/test_work.py:517
Method
test_excludes_obsolete_pages
(self, capsys)
openlibrary/tests/data/test_dump.py:45
Method
test_excludes_sensitive_pages
(self, capsys)
openlibrary/tests/data/test_dump.py:36
Function
test_existing_work
(mock_site, add_languages)
openlibrary/catalog/add_book/tests/test_add_book.py:1026
Function
test_existing_work_with_subtitle
(mock_site, add_languages)
openlibrary/catalog/add_book/tests/test_add_book.py:1059
Method
test_expand_isbns
(self)
openlibrary/olbase/tests/test_ol_infobase.py:5
Method
test_expand_record
(self)
openlibrary/catalog/add_book/tests/test_match.py:108
Method
test_expand_record_isbn
(self)
openlibrary/catalog/add_book/tests/test_match.py:157
Method
test_expand_record_publish_country
(self)
openlibrary/catalog/add_book/tests/test_match.py:127
Method
test_expand_record_transfer_fields
(self)
openlibrary/catalog/add_book/tests/test_match.py:138
Method
test_expired_token
(self, fastapi_client)
openlibrary/tests/fastapi/test_account.py:152
Method
test_expiry_in_hours_clamps_negative_to_zero
Test that a loan that just expired returns 0, not negative hours.
openlibrary/tests/core/test_waitinglist.py:181
Method
test_expiry_in_hours_when_expired
Test that expired loans return 0 hours.
openlibrary/tests/core/test_waitinglist.py:170
Method
test_expiry_in_hours_when_expiring_soon
Test calculating hours until expiry for a loan expiring soon.
openlibrary/tests/core/test_waitinglist.py:162
Method
test_expiry_in_hours_when_no_expiry
Test that loans without expiry return 0 hours.
openlibrary/tests/core/test_waitinglist.py:176
Function
test_extra_author
(mock_site, add_languages)
openlibrary/catalog/add_book/tests/test_add_book.py:693
Method
test_extra_fields_are_ignored
(self)
openlibrary/tests/core/test_features.py:55
Function
test_extract_cover
()
scripts/tests/test_bwb_opds_imports.py:73
Function
test_extract_isbn_promotes_isbn10
()
scripts/tests/test_bwb_opds_imports.py:54
Function
test_extract_isbn_returns_none_for_non_isbn_urn
()
scripts/tests/test_bwb_opds_imports.py:49
Function
test_extract_isbn_strips_urn_prefix
()
scripts/tests/test_bwb_opds_imports.py:45
Function
test_extract_numeric_id_from_olid
()
openlibrary/utils/tests/test_utils.py:6
Function
test_extract_price_returns_first_buy_link
()
scripts/tests/test_bwb_opds_imports.py:59
Function
test_extract_price_returns_none_when_acquisition_missing_price
()
scripts/tests/test_bwb_opds_imports.py:68
Function
test_extract_price_returns_none_when_no_acquisition
()
scripts/tests/test_bwb_opds_imports.py:63
Function
test_extract_year
()
openlibrary/tests/core/test_helpers.py:106
Method
test_falsy_if_no_overrides
(self)
openlibrary/tests/fastapi/test_models.py:153
Method
test_falsy_inputs_return_empty_list
(self, input_val, expected)
openlibrary/tests/fastapi/test_models.py:112
Function
test_falsy_user_returns_visitor
()
openlibrary/plugins/openlibrary/tests/test_patron_status.py:27
Method
test_falsy_value_expires_cookie
(self, mock_web)
openlibrary/plugins/upstream/tests/test_account.py:300
Method
test_features_is_a_features_instance
(self)
openlibrary/tests/core/test_features.py:169
Method
test_features_singleton_is_shared
(self)
openlibrary/tests/core/test_features.py:172
Function
test_fenced_code_preprocessor
()
openlibrary/tests/core/test_olmarkdown.py:78
Method
test_fields_passed_as_list
Test that the 'fields' parameter is always passed as a list to work_search_async. This ensures that comma-separated field strings are properl
openlibrary/tests/fastapi/test_search.py:301
Method
test_find_keys
(self)
openlibrary/olbase/tests/test_events.py:80
Method
test_find_lists
(self)
openlibrary/olbase/tests/test_events.py:13
Method
test_find_lists2
(self)
openlibrary/olbase/tests/test_events.py:33
Function
test_find_match_is_used_when_looking_for_edition_matches
This tests the case where there is an edition_pool, but `find_quick_match()` finds no matches. This should return a match from `find_threshol
openlibrary/catalog/add_book/tests/test_add_book.py:1128
Function
test_find_match_title_only_promiseitem_against_noisbn_marc
(mock_site)
openlibrary/catalog/add_book/tests/test_add_book.py:2047
Function
test_find_next_url_present_and_absent
()
scripts/tests/test_bwb_opds_imports.py:145
Method
test_find_pending_returns_none_with_no_results
Try with only staged items in the DB.
openlibrary/tests/core/test_imports.py:142
Method
test_find_pending_returns_pending
Try with some pending items now.
openlibrary/tests/core/test_imports.py:146
Method
test_find_returns_none_when_not_found
Test that find returns None when no matching loan exists.
openlibrary/tests/core/test_waitinglist.py:57
Method
test_find_returns_waiting_loan
Test finding an existing waiting loan.
openlibrary/tests/core/test_waitinglist.py:42
Method
test_find_staged_or_pending
Get some staged and pending items by ia_id identifiers.
openlibrary/tests/core/test_imports.py:159
Method
test_first_match_ol_key
Highest priority match is OL key.
openlibrary/catalog/add_book/tests/test_load_book.py:138
Method
test_first_page_has_next_no_prev
First page with more results should have next, no prev.
openlibrary/plugins/openlibrary/tests/test_lists.py:174
Method
test_fix_edition
(self)
openlibrary/plugins/upstream/tests/test_merge_authors.py:165
Method
test_fix_work
(self)
openlibrary/plugins/upstream/tests/test_merge_authors.py:187
Method
test_fixes_dict_field_value
HTML entities in the value of a dict field are unescaped.
scripts/tests/test_fix_unicode_html_entities.py:41
Method
test_fixes_list_of_dict_items
HTML entities in list items are unescaped; clean items pass through.
scripts/tests/test_fix_unicode_html_entities.py:68
Method
test_fixes_multiple_fields
Multiple fields with entities are all fixed; clean fields are excluded.
scripts/tests/test_fix_unicode_html_entities.py:100
Method
test_fixes_plain_string_field
HTML entities in plain string fields are unescaped.
scripts/tests/test_fix_unicode_html_entities.py:35
Method
test_fixes_prefixes
(self, capsys)
openlibrary/tests/data/test_dump.py:8
Function
test_flip_name
()
openlibrary/tests/catalog/test_utils.py:83
Method
test_folds_diacritics
(self)
openlibrary/plugins/worksearch/tests/test_author_suggestion.py:49
Function
test_force_new_wikisource_edition
(mock_site, add_languages, ia_writeback)
openlibrary/catalog/add_book/tests/test_add_book.py:126
Function
test_format_date
(date, only_year, expected)
scripts/tests/test_promise_batch_imports.py:14
Method
test_format_js_parameter
format=js forces JS variable wrapper even with .json path.
openlibrary/tests/fastapi/test_books.py:195
Method
test_format_json_parameter
format=json forces plain JSON output.
openlibrary/tests/fastapi/test_books.py:188
Function
test_format_language_rasise_for_invalid_language
(languages: list[str])
openlibrary/tests/catalog/test_utils.py:444
← previous
next →
5,101–5,200 of 6,179, ranked by callers