MCPcopy Create free account

hub / github.com/internetarchive/openlibrary / functions

Functions6,179 in github.com/internetarchive/openlibrary

Methodtest_simple_work
(self)
openlibrary/tests/solr/updater/test_work.py:93
Methodtest_single_item
(self, input_val, expected)
openlibrary/tests/fastapi/test_models.py:122
Methodtest_single_olid
(self, fastapi_client, mock_get_metrics)
openlibrary/tests/fastapi/test_public_observations.py:40
Methodtest_single_page_no_pagination
When results fit on one page, no pagination links.
openlibrary/plugins/openlibrary/tests/test_lists.py:196
Methodtest_single_rating
A book with a single 5-star rating should be penalized.
openlibrary/tests/core/test_ratings.py:28
Methodtest_skip_directive_does_not_affect_other_lines
(self)
scripts/tests/test_detect_missing_i18n.py:88
Methodtest_solr_offline
(self, monkeypatch, monkeytime)
openlibrary/tests/solr/test_utils.py:107
Methodtest_sort
(self)
openlibrary/tests/solr/updater/test_work.py:468
Functiontest_sort_title
(title, subtitle, expected)
openlibrary/tests/solr/updater/test_edition.py:40
Functiontest_sort_values
()
openlibrary/tests/core/test_observations.py:4
Methodtest_sortable_rating_calculated
Verify sortable rating is calculated from counts.
openlibrary/tests/core/test_ratings.py:111
Functiontest_space_squash_and_strip
()
openlibrary/plugins/upstream/tests/test_merge_authors.py:344
Methodtest_spam_list_returns_forbidden
(self, fastapi_client, mock_authenticated_user)
openlibrary/tests/fastapi/test_lists_json.py:180
Functiontest_split_amazon_title
(amazon, title, subtitle)
openlibrary/tests/core/test_vendors.py:201
Functiontest_split_subtitle
(full_title, title, subtitle)
openlibrary/catalog/add_book/tests/test_add_book.py:93
Functiontest_sprintf
()
openlibrary/tests/core/test_helpers.py:91
Functiontest_state_read_empty_file_returns_epoch
(tmp_path: Path)
scripts/tests/test_bwb_opds_imports.py:161
Functiontest_state_roundtrip
(tmp_path: Path)
scripts/tests/test_bwb_opds_imports.py:152
Functiontest_static_assets_are_served
(fastapi_client)
openlibrary/tests/fastapi/test_static_assets.py:4
Methodtest_stats_and_stats_header_in_yaml
(self)
openlibrary/tests/core/test_features.py:146
Functiontest_stats_container
Tests the Stats container used in the templates
openlibrary/plugins/openlibrary/tests/test_stats.py:44
Methodtest_stats_template
(self, render_template)
openlibrary/plugins/openlibrary/tests/test_home.py:74
Functiontest_status_timerange
Tests the stats container with a time X-axis
openlibrary/plugins/openlibrary/tests/test_stats.py:69
Functiontest_status_total
Tests the total attribute of the stats container used in the templates
openlibrary/plugins/openlibrary/tests/test_stats.py:55
Methodtest_string_with_callback
Pre-serialized JSON string should work with callback.
openlibrary/tests/fastapi/test_models.py:66
Functiontest_strip_accents
()
openlibrary/plugins/upstream/tests/test_utils.py:169
Functiontest_strip_count
()
openlibrary/tests/catalog/test_utils.py:178
Methodtest_subject_key_format
Test subject_key: format conversion.
openlibrary/plugins/openlibrary/tests/test_partials.py:11
Methodtest_subject_lists_reconstructs_subject_path
(self, fastapi_client)
openlibrary/tests/fastapi/test_lists_json.py:77
Methodtest_subject_seed_format
Test subject: format conversion.
openlibrary/plugins/openlibrary/tests/test_partials.py:27
Methodtest_subjects
(self)
openlibrary/tests/solr/updater/test_work.py:295
Methodtest_subjects_bin
(self, item, expected)
openlibrary/catalog/marc/tests/test_get_subjects.py:250
Functiontest_subjects_for_work
()
openlibrary/catalog/marc/tests/test_marc.py:88
Methodtest_subjects_xml
(self, item, expected)
openlibrary/catalog/marc/tests/test_get_subjects.py:241
Functiontest_subtitle_gets_split_from_title
Ensures that if there is a subtitle (designated by a colon) in the title that it is split and put into the subtitle field.
openlibrary/catalog/add_book/tests/test_add_book.py:1093
Methodtest_success
(self, fastapi_client)
openlibrary/tests/fastapi/test_account.py:129
Methodtest_success_redirects_to_redir_url
(self, fastapi_client, mock_optional_authenticated_user)
openlibrary/tests/fastapi/test_follows.py:117
Methodtest_success_with_test_mode
(self, fastapi_client)
openlibrary/tests/fastapi/test_account.py:137
Methodtest_successful_response
(self, monkeypatch, monkeytime)
openlibrary/tests/solr/test_utils.py:85
Methodtest_surfaces_a_named_author_even_with_a_single_book
(self)
openlibrary/plugins/worksearch/tests/test_author_suggestion.py:59
Methodtest_surfaces_multiple_distinct_authors_for_an_ambiguous_given_name
(self)
openlibrary/plugins/worksearch/tests/test_author_suggestion.py:66
Methodtest_sync_vs_async_parity
Crucial Test: Ensures a sync function and an async function produce the EXACT same cache entry if configured identically. Thi
openlibrary/tests/core/test_cache.py:205
Functiontest_tag_edit_validate_accepts_new_types
tag_edit.validate must accept new subject tag types so saving slugs works.
openlibrary/plugins/upstream/tests/test_addtag.py:82
Functiontest_tag_normalize
(name, expected)
openlibrary/plugins/upstream/tests/test_addtag.py:28
Functiontest_tarindex_path
()
openlibrary/coverstore/tests/test_code.py:9
Functiontest_texsafe
()
openlibrary/tests/core/test_helpers.py:134
Methodtest_third_match_priority_name_and_dates
Next highest priority match is name, birth date, and death date.
openlibrary/catalog/add_book/tests/test_load_book.py:231
Methodtest_time_key_format
Test time_key: format conversion.
openlibrary/plugins/openlibrary/tests/test_partials.py:23
Methodtest_timeout
(self, monkeytime)
openlibrary/tests/core/test_cache.py:66
Methodtest_title_prefix
(self)
openlibrary/tests/core/test_connections.py:25
Functiontest_title_with_trailing_period_is_stripped
()
openlibrary/catalog/add_book/tests/test_add_book.py:1119
Methodtest_to_db
(self)
openlibrary/plugins/upstream/tests/test_table_of_contents.py:46
Methodtest_to_dict
(self)
openlibrary/plugins/upstream/tests/test_table_of_contents.py:153
Methodtest_to_dict_missing_fields
(self)
openlibrary/plugins/upstream/tests/test_table_of_contents.py:174
Methodtest_to_markdown
(self)
openlibrary/plugins/upstream/tests/test_table_of_contents.py:198
Functiontest_to_short_lcc
(sortable_lcc, raw_lcc, short_lcc, name)
openlibrary/utils/tests/test_lcc.py:37
Methodtest_to_solr_edismax_subquery
(self)
openlibrary/tests/fastapi/test_models.py:166
Functiontest_to_sortable
(sortable_lcc, raw_lcc, short_lcc, name)
openlibrary/utils/tests/test_lcc.py:32
Methodtest_to_uri
(self)
scripts/tests/test_copydocs.py:15
Methodtest_touch
(self)
openlibrary/coverstore/tests/test_webapp.py:107
Methodtest_translate
(self)
openlibrary/catalog/marc/tests/test_marc_binary.py:34
Methodtest_translations_via_gettext_callables
Should translate ``{% trans %}`` blocks and ``{{ gettext() }}`` / ``{{ ngettext() }}`` calls using the per-request translations installed by
openlibrary/tests/core/test_jinja.py:174
Methodtest_trending_period_literal_matches_since_days
(self)
openlibrary/tests/fastapi/test_trending.py:115
Functiontest_truncate
()
openlibrary/tests/core/test_helpers.py:119
Methodtest_truthy_value_uses_expires
(self, mock_web)
openlibrary/plugins/upstream/tests/test_account.py:294
Methodtest_two_spammy_editors
(self, mock_site)
openlibrary/plugins/admin/tests/test_code.py:181
Methodtest_type_to_argparse
(self)
scripts/solr_builder/tests/test_fn_to_cli.py:36
Methodtest_unauthenticated_redirects_to_login
(self, fastapi_client)
openlibrary/tests/fastapi/test_follows.py:40
Methodtest_unauthenticated_redirects_to_login
(self, fastapi_client)
openlibrary/tests/fastapi/test_follows.py:88
Methodtest_unescape_html_entities_in_author_name
(self)
openlibrary/catalog/add_book/tests/test_add_book.py:1987
Methodtest_unescape_html_entities_in_subtitle
(self)
openlibrary/catalog/add_book/tests/test_add_book.py:1977
Methodtest_unescape_html_entities_in_title
HTML numeric entities in titles are unescaped (BWB-sourced mangled Unicode).
openlibrary/catalog/add_book/tests/test_add_book.py:1967
Methodtest_ungettext
(self, monkeypatch, request_context_fixture)
openlibrary/tests/core/test_i18n.py:54
Methodtest_ungettext_with_args
(self, monkeypatch, request_context_fixture)
openlibrary/tests/core/test_i18n.py:76
Methodtest_unhandled_error
(self)
openlibrary/utils/tests/test_retry.py:28
Methodtest_uniform_distribution
Test with equal ratings across all stars. The Bayesian lower bound is conservative, so even a uniform distribution (which av
openlibrary/tests/core/test_ratings.py:51
Methodtest_unknown_format_session_cookie_passes_through
Non-OL session cookies (unknown format) should not invalidate the session.
openlibrary/plugins/openlibrary/tests/test_verification.py:159
Methodtest_unknown_key_is_ignored
(self, tmp_path: Path)
openlibrary/tests/core/test_features.py:128
Functiontest_unmarshal
(data, expected)
openlibrary/tests/core/test_unmarshal.py:72
Methodtest_unrecognized_string_raises
(self, tmp_path: Path)
openlibrary/tests/core/test_features.py:115
Methodtest_untranslated_alt_attribute
(self)
scripts/tests/test_detect_missing_i18n.py:59
Methodtest_untranslated_element_content
(self)
scripts/tests/test_detect_missing_i18n.py:45
Methodtest_untranslated_title_attribute
(self)
scripts/tests/test_detect_missing_i18n.py:52
Functiontest_up_to_date
()
openlibrary/tests/solr/test_types_generator.py:8
Methodtest_update_async
(self)
openlibrary/tests/core/test_cache.py:58
Methodtest_update_collision
(self)
openlibrary/tests/core/test_db.py:113
Methodtest_update_event_date
(self)
openlibrary/tests/core/test_db.py:401
Methodtest_update_modifies_status
Test that update correctly modifies the waiting loan status and calls the API.
openlibrary/tests/core/test_waitinglist.py:68
Methodtest_update_references
(self)
openlibrary/plugins/upstream/tests/test_merge_authors.py:99
Methodtest_update_simple
(self)
openlibrary/tests/core/test_db.py:136
Methodtest_update_target
(self)
openlibrary/tests/core/test_db.py:476
Methodtest_update_username
(self)
openlibrary/tests/core/test_db.py:283
Methodtest_update_work_id
(self, acquisitions_db)
openlibrary/tests/core/test_acquisitions.py:73
Methodtest_upload
(self)
openlibrary/coverstore/tests/test_webapp.py:129
Methodtest_upload_with_url
(self, monkeypatch)
openlibrary/coverstore/tests/test_webapp.py:142
Methodtest_upsert_insert
(self, acquisitions_db)
openlibrary/tests/core/test_acquisitions.py:60
Methodtest_upsert_update
(self, acquisitions_db)
openlibrary/tests/core/test_acquisitions.py:66
Methodtest_upstream_404_returns_502
If archive.org itself returns 404, we return 502, not 404. The path /cdn/archive.org/donate.js is valid (passed our allowlist), so a
openlibrary/tests/fastapi/test_cdn.py:83
Methodtest_upstream_called_with_correct_url
The upstream URL must be https://archive.org/includes/{filename}.
openlibrary/tests/fastapi/test_cdn.py:100
Methodtest_upstream_error_returns_502
If the upstream request fails with an HTTP error, a 502 Bad Gateway is returned.
openlibrary/tests/fastapi/test_cdn.py:61
← previousnext →5,901–6,000 of 6,179, ranked by callers