MCPcopy Create free account

hub / github.com/internetarchive/openlibrary / functions

Functions6,179 in github.com/internetarchive/openlibrary

Methodtest_does_not_delete_edited_lists
(self, mock_site)
openlibrary/plugins/admin/tests/test_code.py:137
Methodtest_does_not_match_a_query_mid_word_inside_a_name_token
(self)
openlibrary/plugins/worksearch/tests/test_author_suggestion.py:39
Methodtest_does_not_match_a_title_that_skews_to_one_author
(self)
openlibrary/plugins/worksearch/tests/test_author_suggestion.py:42
Methodtest_does_not_undelete
(self, mock_site)
openlibrary/plugins/admin/tests/test_code.py:162
Methodtest_donate_js_returns_200
donate.js is proxied with correct status, headers, and body.
openlibrary/tests/fastapi/test_cdn.py:28
Methodtest_dont_remove_prevents_toggle_removal
(self, fastapi_client, mock_authenticated_user, mock_bookshelves_model)
openlibrary/tests/fastapi/test_work_bookshelves.py:118
Methodtest_dont_remove_response_matches_legacy
(self, fastapi_client, mock_authenticated_user, mock_bookshelves_model)
openlibrary/tests/fastapi/test_work_bookshelves.py:194
Methodtest_dot_notation
(self)
openlibrary/tests/core/test_features.py:175
Methodtest_dummy_data_to_satisfy_parse_data_is_removed
(self, rec, expected)
openlibrary/catalog/add_book/tests/test_add_book.py:1835
Functiontest_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
Functiontest_dynlinks
(monkeypatch)
openlibrary/plugins/books/tests/test_dynlinks.py:336
Functiontest_dynlinks_details
(monkeypatch)
openlibrary/plugins/books/tests/test_dynlinks.py:432
Functiontest_dynlinks_ia
(monkeypatch)
openlibrary/plugins/books/tests/test_dynlinks.py:416
Functiontest_dynlinks_public
(monkeypatch)
openlibrary/plugins/books/tests/test_dynlinks.py:363
Methodtest_editing_edition
(self, monkeypatch)
openlibrary/plugins/upstream/tests/test_addbook.py:207
Methodtest_editing_orphan_creates_work
(self, monkeypatch)
openlibrary/plugins/upstream/tests/test_addbook.py:44
Methodtest_editing_work
(self, monkeypatch)
openlibrary/plugins/upstream/tests/test_addbook.py:170
Methodtest_editing_work_and_edition
(self, monkeypatch)
openlibrary/plugins/upstream/tests/test_addbook.py:244
Methodtest_edition_count_for_doc
(self)
openlibrary/olbase/tests/test_events.py:68
Methodtest_edition_count_when_editions_in_data_provider
(self)
openlibrary/tests/solr/updater/test_work.py:59
Methodtest_edition_count_when_editions_on_work
(self)
openlibrary/tests/solr/updater/test_work.py:102
Methodtest_edition_key
(self)
openlibrary/tests/solr/updater/test_work.py:114
Functiontest_editions_match_identical_record
(mock_site)
openlibrary/catalog/add_book/tests/test_match.py:21
Functiontest_editions_matched
(mock_site, add_languages, ia_writeback)
openlibrary/catalog/add_book/tests/test_add_book.py:105
Functiontest_editions_matched_no_results
(mock_site)
openlibrary/catalog/add_book/tests/test_add_book.py:97
Methodtest_editior_role_from_700
(self, mock_site, add_languages)
openlibrary/catalog/add_book/tests/test_add_book.py:525
Methodtest_empty_access_raises
(self, mock_web)
openlibrary/plugins/upstream/tests/test_account.py:481
Methodtest_empty_counts
Test with no ratings.
openlibrary/tests/core/test_ratings.py:94
Methodtest_empty_list
(self, fastapi_client, mock_optional_authenticated_user)
openlibrary/tests/fastapi/test_follows.py:33
Methodtest_empty_results_no_pagination
When there are no results, no pagination links.
openlibrary/plugins/openlibrary/tests/test_lists.py:201
Methodtest_empty_secret_raises
(self, mock_web)
openlibrary/plugins/upstream/tests/test_account.py:475
Methodtest_empty_string_returns_false
Empty strings return False.
scripts/tests/test_fix_unicode_html_entities.py:27
Methodtest_empty_strings
(self)
scripts/tests/test_detect_missing_i18n.py:13
Methodtest_empty_values_filtered
(self)
openlibrary/tests/fastapi/test_models.py:131
Methodtest_empty_works_list
(self, fastapi_client, mock_get_trending_books)
openlibrary/tests/fastapi/test_trending.py:49
Methodtest_encode_args
(self)
openlibrary/tests/core/test_cache.py:11
Methodtest_enqueues_orphans_as_works
(self)
openlibrary/tests/solr/updater/test_edition.py:23
Functiontest_entity_decode
()
openlibrary/plugins/upstream/tests/test_utils.py:44
Methodtest_exception_filter
(self, monkeytime)
openlibrary/utils/tests/test_retry.py:9
Methodtest_excludes_fav_ia_collections
(self)
openlibrary/tests/solr/updater/test_work.py:517
Methodtest_excludes_obsolete_pages
(self, capsys)
openlibrary/tests/data/test_dump.py:45
Methodtest_excludes_sensitive_pages
(self, capsys)
openlibrary/tests/data/test_dump.py:36
Functiontest_existing_work
(mock_site, add_languages)
openlibrary/catalog/add_book/tests/test_add_book.py:1026
Functiontest_existing_work_with_subtitle
(mock_site, add_languages)
openlibrary/catalog/add_book/tests/test_add_book.py:1059
Methodtest_expand_isbns
(self)
openlibrary/olbase/tests/test_ol_infobase.py:5
Methodtest_expand_record
(self)
openlibrary/catalog/add_book/tests/test_match.py:108
Methodtest_expand_record_isbn
(self)
openlibrary/catalog/add_book/tests/test_match.py:157
Methodtest_expand_record_publish_country
(self)
openlibrary/catalog/add_book/tests/test_match.py:127
Methodtest_expand_record_transfer_fields
(self)
openlibrary/catalog/add_book/tests/test_match.py:138
Methodtest_expired_token
(self, fastapi_client)
openlibrary/tests/fastapi/test_account.py:152
Methodtest_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
Methodtest_expiry_in_hours_when_expired
Test that expired loans return 0 hours.
openlibrary/tests/core/test_waitinglist.py:170
Methodtest_expiry_in_hours_when_expiring_soon
Test calculating hours until expiry for a loan expiring soon.
openlibrary/tests/core/test_waitinglist.py:162
Methodtest_expiry_in_hours_when_no_expiry
Test that loans without expiry return 0 hours.
openlibrary/tests/core/test_waitinglist.py:176
Functiontest_extra_author
(mock_site, add_languages)
openlibrary/catalog/add_book/tests/test_add_book.py:693
Methodtest_extra_fields_are_ignored
(self)
openlibrary/tests/core/test_features.py:55
Functiontest_extract_cover
()
scripts/tests/test_bwb_opds_imports.py:73
Functiontest_extract_isbn_promotes_isbn10
()
scripts/tests/test_bwb_opds_imports.py:54
Functiontest_extract_isbn_returns_none_for_non_isbn_urn
()
scripts/tests/test_bwb_opds_imports.py:49
Functiontest_extract_isbn_strips_urn_prefix
()
scripts/tests/test_bwb_opds_imports.py:45
Functiontest_extract_numeric_id_from_olid
()
openlibrary/utils/tests/test_utils.py:6
Functiontest_extract_price_returns_first_buy_link
()
scripts/tests/test_bwb_opds_imports.py:59
Functiontest_extract_price_returns_none_when_acquisition_missing_price
()
scripts/tests/test_bwb_opds_imports.py:68
Functiontest_extract_price_returns_none_when_no_acquisition
()
scripts/tests/test_bwb_opds_imports.py:63
Functiontest_extract_year
()
openlibrary/tests/core/test_helpers.py:106
Methodtest_falsy_if_no_overrides
(self)
openlibrary/tests/fastapi/test_models.py:153
Methodtest_falsy_inputs_return_empty_list
(self, input_val, expected)
openlibrary/tests/fastapi/test_models.py:112
Functiontest_falsy_user_returns_visitor
()
openlibrary/plugins/openlibrary/tests/test_patron_status.py:27
Methodtest_falsy_value_expires_cookie
(self, mock_web)
openlibrary/plugins/upstream/tests/test_account.py:300
Methodtest_features_is_a_features_instance
(self)
openlibrary/tests/core/test_features.py:169
Methodtest_features_singleton_is_shared
(self)
openlibrary/tests/core/test_features.py:172
Functiontest_fenced_code_preprocessor
()
openlibrary/tests/core/test_olmarkdown.py:78
Methodtest_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
Methodtest_find_keys
(self)
openlibrary/olbase/tests/test_events.py:80
Methodtest_find_lists
(self)
openlibrary/olbase/tests/test_events.py:13
Methodtest_find_lists2
(self)
openlibrary/olbase/tests/test_events.py:33
Functiontest_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
Functiontest_find_match_title_only_promiseitem_against_noisbn_marc
(mock_site)
openlibrary/catalog/add_book/tests/test_add_book.py:2047
Functiontest_find_next_url_present_and_absent
()
scripts/tests/test_bwb_opds_imports.py:145
Methodtest_find_pending_returns_none_with_no_results
Try with only staged items in the DB.
openlibrary/tests/core/test_imports.py:142
Methodtest_find_pending_returns_pending
Try with some pending items now.
openlibrary/tests/core/test_imports.py:146
Methodtest_find_returns_none_when_not_found
Test that find returns None when no matching loan exists.
openlibrary/tests/core/test_waitinglist.py:57
Methodtest_find_returns_waiting_loan
Test finding an existing waiting loan.
openlibrary/tests/core/test_waitinglist.py:42
Methodtest_find_staged_or_pending
Get some staged and pending items by ia_id identifiers.
openlibrary/tests/core/test_imports.py:159
Methodtest_first_match_ol_key
Highest priority match is OL key.
openlibrary/catalog/add_book/tests/test_load_book.py:138
Methodtest_first_page_has_next_no_prev
First page with more results should have next, no prev.
openlibrary/plugins/openlibrary/tests/test_lists.py:174
Methodtest_fix_edition
(self)
openlibrary/plugins/upstream/tests/test_merge_authors.py:165
Methodtest_fix_work
(self)
openlibrary/plugins/upstream/tests/test_merge_authors.py:187
Methodtest_fixes_dict_field_value
HTML entities in the value of a dict field are unescaped.
scripts/tests/test_fix_unicode_html_entities.py:41
Methodtest_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
Methodtest_fixes_multiple_fields
Multiple fields with entities are all fixed; clean fields are excluded.
scripts/tests/test_fix_unicode_html_entities.py:100
Methodtest_fixes_plain_string_field
HTML entities in plain string fields are unescaped.
scripts/tests/test_fix_unicode_html_entities.py:35
Methodtest_fixes_prefixes
(self, capsys)
openlibrary/tests/data/test_dump.py:8
Functiontest_flip_name
()
openlibrary/tests/catalog/test_utils.py:83
Methodtest_folds_diacritics
(self)
openlibrary/plugins/worksearch/tests/test_author_suggestion.py:49
Functiontest_force_new_wikisource_edition
(mock_site, add_languages, ia_writeback)
openlibrary/catalog/add_book/tests/test_add_book.py:126
Functiontest_format_date
(date, only_year, expected)
scripts/tests/test_promise_batch_imports.py:14
Methodtest_format_js_parameter
format=js forces JS variable wrapper even with .json path.
openlibrary/tests/fastapi/test_books.py:195
Methodtest_format_json_parameter
format=json forces plain JSON output.
openlibrary/tests/fastapi/test_books.py:188
Functiontest_format_language_rasise_for_invalid_language
(languages: list[str])
openlibrary/tests/catalog/test_utils.py:444
← previousnext →5,101–5,200 of 6,179, ranked by callers