MCPcopy Create free account

hub / github.com/internetarchive/openlibrary / functions

Functions6,179 in github.com/internetarchive/openlibrary

Functiontest_format_languages
( languages: list[str], expected: list[dict[str, str]], add_languages, # noqa F811 )
openlibrary/tests/catalog/test_utils.py:435
Functiontest_format_stats
Tests whether the performance status are output properly in the the X-OL-Stats header
openlibrary/plugins/openlibrary/tests/test_stats.py:38
Functiontest_format_stats_entry
Tests the stats performance entries
openlibrary/plugins/openlibrary/tests/test_stats.py:24
Methodtest_formatting
(self)
openlibrary/plugins/upstream/tests/test_checkins.py:9
Methodtest_four_types_combine
(self)
openlibrary/catalog/marc/tests/test_get_subjects.py:255
Methodtest_four_types_event
(self)
openlibrary/catalog/marc/tests/test_get_subjects.py:260
Methodtest_from_db_complex
(self)
openlibrary/plugins/upstream/tests/test_table_of_contents.py:63
Methodtest_from_db_empty
(self)
openlibrary/plugins/upstream/tests/test_table_of_contents.py:22
Methodtest_from_db_string_rows
(self)
openlibrary/plugins/upstream/tests/test_table_of_contents.py:29
Methodtest_from_db_well_formatted
(self)
openlibrary/plugins/upstream/tests/test_table_of_contents.py:5
Methodtest_from_dict
(self)
openlibrary/plugins/upstream/tests/test_table_of_contents.py:125
Methodtest_from_dict_missing_fields
(self)
openlibrary/plugins/upstream/tests/test_table_of_contents.py:148
Methodtest_from_input_no_data
(self)
openlibrary/plugins/openlibrary/tests/test_lists.py:12
Methodtest_from_input_rejects_blank_keys
Test that form submission rejects seeds with blank keys. Attempting to submit a form with blank keys should raise a ValueError during
openlibrary/plugins/openlibrary/tests/test_lists.py:129
Methodtest_from_input_seeds
(self, seeds, expected)
openlibrary/plugins/openlibrary/tests/test_lists.py:87
Methodtest_from_input_with_data
(self)
openlibrary/plugins/openlibrary/tests/test_lists.py:31
Methodtest_from_input_with_json_data
(self)
openlibrary/plugins/openlibrary/tests/test_lists.py:52
Methodtest_from_marc
(self, ia, mock_site, add_languages)
openlibrary/catalog/add_book/tests/test_add_book.py:497
Methodtest_from_marc_author
(self, mock_site, add_languages)
openlibrary/catalog/add_book/tests/test_add_book.py:471
Methodtest_from_marc_fields
(self, mock_site, add_languages)
openlibrary/catalog/add_book/tests/test_add_book.py:583
Methodtest_from_marc_reimport_modifications
(self, mock_site, add_languages)
openlibrary/catalog/add_book/tests/test_add_book.py:548
Methodtest_from_markdown
(self)
openlibrary/plugins/upstream/tests/test_table_of_contents.py:92
Methodtest_from_markdown
(self)
openlibrary/plugins/upstream/tests/test_table_of_contents.py:181
Methodtest_from_markdown_empty_lines
(self)
openlibrary/plugins/upstream/tests/test_table_of_contents.py:107
Methodtest_from_markdown_regex_edge_cases
r"""Test that the regex pattern handles various edge cases correctly. The regex pattern r"(\**)(.*)" always matches any string, but we want
openlibrary/plugins/upstream/tests/test_table_of_contents.py:211
Methodtest_from_uri
(self)
scripts/tests/test_copydocs.py:7
Methodtest_full_flow
(self)
scripts/solr_builder/tests/test_fn_to_cli.py:9
Methodtest_future_publication_dates_are_deleted
It should be impossible to import books publish_date in a future year.
openlibrary/catalog/add_book/tests/test_add_book.py:1788
Methodtest_generate_key_prefix
(self)
openlibrary/tests/core/test_cache.py:21
Methodtest_genre_prefix_finds_tag_by_slug
decorate_with_tags strips 'genre:' prefix and searches for the bare slug.
openlibrary/plugins/worksearch/tests/test_subjects.py:38
Functiontest_get
(mock_web, mock_site)
openlibrary/tests/accounts/test_models.py:41
Methodtest_get
(self)
openlibrary/coverstore/tests/test_webapp.py:101
Methodtest_get
(self, mock_site)
openlibrary/mocks/tests/test_mock_infobase.py:23
Functiontest_get_abbrev_from_full_lang_name
( mock_site: MockSite, monkeypatch, add_languages, # noqa F811 )
openlibrary/plugins/upstream/tests/test_utils.py:177
Methodtest_get_allows_admin
(self, fastapi_client, mock_authenticated_user, mock_user_factory, mock_import_request, monkeypatch)
openlibrary/tests/fastapi/test_importapi.py:91
Methodtest_get_allows_librarian
(self, fastapi_client, mock_authenticated_user, mock_user_factory, mock_import_request, monkeypatch)
openlibrary/tests/fastapi/test_importapi.py:100
Methodtest_get_allows_super_librarian
(self, fastapi_client, mock_authenticated_user, mock_user_factory, mock_import_request, monkeypatch)
openlibrary/tests/fastapi/test_importapi.py:109
Functiontest_get_amazon_metadata
Mock a reply from the Amazon Products API so we can do a basic test for get_amazon_metadata() and cached_get_amazon_metadata().
openlibrary/tests/core/test_vendors.py:254
Functiontest_get_authenticated_user_returns_none_with_no_cookie
Without a cookie, get_authenticated_user should return None (not raise).
openlibrary/tests/fastapi/test_auth.py:80
Functiontest_get_author_exclusions_caches
get_author_exclusions returns the same frozenset on repeated calls.
openlibrary/tests/core/test_processors.py:179
Methodtest_get_authors0
(self)
openlibrary/plugins/books/tests/test_dynlinks.py:450
Methodtest_get_authors1
(self)
openlibrary/plugins/books/tests/test_dynlinks.py:456
Methodtest_get_available_loans_checked_out
(self)
openlibrary/plugins/upstream/tests/test_models.py:173
Methodtest_get_available_loans_no_ocaid
(self)
openlibrary/plugins/upstream/tests/test_models.py:158
Methodtest_get_available_loans_returns_bookreader
(self)
openlibrary/plugins/upstream/tests/test_models.py:162
Functiontest_get_batch_end_id
()
openlibrary/coverstore/tests/test_archive.py:20
Methodtest_get_by_edition_all
(self, acquisitions_db)
openlibrary/tests/core/test_acquisitions.py:47
Methodtest_get_by_edition_provider
(self, acquisitions_db)
openlibrary/tests/core/test_acquisitions.py:52
Methodtest_get_by_work
(self, acquisitions_db)
openlibrary/tests/core/test_acquisitions.py:57
Functiontest_get_colon_only_loc_pub
()
openlibrary/plugins/upstream/tests/test_utils.py:259
Functiontest_get_coverstore_url
(monkeypatch)
openlibrary/plugins/upstream/tests/test_utils.py:140
Methodtest_get_deleted_list_returns_404
GET request for a deleted list should return 404, not 500. This is a regression test for a bug where deleted lists caused PydanticSer
openlibrary/tests/fastapi/test_lists_delete.py:161
Methodtest_get_deleted_list_via_public_route_returns_404
GET request for a deleted list via /lists/{list_id}.json should return 404.
openlibrary/tests/fastapi/test_lists_delete.py:179
Functiontest_get_doc
()
openlibrary/plugins/worksearch/tests/test_worksearch.py:23
Methodtest_get_document
(self)
openlibrary/tests/solr/test_data_provider.py:11
Methodtest_get_does_not_save
(self)
openlibrary/tests/fastapi/test_importapi.py:139
Methodtest_get_ebook_info
(self)
openlibrary/tests/core/test_models.py:131
Functiontest_get_editions_for_books
Attempting to save many ol editions and then get them back...
scripts/tests/test_affiliate_server.py:67
Methodtest_get_existing_list_returns_200
GET request for an existing list should return 200 with JSON data.
openlibrary/tests/fastapi/test_lists_delete.py:191
Functiontest_get_external_profiles
()
openlibrary/tests/core/test_wikidata.py:154
Functiontest_get_external_profiles_multiple_social
()
openlibrary/tests/core/test_wikidata.py:185
Functiontest_get_fail2ban_counts
()
scripts/monitoring/tests/test_fail2ban_monitor.py:18
Functiontest_get_filename
()
openlibrary/coverstore/tests/test_archive.py:4
Methodtest_get_forbidden_for_regular_user
(self, fastapi_client, mock_authenticated_user, mock_user_factory)
openlibrary/tests/fastapi/test_importapi.py:81
Methodtest_get_ia_meta_fields_no_external_identifier
(self)
openlibrary/plugins/upstream/tests/test_models.py:179
Functiontest_get_ia_record
Try to test every field that get_ia_record() reads.
openlibrary/plugins/importapi/tests/test_code.py:9
Functiontest_get_ia_record_handles_very_short_books
Because scans have extra images for the cover, etc, and the page count from the IA metadata is based on `imagecount`, 4 pages are subtracted
openlibrary/plugins/importapi/tests/test_code.py:106
Functiontest_get_ia_record_logs_warning_when_language_has_multiple_matches
When the IA record uses the language name rather than the language code, get_ia_record() should log a warning if there are multiple name matc
openlibrary/plugins/importapi/tests/test_code.py:65
Methodtest_get_identifier_forms
(self, isbn: str, asin: str, expected: list[str])
openlibrary/tests/core/test_models.py:196
Functiontest_get_image_urls
()
openlibrary/tests/core/test_wikidata.py:207
Methodtest_get_invalid_source_returns_error
(self)
openlibrary/tests/fastapi/test_importapi.py:157
Functiontest_get_isbn_10_and_13
(isbn, expected)
openlibrary/utils/tests/test_isbn.py:96
Functiontest_get_isbn_10s_and_13s
()
openlibrary/utils/tests/test_isbn.py:56
Methodtest_get_isbn_or_asin
(self, isbn_or_asin, expected)
openlibrary/tests/core/test_models.py:161
Functiontest_get_isbns_from_book
Testing get_isbns_from_book() with a book that has both isbn_10 and isbn_13.
scripts/tests/test_affiliate_server.py:93
Functiontest_get_isbns_from_books
Testing get_isbns_from_books() with a list of books that have both isbn_10 and isbn_13.
scripts/tests/test_affiliate_server.py:104
Functiontest_get_item_status
(collections, options, expected, mock_site)
openlibrary/plugins/books/tests/test_readlinks.py:15
Functiontest_get_item_status_monkeypatched
(borrowed, expected, monkeypatch, mock_site)
openlibrary/plugins/books/tests/test_readlinks.py:28
Functiontest_get_language_name
(add_languages)
openlibrary/plugins/upstream/tests/test_utils.py:382
Methodtest_get_latest_event_date
(self)
openlibrary/tests/core/test_db.py:424
Methodtest_get_list_seeds_not_found
(self, fastapi_client, monkeypatch)
openlibrary/tests/fastapi/test_list_seeds.py:37
Methodtest_get_list_seeds_public_success
(self, fastapi_client, monkeypatch)
openlibrary/tests/fastapi/test_list_seeds.py:13
Methodtest_get_list_seeds_user_success
(self, fastapi_client, monkeypatch)
openlibrary/tests/fastapi/test_list_seeds.py:25
Functiontest_get_lists_data_uses_lists_json_path_for_pagination_links
()
openlibrary/plugins/openlibrary/tests/test_lists.py:227
Functiontest_get_location_and_publisher
()
openlibrary/plugins/upstream/tests/test_utils.py:275
Functiontest_get_many
()
openlibrary/plugins/upstream/tests/test_merge_authors.py:139
Methodtest_get_marc_record_from_ia
Tests the method returning MARC records from IA used by the import API. It should return a binary MARC if one exists.
openlibrary/tests/catalog/test_get_ia.py:88
Functiontest_get_metadata
(monkeypatch, mock_memcache)
openlibrary/tests/core/test_ia.py:4
Functiontest_get_metadata_empty
(monkeypatch, mock_memcache)
openlibrary/tests/core/test_ia.py:23
Functiontest_get_missing_field
(name, rec, expected)
openlibrary/tests/catalog/test_utils.py:392
Methodtest_get_no_params_returns_error
(self)
openlibrary/tests/fastapi/test_importapi.py:187
Functiontest_get_non_isbn_asin
(rec, expected)
openlibrary/tests/catalog/test_utils.py:349
Functiontest_get_object
()
openlibrary/tests/core/test_processors.py:67
Methodtest_get_passes_ids_correctly
(self, fastapi_client, mock_get_availability, id_type, ids_str, expected_ids)
openlibrary/tests/fastapi/test_book_availability.py:28
Functiontest_get_pending_books
Testing get_pending_books() with no ol editions saved and then with ol editions.
scripts/tests/test_affiliate_server.py:79
Methodtest_get_position
Test getting position in waiting list.
openlibrary/tests/core/test_waitinglist.py:238
Methodtest_get_ratings_does_not_inject_sortable_for_empty_summary
(self, fastapi_client)
openlibrary/tests/fastapi/test_ratings.py:42
Methodtest_get_ratings_returns_legacy_summary
(self, fastapi_client)
openlibrary/tests/fastapi/test_ratings.py:19
Functiontest_get_readable_count_queries_with_readable_filter_when_toggle_off
When the toggle is off (all books), a count-only query is run with has_fulltext forced on and public_scan stripped, and its num_found returned.
openlibrary/plugins/worksearch/tests/test_worksearch.py:211
Functiontest_get_readable_count_returns_none_when_nothing_to_count
No active search, or a zero-result search, yields no sublabel (None).
openlibrary/plugins/worksearch/tests/test_worksearch.py:192
← previousnext →5,201–5,300 of 6,179, ranked by callers