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_upstream_request_error_returns_502
Network failures (timeout, DNS error, connection refused) return 502.
openlibrary/tests/fastapi/test_cdn.py:74
Method
test_url
(self)
openlibrary/tests/core/test_models.py:118
Method
test_url
(self)
openlibrary/tests/core/test_models.py:203
Method
test_url
(self)
openlibrary/tests/core/test_models.py:221
Function
test_url_quote
()
openlibrary/plugins/upstream/tests/test_utils.py:17
Function
test_urldecode
()
openlibrary/coverstore/tests/test_coverstore.py:201
Function
test_urlencode
()
openlibrary/plugins/upstream/tests/test_utils.py:24
Function
test_urlsafe
()
openlibrary/tests/core/test_helpers.py:125
Method
test_user_settings
(self)
openlibrary/plugins/upstream/tests/test_models.py:93
Method
test_uses_count_not_limit_for_determining_more
Pagination 'next' should depend on count returned, not limit.
openlibrary/plugins/openlibrary/tests/test_lists.py:218
Method
test_uses_default_pagination
(self, fastapi_client, patched_site)
openlibrary/tests/fastapi/test_work_editions_author_works.py:49
Method
test_uses_default_pagination
(self, fastapi_client, patched_site)
openlibrary/tests/fastapi/test_work_editions_author_works.py:170
Method
test_valid_callback_names
Valid JavaScript identifier callbacks should be accepted.
openlibrary/tests/fastapi/test_models.py:34
Method
test_valid_periods
(self, fastapi_client, mock_get_trending_books, period, expected_days)
openlibrary/tests/fastapi/test_trending.py:37
Method
test_valid_returns_stripped_tuple
(self, mock_web)
openlibrary/plugins/upstream/tests/test_account.py:487
Method
test_valid_session_cookie_calls_handler
(self, monkeypatch)
openlibrary/plugins/openlibrary/tests/test_verification.py:114
Function
test_valid_template
(filename: Path)
openlibrary/tests/test_templates.py:37
Method
test_valid_token_honors_redirect_param
(self, mock_web, mock_flash, mock_login_cls, mock_ia_account)
openlibrary/plugins/upstream/tests/test_account.py:222
Method
test_valid_token_redirects_to_my_books
(self, mock_web, mock_flash, mock_login_cls, mock_ia_account)
openlibrary/plugins/upstream/tests/test_account.py:197
Method
test_valid_vf_cookie_calls_handler
(self, monkeypatch)
openlibrary/plugins/openlibrary/tests/test_verification.py:55
Method
test_validate
(self, monkeypatch)
openlibrary/plugins/upstream/tests/test_forms.py:5
Function
test_validate_both_complete_and_strong
A record that is both complete and that has a strong identifier should validate.
openlibrary/plugins/importapi/tests/test_import_validator.py:28
Method
test_validate_data
(self)
openlibrary/plugins/upstream/tests/test_checkins.py:93
Function
test_validate_multiple_strong_identifiers
Records with more than one strong identifier should still validate.
openlibrary/plugins/importapi/tests/test_import_validator.py:74
Function
test_validate_not_complete_no_strong_identifier
Ensure a record cannot validate if it lacks both (1) complete and (2) a title and strong identifier, in addition to a source_records field.
openlibrary/plugins/importapi/tests/test_import_validator.py:82
Function
test_validate_record
(name, rec, error)
openlibrary/catalog/add_book/tests/test_add_book.py:1590
Function
test_validate_record_with_missing_required_fields
Ensure a record will not validate as complete without each required field.
openlibrary/plugins/importapi/tests/test_import_validator.py:38
Method
test_validation_errors
(self, fastapi_client, mock_get_trending_books, url, description)
openlibrary/tests/fastapi/test_trending.py:94
Method
test_various_invalid_filenames_return_404
Any filename that is not donate.js or athena.js must be rejected with 404.
openlibrary/tests/fastapi/test_cdn.py:50
Function
test_verify_already_activated
(mock_xauth)
openlibrary/tests/accounts/test_models.py:154
Function
test_verify_hash
()
openlibrary/tests/accounts/test_models.py:12
Function
test_verify_invalid_token
(mock_xauth)
openlibrary/tests/accounts/test_models.py:147
Function
test_verify_issue_key_failure_returns_error
If issue_key fails after activation, verify() returns an error dict.
openlibrary/tests/accounts/test_models.py:133
Function
test_verify_success
(mock_xauth)
openlibrary/tests/accounts/test_models.py:108
Function
test_verify_xauth_failure_returns_generic_error
(mock_xauth)
openlibrary/tests/accounts/test_models.py:164
Function
test_verify_xauth_sends_activate_op
Confirm the xauthn activate op and token are forwarded correctly.
openlibrary/tests/accounts/test_models.py:171
Function
test_wagner_2019_to_short_lcc
(sortable_lcc, short_lcc, name)
openlibrary/utils/tests/test_lcc.py:96
Function
test_wagner_2019_to_sortable
(sortable_lcc, short_lcc, name)
openlibrary/utils/tests/test_lcc.py:87
Method
test_waiting_in_days_for_new_loan
Test that a new loan has waited 1 day (includes current day).
openlibrary/tests/core/test_waitinglist.py:144
Method
test_waiting_in_days_for_week_old_loan
Test calculating days waited for a loan from a week ago.
openlibrary/tests/core/test_waitinglist.py:151
Method
test_want_to_read_route_returns_200
(self, fastapi_client, monkeypatch)
openlibrary/tests/fastapi/test_public_my_books.py:15
Method
test_warn_for_dollar_paren_attribute
(self)
scripts/tests/test_detect_missing_i18n.py:111
Method
test_warn_for_dollar_paren_element
(self)
scripts/tests/test_detect_missing_i18n.py:104
Method
test_weighted_average
Test average with mixed ratings.
openlibrary/tests/core/test_ratings.py:85
Method
test_whitespace_trimming
(self)
openlibrary/tests/fastapi/test_models.py:128
Method
test_with_callback_returns_jsonp
When callback param present, should wrap in callback with application/javascript.
openlibrary/tests/fastapi/test_models.py:24
Method
test_with_multiple_editions
(self)
openlibrary/tests/solr/updater/test_work.py:269
Method
test_with_one_inlibrary_edition
(self)
openlibrary/tests/solr/updater/test_work.py:223
Method
test_with_one_lending_edition
(self)
openlibrary/tests/solr/updater/test_work.py:184
Method
test_with_one_printdisabled_edition
(self)
openlibrary/tests/solr/updater/test_work.py:239
Method
test_with_two_lending_editions
(self)
openlibrary/tests/solr/updater/test_work.py:201
Method
test_work_authors
(self, mock_site)
openlibrary/mocks/tests/test_mock_infobase.py:75
Method
test_work_authors
(self)
openlibrary/plugins/upstream/tests/test_merge_authors.py:287
Method
test_work_lists_uses_default_pagination
(self, fastapi_client)
openlibrary/tests/fastapi/test_lists_json.py:56
Method
test_work_no_title
(self)
openlibrary/tests/solr/updater/test_work.py:49
Method
test_work_with_data
(self)
openlibrary/plugins/upstream/tests/test_models.py:62
Method
test_work_without_data
(self)
openlibrary/plugins/upstream/tests/test_models.py:47
Method
test_workless_author
(self, monkeypatch)
openlibrary/tests/solr/updater/test_author.py:19
Function
test_works_autocomplete
()
openlibrary/plugins/worksearch/tests/test_autocomplete.py:30
Method
test_works_content_in_response
(self, fastapi_client, mock_get_trending_books)
openlibrary/tests/fastapi/test_trending.py:125
Method
test_works_with_custom_endpoint_path
Should work with any endpoint path (e.g., seed paths without .json).
openlibrary/plugins/openlibrary/tests/test_lists.py:211
Function
test_wrapped_lines
()
openlibrary/catalog/marc/tests/test_marc_binary.py:19
Method
test_write
(self, setup_db, image_dir)
openlibrary/coverstore/tests/test_webapp.py:88
Function
test_write_image
Test writing jpg, gif and png images
openlibrary/coverstore/tests/test_coverstore.py:30
Method
test_wrong_type_tag_goes_to_disambiguations
A tag whose type doesn't match is added to disambiguations, not subject.tag.
openlibrary/plugins/worksearch/tests/test_subjects.py:91
Method
test_wrong_user_redirects_to_login
(self, fastapi_client, mock_optional_authenticated_user)
openlibrary/tests/fastapi/test_follows.py:46
Method
test_wrong_user_redirects_to_login_and_preserves_redir_url
(self, fastapi_client, mock_optional_authenticated_user)
openlibrary/tests/fastapi/test_follows.py:98
Function
test_xauth_http_error_with_json
(monkeypatch)
openlibrary/tests/accounts/test_models.py:30
Function
test_xauth_http_error_without_json
(monkeypatch)
openlibrary/tests/accounts/test_models.py:18
Method
test_xml
(self, i)
openlibrary/catalog/marc/tests/test_parse.py:98
Method
test_year_1900_removed_from_amz_and_bwb_promise_items
A few import sources (e.g. promise items, BWB, and Amazon) have `publish_date` values that are known to be inaccurate, so those `publ
openlibrary/catalog/add_book/tests/test_add_book.py:1958
Method
test_zero_limit_defaults_to_50
(self, fastapi_client, patched_site)
openlibrary/tests/fastapi/test_work_editions_author_works.py:91
Method
test_zero_limit_passed_through
(self, fastapi_client, patched_site)
openlibrary/tests/fastapi/test_work_editions_author_works.py:205
Method
test_zero_padding
(self)
openlibrary/plugins/upstream/tests/test_checkins.py:13
Function
texsafe
Escapes the special characters in the given text for using it in tex type setting. Tex (or Latex) uses some characters in the ascii character ran
openlibrary/core/helpers.py:251
Method
things
(self, query)
openlibrary/tests/core/lists/test_model.py:47
Method
title
(self)
openlibrary/solr/updater/edition.py:138
Method
title
(self)
openlibrary/solr/updater/work.py:338
Function
title_replace_amp
(amazon)
openlibrary/catalog/add_book/match.py:335
Method
title_sort
Generates a formatted title string based on the ``title`` and ``subtitle`` attributes with any leading article removed and mo
openlibrary/solr/updater/edition.py:146
Method
title_sort
Generates a formatted title string based on the ``title`` and ``subtitle`` attributes with any leading article removed and mo
openlibrary/solr/updater/work.py:351
Method
to_dict
(self)
openlibrary/plugins/openlibrary/status.py:357
Method
to_json
(self)
openlibrary/core/lists/model.py:471
Method
to_markdown
(self)
openlibrary/plugins/upstream/table_of_contents.py:44
Function
today
()
openlibrary/plugins/upstream/utils.py:1488
Function
todays_date_minus
(**kwargs)
openlibrary/utils/dateutil.py:24
Method
toggleLinkPopover
()
openlibrary/components/lit/OLMarkdownEditor.js:508
Function
top_books_from_author
(akey: str, rows=5)
openlibrary/plugins/worksearch/code.py:938
Method
top_subjects
(self)
openlibrary/solr/updater/author.py:111
Method
top_work
(self)
openlibrary/solr/updater/author.py:97
Method
totalPages
Total number of pages. Depends on measured width, so read after `updateComplete`.
openlibrary/components/lit/OlCarousel.js:379
Method
total_accounts
(self)
openlibrary/plugins/ol_infobase.py:241
Function
touch
Sets the last_modified of the specified cover to the current timestamp. By doing so, this cover become comes in the top in query because the resul
openlibrary/coverstore/db.py:132
Method
transform_user_query
(self, user_query: str, q_tree: luqum.tree.Item)
openlibrary/plugins/worksearch/schemes/works.py:276
Method
translation_of
(self)
openlibrary/solr/updater/edition.py:245
Function
trending_books_api
Fetch trending books for the given period.
openlibrary/fastapi/internal/api.py:154
Function
trigger_subevents
Trigger infobase.edit event for edits.
openlibrary/olbase/events.py:37
Function
truncate
(text, limit)
openlibrary/plugins/openlibrary/js/utils.js:14
Method
type
(self)
openlibrary/solr/updater/list.py:104
Method
type
(self)
openlibrary/solr/updater/author.py:72
← previous
next →
6,001–6,100 of 6,179, ranked by callers