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_simple_work
(self)
openlibrary/tests/solr/updater/test_work.py:93
Method
test_single_item
(self, input_val, expected)
openlibrary/tests/fastapi/test_models.py:122
Method
test_single_olid
(self, fastapi_client, mock_get_metrics)
openlibrary/tests/fastapi/test_public_observations.py:40
Method
test_single_page_no_pagination
When results fit on one page, no pagination links.
openlibrary/plugins/openlibrary/tests/test_lists.py:196
Method
test_single_rating
A book with a single 5-star rating should be penalized.
openlibrary/tests/core/test_ratings.py:28
Method
test_skip_directive_does_not_affect_other_lines
(self)
scripts/tests/test_detect_missing_i18n.py:88
Method
test_solr_offline
(self, monkeypatch, monkeytime)
openlibrary/tests/solr/test_utils.py:107
Method
test_sort
(self)
openlibrary/tests/solr/updater/test_work.py:468
Function
test_sort_title
(title, subtitle, expected)
openlibrary/tests/solr/updater/test_edition.py:40
Function
test_sort_values
()
openlibrary/tests/core/test_observations.py:4
Method
test_sortable_rating_calculated
Verify sortable rating is calculated from counts.
openlibrary/tests/core/test_ratings.py:111
Function
test_space_squash_and_strip
()
openlibrary/plugins/upstream/tests/test_merge_authors.py:344
Method
test_spam_list_returns_forbidden
(self, fastapi_client, mock_authenticated_user)
openlibrary/tests/fastapi/test_lists_json.py:180
Function
test_split_amazon_title
(amazon, title, subtitle)
openlibrary/tests/core/test_vendors.py:201
Function
test_split_subtitle
(full_title, title, subtitle)
openlibrary/catalog/add_book/tests/test_add_book.py:93
Function
test_sprintf
()
openlibrary/tests/core/test_helpers.py:91
Function
test_state_read_empty_file_returns_epoch
(tmp_path: Path)
scripts/tests/test_bwb_opds_imports.py:161
Function
test_state_roundtrip
(tmp_path: Path)
scripts/tests/test_bwb_opds_imports.py:152
Function
test_static_assets_are_served
(fastapi_client)
openlibrary/tests/fastapi/test_static_assets.py:4
Method
test_stats_and_stats_header_in_yaml
(self)
openlibrary/tests/core/test_features.py:146
Function
test_stats_container
Tests the Stats container used in the templates
openlibrary/plugins/openlibrary/tests/test_stats.py:44
Method
test_stats_template
(self, render_template)
openlibrary/plugins/openlibrary/tests/test_home.py:74
Function
test_status_timerange
Tests the stats container with a time X-axis
openlibrary/plugins/openlibrary/tests/test_stats.py:69
Function
test_status_total
Tests the total attribute of the stats container used in the templates
openlibrary/plugins/openlibrary/tests/test_stats.py:55
Method
test_string_with_callback
Pre-serialized JSON string should work with callback.
openlibrary/tests/fastapi/test_models.py:66
Function
test_strip_accents
()
openlibrary/plugins/upstream/tests/test_utils.py:169
Function
test_strip_count
()
openlibrary/tests/catalog/test_utils.py:178
Method
test_subject_key_format
Test subject_key: format conversion.
openlibrary/plugins/openlibrary/tests/test_partials.py:11
Method
test_subject_lists_reconstructs_subject_path
(self, fastapi_client)
openlibrary/tests/fastapi/test_lists_json.py:77
Method
test_subject_seed_format
Test subject: format conversion.
openlibrary/plugins/openlibrary/tests/test_partials.py:27
Method
test_subjects
(self)
openlibrary/tests/solr/updater/test_work.py:295
Method
test_subjects_bin
(self, item, expected)
openlibrary/catalog/marc/tests/test_get_subjects.py:250
Function
test_subjects_for_work
()
openlibrary/catalog/marc/tests/test_marc.py:88
Method
test_subjects_xml
(self, item, expected)
openlibrary/catalog/marc/tests/test_get_subjects.py:241
Function
test_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
Method
test_success
(self, fastapi_client)
openlibrary/tests/fastapi/test_account.py:129
Method
test_success_redirects_to_redir_url
(self, fastapi_client, mock_optional_authenticated_user)
openlibrary/tests/fastapi/test_follows.py:117
Method
test_success_with_test_mode
(self, fastapi_client)
openlibrary/tests/fastapi/test_account.py:137
Method
test_successful_response
(self, monkeypatch, monkeytime)
openlibrary/tests/solr/test_utils.py:85
Method
test_surfaces_a_named_author_even_with_a_single_book
(self)
openlibrary/plugins/worksearch/tests/test_author_suggestion.py:59
Method
test_surfaces_multiple_distinct_authors_for_an_ambiguous_given_name
(self)
openlibrary/plugins/worksearch/tests/test_author_suggestion.py:66
Method
test_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
Function
test_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
Function
test_tag_normalize
(name, expected)
openlibrary/plugins/upstream/tests/test_addtag.py:28
Function
test_tarindex_path
()
openlibrary/coverstore/tests/test_code.py:9
Function
test_texsafe
()
openlibrary/tests/core/test_helpers.py:134
Method
test_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
Method
test_time_key_format
Test time_key: format conversion.
openlibrary/plugins/openlibrary/tests/test_partials.py:23
Method
test_timeout
(self, monkeytime)
openlibrary/tests/core/test_cache.py:66
Method
test_title_prefix
(self)
openlibrary/tests/core/test_connections.py:25
Function
test_title_with_trailing_period_is_stripped
()
openlibrary/catalog/add_book/tests/test_add_book.py:1119
Method
test_to_db
(self)
openlibrary/plugins/upstream/tests/test_table_of_contents.py:46
Method
test_to_dict
(self)
openlibrary/plugins/upstream/tests/test_table_of_contents.py:153
Method
test_to_dict_missing_fields
(self)
openlibrary/plugins/upstream/tests/test_table_of_contents.py:174
Method
test_to_markdown
(self)
openlibrary/plugins/upstream/tests/test_table_of_contents.py:198
Function
test_to_short_lcc
(sortable_lcc, raw_lcc, short_lcc, name)
openlibrary/utils/tests/test_lcc.py:37
Method
test_to_solr_edismax_subquery
(self)
openlibrary/tests/fastapi/test_models.py:166
Function
test_to_sortable
(sortable_lcc, raw_lcc, short_lcc, name)
openlibrary/utils/tests/test_lcc.py:32
Method
test_to_uri
(self)
scripts/tests/test_copydocs.py:15
Method
test_touch
(self)
openlibrary/coverstore/tests/test_webapp.py:107
Method
test_translate
(self)
openlibrary/catalog/marc/tests/test_marc_binary.py:34
Method
test_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
Method
test_trending_period_literal_matches_since_days
(self)
openlibrary/tests/fastapi/test_trending.py:115
Function
test_truncate
()
openlibrary/tests/core/test_helpers.py:119
Method
test_truthy_value_uses_expires
(self, mock_web)
openlibrary/plugins/upstream/tests/test_account.py:294
Method
test_two_spammy_editors
(self, mock_site)
openlibrary/plugins/admin/tests/test_code.py:181
Method
test_type_to_argparse
(self)
scripts/solr_builder/tests/test_fn_to_cli.py:36
Method
test_unauthenticated_redirects_to_login
(self, fastapi_client)
openlibrary/tests/fastapi/test_follows.py:40
Method
test_unauthenticated_redirects_to_login
(self, fastapi_client)
openlibrary/tests/fastapi/test_follows.py:88
Method
test_unescape_html_entities_in_author_name
(self)
openlibrary/catalog/add_book/tests/test_add_book.py:1987
Method
test_unescape_html_entities_in_subtitle
(self)
openlibrary/catalog/add_book/tests/test_add_book.py:1977
Method
test_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
Method
test_ungettext
(self, monkeypatch, request_context_fixture)
openlibrary/tests/core/test_i18n.py:54
Method
test_ungettext_with_args
(self, monkeypatch, request_context_fixture)
openlibrary/tests/core/test_i18n.py:76
Method
test_unhandled_error
(self)
openlibrary/utils/tests/test_retry.py:28
Method
test_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
Method
test_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
Method
test_unknown_key_is_ignored
(self, tmp_path: Path)
openlibrary/tests/core/test_features.py:128
Function
test_unmarshal
(data, expected)
openlibrary/tests/core/test_unmarshal.py:72
Method
test_unrecognized_string_raises
(self, tmp_path: Path)
openlibrary/tests/core/test_features.py:115
Method
test_untranslated_alt_attribute
(self)
scripts/tests/test_detect_missing_i18n.py:59
Method
test_untranslated_element_content
(self)
scripts/tests/test_detect_missing_i18n.py:45
Method
test_untranslated_title_attribute
(self)
scripts/tests/test_detect_missing_i18n.py:52
Function
test_up_to_date
()
openlibrary/tests/solr/test_types_generator.py:8
Method
test_update_async
(self)
openlibrary/tests/core/test_cache.py:58
Method
test_update_collision
(self)
openlibrary/tests/core/test_db.py:113
Method
test_update_event_date
(self)
openlibrary/tests/core/test_db.py:401
Method
test_update_modifies_status
Test that update correctly modifies the waiting loan status and calls the API.
openlibrary/tests/core/test_waitinglist.py:68
Method
test_update_references
(self)
openlibrary/plugins/upstream/tests/test_merge_authors.py:99
Method
test_update_simple
(self)
openlibrary/tests/core/test_db.py:136
Method
test_update_target
(self)
openlibrary/tests/core/test_db.py:476
Method
test_update_username
(self)
openlibrary/tests/core/test_db.py:283
Method
test_update_work_id
(self, acquisitions_db)
openlibrary/tests/core/test_acquisitions.py:73
Method
test_upload
(self)
openlibrary/coverstore/tests/test_webapp.py:129
Method
test_upload_with_url
(self, monkeypatch)
openlibrary/coverstore/tests/test_webapp.py:142
Method
test_upsert_insert
(self, acquisitions_db)
openlibrary/tests/core/test_acquisitions.py:60
Method
test_upsert_update
(self, acquisitions_db)
openlibrary/tests/core/test_acquisitions.py:66
Method
test_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
Method
test_upstream_called_with_correct_url
The upstream URL must be https://archive.org/includes/{filename}.
openlibrary/tests/fastapi/test_cdn.py:100
Method
test_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
← previous
next →
5,901–6,000 of 6,179, ranked by callers