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_account_not_found
(self, fastapi_client)
openlibrary/tests/fastapi/test_account.py:187
Method
test_action_save
(self)
scripts/tests/test_solr_updater.py:11
Method
test_add
(self)
openlibrary/mocks/tests/test_mock_memcache.py:19
Function
test_add_db_name
()
openlibrary/catalog/add_book/tests/test_match.py:34
Function
test_add_description_to_work
Ensure that if an edition has a description, and the associated work does not, that the edition's description is added to the work.
openlibrary/catalog/add_book/tests/test_add_book.py:1282
Function
test_add_identifiers_to_edition
Ensure a rec's identifiers that are not present in a matched edition are added to that matched edition.
openlibrary/catalog/add_book/tests/test_add_book.py:1401
Method
test_add_items_legacy
This tests the legacy format of list[str] for items.
openlibrary/tests/core/test_imports.py:175
Method
test_add_note
Add a note: returns 200 and calls Booknotes.add with correct args.
openlibrary/tests/fastapi/test_booknotes.py:23
Method
test_add_note_with_edition_id
Add note with edition_id: validates OL format and passes numeric ID.
openlibrary/tests/fastapi/test_booknotes.py:40
Method
test_add_note_with_lowercase_edition_id
Add note with lowercase edition_id: accepts case-insensitive OL format.
openlibrary/tests/fastapi/test_booknotes.py:55
Method
test_add_response_matches_legacy
(self, fastapi_client, mock_authenticated_user, mock_bookshelves_model)
openlibrary/tests/fastapi/test_work_bookshelves.py:162
Function
test_add_seeds
(config)
openlibrary/plugins/openlibrary/tests/test_listapi.py:98
Function
test_add_subjects_to_work_deduplicates
Ensure a rec's subjects, after a case insensitive check, are added to an existing Work if not already present.
openlibrary/catalog/add_book/tests/test_add_book.py:1335
Function
test_adding_list_field_items_to_edition_deduplicates_input
Ensure a rec's edition_list_fields that are not present in a matched edition are added to that matched edition.
openlibrary/catalog/add_book/tests/test_add_book.py:1454
Method
test_all
(self, mock_site, mock_ia)
openlibrary/plugins/openlibrary/tests/test_home.py:141
Method
test_all_five_stars
A book with only 5-star ratings should have a high sortable rating.
openlibrary/tests/core/test_ratings.py:14
Function
test_all_jinja_templates_compile
Every ``.html.jinja`` template in the project should compile. Uses pytest 9's built-in ``subtests`` fixture so a single broken template doesn
openlibrary/tests/test_templates.py:101
Function
test_all_jinja_templates_render_valid_html
Every ``.jinja`` template should render structurally valid HTML. Uses ``RenderableUndefined`` so templates render without mock data. Structur
openlibrary/tests/core/test_jinja.py:239
Method
test_all_params_combined
All parameters can be used together.
openlibrary/tests/fastapi/test_books.py:295
Method
test_all_prod_services_need_profile
Without the profiles field, a service will get deployed to _every_ server. That is not likely what you want. If that is what you want
tests/test_docker_compose.py:27
Method
test_all_root_services_must_be_in_prod
Each service in compose.yaml should also be in compose.production.yaml with a profile. Services without profiles will match w
tests/test_docker_compose.py:12
Method
test_all_star_counts_preserved
Ensure all individual star counts are preserved.
openlibrary/tests/core/test_ratings.py:102
Method
test_allows_zero_olid_but_returns_404
(self, fastapi_client, patched_site)
openlibrary/tests/fastapi/test_work_editions_author_works.py:126
Method
test_allows_zero_olid_but_returns_404
(self, fastapi_client, patched_site)
openlibrary/tests/fastapi/test_work_editions_author_works.py:248
Method
test_already_in_correct_format
Test /subjects/ format passes through.
openlibrary/plugins/openlibrary/tests/test_partials.py:31
Method
test_alternate_names
(self)
openlibrary/plugins/upstream/tests/test_merge_authors.py:247
Method
test_alternative_title
(self)
openlibrary/tests/solr/updater/test_work.py:255
Function
test_amazon_affiliate_url_978_isbn_uses_dp_route
978-prefix ISBN-13 converts to ISBN-10 -> /dp/ link is used.
openlibrary/tests/core/test_vendors.py:811
Function
test_amazon_affiliate_url_979_isbn_falls_back_to_search_url
979-prefix ISBN-13 has no ISBN-10 -> Amazon search URL is used (fix for #6572). 'Pickleball Soap Opera' (ISBN-13 9798776159572) previously produc
openlibrary/tests/core/test_vendors.py:819
Function
test_amazon_affiliate_url_explicit_asin_overrides_isbn_conversion
Explicit ASIN takes priority over isbn_13_to_isbn_10 conversion.
openlibrary/tests/core/test_vendors.py:831
Function
test_amazon_affiliate_url_no_identifiers_returns_none
Without isbn or asin, function returns None.
openlibrary/tests/core/test_vendors.py:838
Method
test_arbitrary_query_params_not_passed_down
Test that arbitrary query parameters like osp_count_fake are NOT passed down.
openlibrary/tests/fastapi/test_search.py:229
Method
test_archive
(self)
openlibrary/coverstore/tests/test_webapp.py:187
Method
test_archive_status
(self)
openlibrary/coverstore/tests/test_webapp.py:181
Method
test_async_cache_behavior
Check that await works and caching occurs.
openlibrary/tests/core/test_cache.py:160
Method
test_async_signatures
Ensure metadata is preserved for async functions.
openlibrary/tests/core/test_cache.py:145
Method
test_async_tuple_keys
Ensure async works with complex tuple keys.
openlibrary/tests/core/test_cache.py:190
Method
test_athena_js_returns_200
athena.js is proxied with correct status, headers, and body.
openlibrary/tests/fastapi/test_cdn.py:37
Method
test_attributes
(self)
scripts/tests/test_detect_missing_i18n.py:31
Function
test_audience_targeting_logged_in
()
openlibrary/tests/core/test_experiments.py:84
Function
test_audience_targeting_logged_out
()
openlibrary/tests/core/test_experiments.py:106
Function
test_authenticate_user_from_cookie_returns_none_for_bad_format
()
openlibrary/tests/fastapi/test_auth.py:44
Function
test_authenticate_user_from_cookie_returns_none_for_empty_string
()
openlibrary/tests/fastapi/test_auth.py:39
Function
test_authenticate_user_from_cookie_returns_none_for_invalid_hash
A cookie with a structurally valid format but wrong hash returns None.
openlibrary/tests/fastapi/test_auth.py:50
Function
test_authenticate_user_from_cookie_returns_none_for_missing_people_prefix
A cookie whose user_key doesn't start with /people/ is rejected.
openlibrary/tests/fastapi/test_auth.py:57
Function
test_authenticate_user_from_cookie_returns_none_for_none
()
openlibrary/tests/fastapi/test_auth.py:34
Function
test_authenticate_user_from_cookie_returns_user_for_valid_cookie
A structurally valid cookie with a passing hash returns an AuthenticatedUser.
openlibrary/tests/fastapi/test_auth.py:64
Method
test_author_contrib
(self)
openlibrary/catalog/add_book/tests/test_match.py:173
Function
test_author_dates_match
()
openlibrary/tests/catalog/test_utils.py:30
Function
test_author_dates_match_death_only
()
openlibrary/catalog/utils/tests/test_catalog_utils.py:31
Function
test_author_dates_match_false
(a)
openlibrary/catalog/utils/tests/test_catalog_utils.py:27
Function
test_author_dates_match_true
(a)
openlibrary/catalog/utils/tests/test_catalog_utils.py:22
Method
test_author_from_700
(self, mock_site, add_languages)
openlibrary/catalog/add_book/tests/test_add_book.py:511
Method
test_author_importer_drops_honorifics
(self, name, expected)
openlibrary/catalog/add_book/tests/test_load_book.py:109
Method
test_author_info
(self)
openlibrary/tests/solr/updater/test_work.py:320
Method
test_author_match_is_case_insensitive_for_names
Ensure name searches for John Smith and JOHN SMITH return the same record.
openlibrary/catalog/add_book/tests/test_load_book.py:113
Method
test_author_wildcard_match_with_no_matches_creates_author_with_wildcard
This test helps ensure compatibility with production; we should not use this.
openlibrary/catalog/add_book/tests/test_load_book.py:131
Method
test_authors
(self)
openlibrary/tests/core/test_connections.py:79
Method
test_authors
(self, monkeypatch)
openlibrary/plugins/upstream/tests/test_addbook.py:32
Method
test_authors
(self, mock_site, mock_ia)
openlibrary/plugins/openlibrary/tests/test_home.py:145
Function
test_autocomplete
()
openlibrary/plugins/worksearch/tests/test_autocomplete.py:10
Method
test_award_add_response_matches_legacy
(self, fastapi_client, mock_authenticated_user, mock_bestbook_model, use_query_params)
openlibrary/tests/fastapi/test_bestbook.py:305
Method
test_award_domain_error_response_matches_legacy
(self, fastapi_client, mock_authenticated_user, mock_bestbook_model, use_query_params)
openlibrary/tests/fastapi/test_bestbook.py:350
Method
test_award_remove_response_matches_legacy
(self, fastapi_client, mock_authenticated_user, mock_bestbook_model, use_query_params)
openlibrary/tests/fastapi/test_bestbook.py:322
Method
test_award_update_response_matches_legacy
(self, fastapi_client, mock_authenticated_user, mock_bestbook_model, use_query_params)
openlibrary/tests/fastapi/test_bestbook.py:334
Method
test_bad_apple_in_solr_request
(self, monkeypatch, monkeytime)
openlibrary/tests/solr/test_utils.py:129
Method
test_bad_binary_data
(self)
openlibrary/tests/catalog/test_get_ia.py:116
Method
test_bad_hmac_format
(self, fastapi_client)
openlibrary/tests/fastapi/test_account.py:164
Function
test_bad_image
(image_dir)
openlibrary/coverstore/tests/test_coverstore.py:48
Method
test_bad_json
(self, httpx_mock, monkeypatch)
openlibrary/tests/core/test_fulltext.py:29
Method
test_bad_marc_line
(self)
openlibrary/catalog/marc/tests/test_marc_binary.py:38
Function
test_bash_run
()
scripts/monitoring/tests/test_utils_py.py:7
Function
test_bash_run
()
scripts/monitoring/tests/test_utils_sh.py:6
Method
test_basic_copy
(self)
scripts/tests/test_copydocs.py:79
Method
test_bearer_prefix_rejected
(self, mock_web)
openlibrary/plugins/upstream/tests/test_account.py:463
Function
test_bestbook_add_award
Test adding a best book award.
openlibrary/plugins/openlibrary/tests/test_bestbookapi.py:41
Function
test_bestbook_add_unread_award
Test awarding a book that hasn't been read by reader.
openlibrary/plugins/openlibrary/tests/test_bestbookapi.py:141
Function
test_bestbook_award_limit
Test award limit - one award per book/topic.
openlibrary/plugins/openlibrary/tests/test_bestbookapi.py:89
Function
test_bestbook_award_not_authenticated
Test awarding a book without authentication.
openlibrary/plugins/openlibrary/tests/test_bestbookapi.py:118
Function
test_bestbook_award_removal
Test removing a best book award.
openlibrary/plugins/openlibrary/tests/test_bestbookapi.py:67
Function
test_bestbook_count
Test fetching best book award count.
openlibrary/plugins/openlibrary/tests/test_bestbookapi.py:167
Function
test_betterworldbooks_fmt
()
openlibrary/tests/core/test_vendors.py:241
Method
test_binary
(self, i)
openlibrary/catalog/marc/tests/test_parse.py:124
Method
test_birth_and_death_date_match_is_on_year_strings
The lowest priority match is an exact surname match + birth and death date matches, as shown above, but additionally, use only years
openlibrary/catalog/add_book/tests/test_load_book.py:409
Method
test_book_page_edit_missing_does_not_raise
When bulk tagging from search results, book_page_edit is not sent by the frontend. Previously this caused an AttributeError because
openlibrary/plugins/openlibrary/tests/test_bulk_tag.py:25
Function
test_book_urls
()
openlibrary/tests/core/test_processors.py:88
Method
test_books_json_path_returns_plain_json
Path ending in .json returns plain JSON.
openlibrary/tests/fastapi/test_books.py:171
Method
test_books_path_returns_js_variable
Path without .json returns JavaScript variable wrapper.
openlibrary/tests/fastapi/test_books.py:179
Method
test_boundary_values
(self)
openlibrary/plugins/upstream/tests/test_checkins.py:54
Function
test_build_pool
(mock_site)
openlibrary/catalog/add_book/tests/test_add_book.py:628
Function
test_build_query
(add_languages)
openlibrary/catalog/add_book/tests/test_load_book.py:61
Method
test_build_titles
(self)
openlibrary/catalog/add_book/tests/test_match.py:203
Method
test_build_titles_ampersand
(self)
openlibrary/catalog/add_book/tests/test_match.py:216
Method
test_build_titles_complex
(self)
openlibrary/catalog/add_book/tests/test_match.py:222
Function
test_by_statement
()
openlibrary/catalog/marc/tests/test_marc.py:186
Method
test_cache
(self)
openlibrary/tests/core/test_cache.py:115
Method
test_cache
(self)
openlibrary/tests/core/test_lending.py:57
Method
test_cache_with_tuple_keys
(self)
openlibrary/tests/core/test_cache.py:127
Method
test_caches_independently_per_username
(self)
openlibrary/plugins/upstream/tests/test_models.py:136
Method
test_caches_result_for_same_username
(self, monkeypatch)
openlibrary/plugins/upstream/tests/test_models.py:118
← previous
next →
4,901–5,000 of 6,179, ranked by callers