MCPcopy Create free account

hub / github.com/internetarchive/openlibrary / functions

Functions6,179 in github.com/internetarchive/openlibrary

Methodtest_account_not_found
(self, fastapi_client)
openlibrary/tests/fastapi/test_account.py:187
Methodtest_action_save
(self)
scripts/tests/test_solr_updater.py:11
Methodtest_add
(self)
openlibrary/mocks/tests/test_mock_memcache.py:19
Functiontest_add_db_name
()
openlibrary/catalog/add_book/tests/test_match.py:34
Functiontest_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
Functiontest_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
Methodtest_add_items_legacy
This tests the legacy format of list[str] for items.
openlibrary/tests/core/test_imports.py:175
Methodtest_add_note
Add a note: returns 200 and calls Booknotes.add with correct args.
openlibrary/tests/fastapi/test_booknotes.py:23
Methodtest_add_note_with_edition_id
Add note with edition_id: validates OL format and passes numeric ID.
openlibrary/tests/fastapi/test_booknotes.py:40
Methodtest_add_note_with_lowercase_edition_id
Add note with lowercase edition_id: accepts case-insensitive OL format.
openlibrary/tests/fastapi/test_booknotes.py:55
Methodtest_add_response_matches_legacy
(self, fastapi_client, mock_authenticated_user, mock_bookshelves_model)
openlibrary/tests/fastapi/test_work_bookshelves.py:162
Functiontest_add_seeds
(config)
openlibrary/plugins/openlibrary/tests/test_listapi.py:98
Functiontest_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
Functiontest_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
Methodtest_all
(self, mock_site, mock_ia)
openlibrary/plugins/openlibrary/tests/test_home.py:141
Methodtest_all_five_stars
A book with only 5-star ratings should have a high sortable rating.
openlibrary/tests/core/test_ratings.py:14
Functiontest_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
Functiontest_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
Methodtest_all_params_combined
All parameters can be used together.
openlibrary/tests/fastapi/test_books.py:295
Methodtest_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
Methodtest_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
Methodtest_all_star_counts_preserved
Ensure all individual star counts are preserved.
openlibrary/tests/core/test_ratings.py:102
Methodtest_allows_zero_olid_but_returns_404
(self, fastapi_client, patched_site)
openlibrary/tests/fastapi/test_work_editions_author_works.py:126
Methodtest_allows_zero_olid_but_returns_404
(self, fastapi_client, patched_site)
openlibrary/tests/fastapi/test_work_editions_author_works.py:248
Methodtest_already_in_correct_format
Test /subjects/ format passes through.
openlibrary/plugins/openlibrary/tests/test_partials.py:31
Methodtest_alternate_names
(self)
openlibrary/plugins/upstream/tests/test_merge_authors.py:247
Methodtest_alternative_title
(self)
openlibrary/tests/solr/updater/test_work.py:255
Functiontest_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
Functiontest_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
Functiontest_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
Functiontest_amazon_affiliate_url_no_identifiers_returns_none
Without isbn or asin, function returns None.
openlibrary/tests/core/test_vendors.py:838
Methodtest_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
Methodtest_archive
(self)
openlibrary/coverstore/tests/test_webapp.py:187
Methodtest_archive_status
(self)
openlibrary/coverstore/tests/test_webapp.py:181
Methodtest_async_cache_behavior
Check that await works and caching occurs.
openlibrary/tests/core/test_cache.py:160
Methodtest_async_signatures
Ensure metadata is preserved for async functions.
openlibrary/tests/core/test_cache.py:145
Methodtest_async_tuple_keys
Ensure async works with complex tuple keys.
openlibrary/tests/core/test_cache.py:190
Methodtest_athena_js_returns_200
athena.js is proxied with correct status, headers, and body.
openlibrary/tests/fastapi/test_cdn.py:37
Methodtest_attributes
(self)
scripts/tests/test_detect_missing_i18n.py:31
Functiontest_audience_targeting_logged_in
()
openlibrary/tests/core/test_experiments.py:84
Functiontest_audience_targeting_logged_out
()
openlibrary/tests/core/test_experiments.py:106
Functiontest_authenticate_user_from_cookie_returns_none_for_bad_format
()
openlibrary/tests/fastapi/test_auth.py:44
Functiontest_authenticate_user_from_cookie_returns_none_for_empty_string
()
openlibrary/tests/fastapi/test_auth.py:39
Functiontest_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
Functiontest_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
Functiontest_authenticate_user_from_cookie_returns_none_for_none
()
openlibrary/tests/fastapi/test_auth.py:34
Functiontest_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
Methodtest_author_contrib
(self)
openlibrary/catalog/add_book/tests/test_match.py:173
Functiontest_author_dates_match
()
openlibrary/tests/catalog/test_utils.py:30
Functiontest_author_dates_match_death_only
()
openlibrary/catalog/utils/tests/test_catalog_utils.py:31
Functiontest_author_dates_match_false
(a)
openlibrary/catalog/utils/tests/test_catalog_utils.py:27
Functiontest_author_dates_match_true
(a)
openlibrary/catalog/utils/tests/test_catalog_utils.py:22
Methodtest_author_from_700
(self, mock_site, add_languages)
openlibrary/catalog/add_book/tests/test_add_book.py:511
Methodtest_author_importer_drops_honorifics
(self, name, expected)
openlibrary/catalog/add_book/tests/test_load_book.py:109
Methodtest_author_info
(self)
openlibrary/tests/solr/updater/test_work.py:320
Methodtest_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
Methodtest_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
Methodtest_authors
(self)
openlibrary/tests/core/test_connections.py:79
Methodtest_authors
(self, monkeypatch)
openlibrary/plugins/upstream/tests/test_addbook.py:32
Methodtest_authors
(self, mock_site, mock_ia)
openlibrary/plugins/openlibrary/tests/test_home.py:145
Functiontest_autocomplete
()
openlibrary/plugins/worksearch/tests/test_autocomplete.py:10
Methodtest_award_add_response_matches_legacy
(self, fastapi_client, mock_authenticated_user, mock_bestbook_model, use_query_params)
openlibrary/tests/fastapi/test_bestbook.py:305
Methodtest_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
Methodtest_award_remove_response_matches_legacy
(self, fastapi_client, mock_authenticated_user, mock_bestbook_model, use_query_params)
openlibrary/tests/fastapi/test_bestbook.py:322
Methodtest_award_update_response_matches_legacy
(self, fastapi_client, mock_authenticated_user, mock_bestbook_model, use_query_params)
openlibrary/tests/fastapi/test_bestbook.py:334
Methodtest_bad_apple_in_solr_request
(self, monkeypatch, monkeytime)
openlibrary/tests/solr/test_utils.py:129
Methodtest_bad_binary_data
(self)
openlibrary/tests/catalog/test_get_ia.py:116
Methodtest_bad_hmac_format
(self, fastapi_client)
openlibrary/tests/fastapi/test_account.py:164
Functiontest_bad_image
(image_dir)
openlibrary/coverstore/tests/test_coverstore.py:48
Methodtest_bad_json
(self, httpx_mock, monkeypatch)
openlibrary/tests/core/test_fulltext.py:29
Methodtest_bad_marc_line
(self)
openlibrary/catalog/marc/tests/test_marc_binary.py:38
Functiontest_bash_run
()
scripts/monitoring/tests/test_utils_py.py:7
Functiontest_bash_run
()
scripts/monitoring/tests/test_utils_sh.py:6
Methodtest_basic_copy
(self)
scripts/tests/test_copydocs.py:79
Methodtest_bearer_prefix_rejected
(self, mock_web)
openlibrary/plugins/upstream/tests/test_account.py:463
Functiontest_bestbook_add_award
Test adding a best book award.
openlibrary/plugins/openlibrary/tests/test_bestbookapi.py:41
Functiontest_bestbook_add_unread_award
Test awarding a book that hasn't been read by reader.
openlibrary/plugins/openlibrary/tests/test_bestbookapi.py:141
Functiontest_bestbook_award_limit
Test award limit - one award per book/topic.
openlibrary/plugins/openlibrary/tests/test_bestbookapi.py:89
Functiontest_bestbook_award_not_authenticated
Test awarding a book without authentication.
openlibrary/plugins/openlibrary/tests/test_bestbookapi.py:118
Functiontest_bestbook_award_removal
Test removing a best book award.
openlibrary/plugins/openlibrary/tests/test_bestbookapi.py:67
Functiontest_bestbook_count
Test fetching best book award count.
openlibrary/plugins/openlibrary/tests/test_bestbookapi.py:167
Functiontest_betterworldbooks_fmt
()
openlibrary/tests/core/test_vendors.py:241
Methodtest_binary
(self, i)
openlibrary/catalog/marc/tests/test_parse.py:124
Methodtest_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
Methodtest_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
Functiontest_book_urls
()
openlibrary/tests/core/test_processors.py:88
Methodtest_books_json_path_returns_plain_json
Path ending in .json returns plain JSON.
openlibrary/tests/fastapi/test_books.py:171
Methodtest_books_path_returns_js_variable
Path without .json returns JavaScript variable wrapper.
openlibrary/tests/fastapi/test_books.py:179
Methodtest_boundary_values
(self)
openlibrary/plugins/upstream/tests/test_checkins.py:54
Functiontest_build_pool
(mock_site)
openlibrary/catalog/add_book/tests/test_add_book.py:628
Functiontest_build_query
(add_languages)
openlibrary/catalog/add_book/tests/test_load_book.py:61
Methodtest_build_titles
(self)
openlibrary/catalog/add_book/tests/test_match.py:203
Methodtest_build_titles_ampersand
(self)
openlibrary/catalog/add_book/tests/test_match.py:216
Methodtest_build_titles_complex
(self)
openlibrary/catalog/add_book/tests/test_match.py:222
Functiontest_by_statement
()
openlibrary/catalog/marc/tests/test_marc.py:186
Methodtest_cache
(self)
openlibrary/tests/core/test_cache.py:115
Methodtest_cache
(self)
openlibrary/tests/core/test_lending.py:57
Methodtest_cache_with_tuple_keys
(self)
openlibrary/tests/core/test_cache.py:127
Methodtest_caches_independently_per_username
(self)
openlibrary/plugins/upstream/tests/test_models.py:136
Methodtest_caches_result_for_same_username
(self, monkeypatch)
openlibrary/plugins/upstream/tests/test_models.py:118
← previousnext →4,901–5,000 of 6,179, ranked by callers