MCPcopy Create free account

hub / github.com/internetarchive/openlibrary / functions

Functions6,179 in github.com/internetarchive/openlibrary

Methodtest_login_deletes_preserve_intent_cookie_on_valid_redirect
(self, mock_stats, mock_web, mock_ol_account_cls, mock_audit_accounts)
openlibrary/plugins/upstream/tests/test_account.py:334
Functiontest_login_template_does_not_bind_password_value
()
openlibrary/tests/test_templates.py:54
Functiontest_login_with_invalid_credentials
Test that login accepts invalid credentials (TODO: should return 400/401). Current implementation returns 303 and sets a session cookie even for
tests/integration/test_fastapi_auth.py:101
Functiontest_logout_clears_session
Test that logging out clears the session cookie.
tests/integration/test_fastapi_auth.py:79
Methodtest_low_ratings
Test with mostly low ratings.
openlibrary/tests/core/test_ratings.py:36
Functiontest_luqum_parser
()
openlibrary/tests/solr/test_query_utils.py:70
Functiontest_luqum_remove_child
(query: str, to_rem: str, expected: str)
openlibrary/tests/solr/test_query_utils.py:23
Functiontest_luqum_remove_field
()
openlibrary/tests/solr/test_query_utils.py:101
Functiontest_luqum_replace_child
(query: str, to_rep: str, rep_with: str, expected: str)
openlibrary/tests/solr/test_query_utils.py:58
Functiontest_luqum_replace_field
()
openlibrary/tests/solr/test_query_utils.py:86
Methodtest_main_calls_hourly_and_daily_correctly
(self)
scripts/solr_updater/tests/test_trending_updater_init.py:41
Methodtest_main_default_7_days
(self)
scripts/solr_updater/tests/test_trending_updater_init.py:58
Methodtest_main_less_than_one_hour
(self)
scripts/solr_updater/tests/test_trending_updater_init.py:67
Methodtest_main_three_hours
(self)
scripts/solr_updater/tests/test_trending_updater_init.py:83
Methodtest_make_author_adds_the_correct_key
(self)
openlibrary/plugins/upstream/tests/test_addbook.py:493
Functiontest_make_cache_key
(isbn_or_asin: dict[str, Any], expected_key: str)
scripts/tests/test_affiliate_server.py:172
Functiontest_make_redirect_doc
()
openlibrary/plugins/upstream/tests/test_merge_authors.py:90
Methodtest_make_work_does_indeed_make_a_work
(self)
openlibrary/plugins/upstream/tests/test_addbook.py:502
Methodtest_make_work_handles_no_author
(self)
openlibrary/plugins/upstream/tests/test_addbook.py:536
Methodtest_malformed_auth_header
(self, fastapi_client)
openlibrary/tests/fastapi/test_account.py:170
Functiontest_map_data
(input_data, expected_output)
scripts/tests/test_import_open_textbook_library.py:213
Functiontest_map_data
()
scripts/tests/test_import_standard_ebooks.py:131
Functiontest_map_publication_basic_fields
()
scripts/tests/test_bwb_opds_imports.py:79
Functiontest_map_publication_drops_unmappable_language
()
scripts/tests/test_bwb_opds_imports.py:122
Functiontest_map_publication_languages_use_marc21
()
scripts/tests/test_bwb_opds_imports.py:108
Functiontest_map_publication_skips_missing_isbn
()
scripts/tests/test_bwb_opds_imports.py:96
Functiontest_map_publication_skips_missing_title_or_authors
()
scripts/tests/test_bwb_opds_imports.py:101
Methodtest_match_low_threshold
(self)
openlibrary/catalog/add_book/tests/test_match.py:307
Methodtest_match_priority_alternate_names_and_dates
Matching, as a unit, alternate name, birth date, and death date, get second match priority.
openlibrary/catalog/add_book/tests/test_load_book.py:294
Functiontest_match_wikisource_edition
(mock_site, add_languages, ia_writeback)
openlibrary/catalog/add_book/tests/test_add_book.py:147
Functiontest_match_with_bad_chars
()
openlibrary/tests/catalog/test_utils.py:148
Methodtest_match_without_ISBN
(self)
openlibrary/catalog/add_book/tests/test_match.py:265
Functiontest_matched_edition_properly_updates_non_language_fields
Ensure a new language is added even if the existing edition has no language field.
openlibrary/catalog/add_book/tests/test_add_book.py:435
Functiontest_matched_edition_with_new_language_in_rec_adds_language
When records match, but the record has a new language, the new language should be added to the existing edition, but existing languages shoul
openlibrary/catalog/add_book/tests/test_add_book.py:369
Functiontest_matched_edition_with_new_language_is_added_even_if_no_existing_language
Ensure a new language is added even if the existing edition has no language field.
openlibrary/catalog/add_book/tests/test_add_book.py:403
Methodtest_matches_a_query_that_is_a_prefix_of_a_name_word
(self)
openlibrary/plugins/worksearch/tests/test_author_suggestion.py:35
Methodtest_matches_a_surname_substring_of_the_full_name
(self)
openlibrary/plugins/worksearch/tests/test_author_suggestion.py:26
Methodtest_matches_on_a_shared_whole_word
(self)
openlibrary/plugins/worksearch/tests/test_author_suggestion.py:32
Methodtest_matches_the_full_name_typed_out
(self)
openlibrary/plugins/worksearch/tests/test_author_suggestion.py:29
Methodtest_matching_title_author_and_publish_year_but_not_publishers
Matching only title, author, and publish_year should not be sufficient for meeting the match threshold if the publisher is truthy and
openlibrary/catalog/add_book/tests/test_match.py:335
Methodtest_merge_allowed_for_librarian
Librarian (not admin) can merge authors.
openlibrary/tests/fastapi/test_merge_authors.py:192
Methodtest_merge_allowed_for_super_librarian
Super librarian can merge authors.
openlibrary/tests/fastapi/test_merge_authors.py:216
Methodtest_merge_forbidden_non_librarian
Regular user without librarian/admin role cannot merge authors.
openlibrary/tests/fastapi/test_merge_authors.py:170
Methodtest_merge_property
(self)
openlibrary/plugins/upstream/tests/test_merge_authors.py:121
Methodtest_merge_raises_400_on_client_exception
ClientException from AuthorMergeEngine returns 400 with parsed error body.
openlibrary/tests/fastapi/test_merge_authors.py:240
Methodtest_merge_raises_400_when_retries_exhausted
When process_merge_request keeps failing, retries are exhausted and 400 is returned.
openlibrary/tests/fastapi/test_merge_authors.py:262
Methodtest_merge_success
Admin user can merge authors successfully.
openlibrary/tests/fastapi/test_merge_authors.py:75
Methodtest_merge_success_with_mrid
Admin user can merge authors with an existing merge request ID.
openlibrary/tests/fastapi/test_merge_authors.py:104
Methodtest_merge_success_without_mrid_creates_request
When no mrid is provided, a new merge request record is created.
openlibrary/tests/fastapi/test_merge_authors.py:130
Methodtest_merge_unauthenticated
Unauthenticated request returns 401 (from require_authenticated_user).
openlibrary/tests/fastapi/test_merge_authors.py:159
Methodtest_middle_page_has_both_next_and_prev
A middle paginated page should have both next and prev.
openlibrary/plugins/openlibrary/tests/test_lists.py:181
Functiontest_minimal_complete_record
A minimal complete record has a: 1. title; 2. authors; 3. publishers; 4. publish_date; and 5. source_reco
openlibrary/plugins/importapi/tests/test_import_validator.py:180
Methodtest_missing_auth_header
(self, fastapi_client)
openlibrary/tests/fastapi/test_account.py:176
Functiontest_missing_created_returns_d90_plus
()
openlibrary/plugins/openlibrary/tests/test_patron_status.py:32
Methodtest_missing_doc_returns_404
(self, fastapi_client)
openlibrary/tests/fastapi/test_lists_json.py:97
Methodtest_missing_features_section_raises
(self, tmp_path: Path)
openlibrary/tests/core/test_features.py:83
Methodtest_missing_field_raises
(self, tmp_path: Path)
openlibrary/tests/core/test_features.py:77
Methodtest_missing_header_raises
(self, mock_web)
openlibrary/plugins/upstream/tests/test_account.py:457
Methodtest_missing_key
(self, fastapi_client)
openlibrary/tests/fastapi/test_account.py:158
Methodtest_missing_ocaid
(self, mock_site, add_languages, ia_writeback)
openlibrary/catalog/add_book/tests/test_add_book.py:567
Functiontest_missing_source_records
(mock_site, add_languages)
openlibrary/catalog/add_book/tests/test_add_book.py:850
Functiontest_missing_static_asset_returns_404
(fastapi_client)
openlibrary/tests/fastapi/test_static_assets.py:11
Methodtest_missing_token_redirects_to_create
(self, mock_web, mock_flash)
openlibrary/plugins/upstream/tests/test_account.py:276
Methodtest_missing_user_returns_404
(self, fastapi_client, mock_authenticated_user)
openlibrary/tests/fastapi/test_lists_json.py:143
Methodtest_mixed_bibkey_types
Mixed bibkey types (ISBN, LCCN, OCLC).
openlibrary/tests/fastapi/test_books.py:156
Methodtest_mixed_numeric_and_named_entities
When a numeric entity triggers the guard, named entities are also decoded.
openlibrary/catalog/add_book/tests/test_add_book.py:2023
Methodtest_mixed_ratings
Test with a realistic mix of ratings.
openlibrary/tests/core/test_ratings.py:21
Functiontest_mk_norm
(title, expected)
openlibrary/catalog/add_book/tests/test_match.py:85
Functiontest_mk_norm_equality
(a, b)
openlibrary/catalog/add_book/tests/test_match.py:95
Functiontest_mock_memcache_func_arg
(mock_memcache)
openlibrary/mocks/tests/test_mock_memcache.py:31
Methodtest_month_out_of_range
(self)
openlibrary/plugins/upstream/tests/test_checkins.py:44
Functiontest_monthly_logins_response_matches_legacy
(fastapi_client)
openlibrary/tests/fastapi/test_monthly_logins.py:20
Functiontest_monthly_logins_returns_cached_count
(fastapi_client)
openlibrary/tests/fastapi/test_monthly_logins.py:11
Methodtest_more_ratings_same_average
Two books with same average should rank differently based on count. More ratings = higher confidence = higher rank.
openlibrary/tests/core/test_ratings.py:63
Methodtest_move_edition
(self)
scripts/tests/test_solr_updater.py:89
Methodtest_moving_edition
(self, monkeypatch)
openlibrary/plugins/upstream/tests/test_addbook.py:281
Methodtest_moving_edition_ignores_changes_to_work
(self, monkeypatch)
openlibrary/plugins/upstream/tests/test_addbook.py:317
Methodtest_moving_edition_to_new_work
(self, monkeypatch)
openlibrary/plugins/upstream/tests/test_addbook.py:353
Methodtest_moving_edition_to_new_work_can_copy_data
(self, monkeypatch)
openlibrary/plugins/upstream/tests/test_addbook.py:401
Methodtest_moving_edition_to_new_work_copy_when_none
(self, monkeypatch)
openlibrary/plugins/upstream/tests/test_addbook.py:447
Methodtest_moving_orphan
(self, monkeypatch)
openlibrary/plugins/upstream/tests/test_addbook.py:108
Methodtest_moving_orphan_ignores_work_edits
(self, monkeypatch)
openlibrary/plugins/upstream/tests/test_addbook.py:137
Methodtest_multiple_author_keys
Test that multiple author_key parameters are parsed correctly. Supporting multiple keys from query params isn't the default so this is importa
openlibrary/tests/fastapi/test_search.py:246
Methodtest_multiple_bibkeys_comma_separated
Multiple bibkeys comma-separated.
openlibrary/tests/fastapi/test_books.py:146
Methodtest_multiple_comma_separated_items
(self)
openlibrary/tests/fastapi/test_models.py:125
Methodtest_multiple_errors_across_lines
(self)
scripts/tests/test_detect_missing_i18n.py:66
Methodtest_multiple_identifiers
Verify pipe-separated identifiers are passed through.
openlibrary/tests/fastapi/test_books.py:321
Methodtest_multiple_olids
(self, fastapi_client, mock_get_metrics)
openlibrary/tests/fastapi/test_public_observations.py:46
Methodtest_must_have_valid_publish_date_type
Only records with string publish_date fields are valid.
openlibrary/plugins/importapi/tests/test_import_validator.py:245
Methodtest_named_entity_unchanged
Named entities like & are not unescaped (strict numeric-only pattern).
openlibrary/catalog/add_book/tests/test_add_book.py:2014
Methodtest_native_boolean
(self, tmp_path: Path)
openlibrary/tests/core/test_features.py:121
Functiontest_needs_isbn_and_lacks_one
(rec, expected)
openlibrary/tests/catalog/test_utils.py:317
Methodtest_never_create_an_orphan
(self, monkeypatch)
openlibrary/plugins/upstream/tests/test_addbook.py:73
Methodtest_new_account
(self)
scripts/tests/test_solr_updater.py:167
Methodtest_new_creates_waiting_loan
Test that creating a new waiting loan calls the IA API and returns a WaitingLoan.
openlibrary/tests/core/test_waitinglist.py:19
Methodtest_new_field
When the duplicate has a new field which is not there in the master, the new filed must be copied to the master.
openlibrary/plugins/upstream/tests/test_merge_authors.py:274
Methodtest_new_key
(self, mock_site)
openlibrary/mocks/tests/test_mock_infobase.py:7
Methodtest_new_returns_none_when_not_found
Test that new returns None when the loan isn't found after joining.
openlibrary/tests/core/test_waitinglist.py:30
Functiontest_new_subject_sub_types_in_subject_sub_types
(tag_type)
openlibrary/plugins/upstream/tests/test_addtag.py:50
Functiontest_new_subject_sub_types_in_tag_types
(tag_type)
openlibrary/plugins/upstream/tests/test_addtag.py:58
← previousnext →5,501–5,600 of 6,179, ranked by callers