MCPcopy Create free account

hub / github.com/internetarchive/openlibrary / functions

Functions6,179 in github.com/internetarchive/openlibrary

Methodtest_upstream_request_error_returns_502
Network failures (timeout, DNS error, connection refused) return 502.
openlibrary/tests/fastapi/test_cdn.py:74
Methodtest_url
(self)
openlibrary/tests/core/test_models.py:118
Methodtest_url
(self)
openlibrary/tests/core/test_models.py:203
Methodtest_url
(self)
openlibrary/tests/core/test_models.py:221
Functiontest_url_quote
()
openlibrary/plugins/upstream/tests/test_utils.py:17
Functiontest_urldecode
()
openlibrary/coverstore/tests/test_coverstore.py:201
Functiontest_urlencode
()
openlibrary/plugins/upstream/tests/test_utils.py:24
Functiontest_urlsafe
()
openlibrary/tests/core/test_helpers.py:125
Methodtest_user_settings
(self)
openlibrary/plugins/upstream/tests/test_models.py:93
Methodtest_uses_count_not_limit_for_determining_more
Pagination 'next' should depend on count returned, not limit.
openlibrary/plugins/openlibrary/tests/test_lists.py:218
Methodtest_uses_default_pagination
(self, fastapi_client, patched_site)
openlibrary/tests/fastapi/test_work_editions_author_works.py:49
Methodtest_uses_default_pagination
(self, fastapi_client, patched_site)
openlibrary/tests/fastapi/test_work_editions_author_works.py:170
Methodtest_valid_callback_names
Valid JavaScript identifier callbacks should be accepted.
openlibrary/tests/fastapi/test_models.py:34
Methodtest_valid_periods
(self, fastapi_client, mock_get_trending_books, period, expected_days)
openlibrary/tests/fastapi/test_trending.py:37
Methodtest_valid_returns_stripped_tuple
(self, mock_web)
openlibrary/plugins/upstream/tests/test_account.py:487
Methodtest_valid_session_cookie_calls_handler
(self, monkeypatch)
openlibrary/plugins/openlibrary/tests/test_verification.py:114
Functiontest_valid_template
(filename: Path)
openlibrary/tests/test_templates.py:37
Methodtest_valid_token_honors_redirect_param
(self, mock_web, mock_flash, mock_login_cls, mock_ia_account)
openlibrary/plugins/upstream/tests/test_account.py:222
Methodtest_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
Methodtest_valid_vf_cookie_calls_handler
(self, monkeypatch)
openlibrary/plugins/openlibrary/tests/test_verification.py:55
Methodtest_validate
(self, monkeypatch)
openlibrary/plugins/upstream/tests/test_forms.py:5
Functiontest_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
Methodtest_validate_data
(self)
openlibrary/plugins/upstream/tests/test_checkins.py:93
Functiontest_validate_multiple_strong_identifiers
Records with more than one strong identifier should still validate.
openlibrary/plugins/importapi/tests/test_import_validator.py:74
Functiontest_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
Functiontest_validate_record
(name, rec, error)
openlibrary/catalog/add_book/tests/test_add_book.py:1590
Functiontest_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
Methodtest_validation_errors
(self, fastapi_client, mock_get_trending_books, url, description)
openlibrary/tests/fastapi/test_trending.py:94
Methodtest_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
Functiontest_verify_already_activated
(mock_xauth)
openlibrary/tests/accounts/test_models.py:154
Functiontest_verify_hash
()
openlibrary/tests/accounts/test_models.py:12
Functiontest_verify_invalid_token
(mock_xauth)
openlibrary/tests/accounts/test_models.py:147
Functiontest_verify_issue_key_failure_returns_error
If issue_key fails after activation, verify() returns an error dict.
openlibrary/tests/accounts/test_models.py:133
Functiontest_verify_success
(mock_xauth)
openlibrary/tests/accounts/test_models.py:108
Functiontest_verify_xauth_failure_returns_generic_error
(mock_xauth)
openlibrary/tests/accounts/test_models.py:164
Functiontest_verify_xauth_sends_activate_op
Confirm the xauthn activate op and token are forwarded correctly.
openlibrary/tests/accounts/test_models.py:171
Functiontest_wagner_2019_to_short_lcc
(sortable_lcc, short_lcc, name)
openlibrary/utils/tests/test_lcc.py:96
Functiontest_wagner_2019_to_sortable
(sortable_lcc, short_lcc, name)
openlibrary/utils/tests/test_lcc.py:87
Methodtest_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
Methodtest_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
Methodtest_want_to_read_route_returns_200
(self, fastapi_client, monkeypatch)
openlibrary/tests/fastapi/test_public_my_books.py:15
Methodtest_warn_for_dollar_paren_attribute
(self)
scripts/tests/test_detect_missing_i18n.py:111
Methodtest_warn_for_dollar_paren_element
(self)
scripts/tests/test_detect_missing_i18n.py:104
Methodtest_weighted_average
Test average with mixed ratings.
openlibrary/tests/core/test_ratings.py:85
Methodtest_whitespace_trimming
(self)
openlibrary/tests/fastapi/test_models.py:128
Methodtest_with_callback_returns_jsonp
When callback param present, should wrap in callback with application/javascript.
openlibrary/tests/fastapi/test_models.py:24
Methodtest_with_multiple_editions
(self)
openlibrary/tests/solr/updater/test_work.py:269
Methodtest_with_one_inlibrary_edition
(self)
openlibrary/tests/solr/updater/test_work.py:223
Methodtest_with_one_lending_edition
(self)
openlibrary/tests/solr/updater/test_work.py:184
Methodtest_with_one_printdisabled_edition
(self)
openlibrary/tests/solr/updater/test_work.py:239
Methodtest_with_two_lending_editions
(self)
openlibrary/tests/solr/updater/test_work.py:201
Methodtest_work_authors
(self, mock_site)
openlibrary/mocks/tests/test_mock_infobase.py:75
Methodtest_work_authors
(self)
openlibrary/plugins/upstream/tests/test_merge_authors.py:287
Methodtest_work_lists_uses_default_pagination
(self, fastapi_client)
openlibrary/tests/fastapi/test_lists_json.py:56
Methodtest_work_no_title
(self)
openlibrary/tests/solr/updater/test_work.py:49
Methodtest_work_with_data
(self)
openlibrary/plugins/upstream/tests/test_models.py:62
Methodtest_work_without_data
(self)
openlibrary/plugins/upstream/tests/test_models.py:47
Methodtest_workless_author
(self, monkeypatch)
openlibrary/tests/solr/updater/test_author.py:19
Functiontest_works_autocomplete
()
openlibrary/plugins/worksearch/tests/test_autocomplete.py:30
Methodtest_works_content_in_response
(self, fastapi_client, mock_get_trending_books)
openlibrary/tests/fastapi/test_trending.py:125
Methodtest_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
Functiontest_wrapped_lines
()
openlibrary/catalog/marc/tests/test_marc_binary.py:19
Methodtest_write
(self, setup_db, image_dir)
openlibrary/coverstore/tests/test_webapp.py:88
Functiontest_write_image
Test writing jpg, gif and png images
openlibrary/coverstore/tests/test_coverstore.py:30
Methodtest_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
Methodtest_wrong_user_redirects_to_login
(self, fastapi_client, mock_optional_authenticated_user)
openlibrary/tests/fastapi/test_follows.py:46
Methodtest_wrong_user_redirects_to_login_and_preserves_redir_url
(self, fastapi_client, mock_optional_authenticated_user)
openlibrary/tests/fastapi/test_follows.py:98
Functiontest_xauth_http_error_with_json
(monkeypatch)
openlibrary/tests/accounts/test_models.py:30
Functiontest_xauth_http_error_without_json
(monkeypatch)
openlibrary/tests/accounts/test_models.py:18
Methodtest_xml
(self, i)
openlibrary/catalog/marc/tests/test_parse.py:98
Methodtest_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
Methodtest_zero_limit_defaults_to_50
(self, fastapi_client, patched_site)
openlibrary/tests/fastapi/test_work_editions_author_works.py:91
Methodtest_zero_limit_passed_through
(self, fastapi_client, patched_site)
openlibrary/tests/fastapi/test_work_editions_author_works.py:205
Methodtest_zero_padding
(self)
openlibrary/plugins/upstream/tests/test_checkins.py:13
Functiontexsafe
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
Methodthings
(self, query)
openlibrary/tests/core/lists/test_model.py:47
Methodtitle
(self)
openlibrary/solr/updater/edition.py:138
Methodtitle
(self)
openlibrary/solr/updater/work.py:338
Functiontitle_replace_amp
(amazon)
openlibrary/catalog/add_book/match.py:335
Methodtitle_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
Methodtitle_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
Methodto_dict
(self)
openlibrary/plugins/openlibrary/status.py:357
Methodto_json
(self)
openlibrary/core/lists/model.py:471
Methodto_markdown
(self)
openlibrary/plugins/upstream/table_of_contents.py:44
Functiontoday
()
openlibrary/plugins/upstream/utils.py:1488
Functiontodays_date_minus
(**kwargs)
openlibrary/utils/dateutil.py:24
MethodtoggleLinkPopover
()
openlibrary/components/lit/OLMarkdownEditor.js:508
Functiontop_books_from_author
(akey: str, rows=5)
openlibrary/plugins/worksearch/code.py:938
Methodtop_subjects
(self)
openlibrary/solr/updater/author.py:111
Methodtop_work
(self)
openlibrary/solr/updater/author.py:97
MethodtotalPages
Total number of pages. Depends on measured width, so read after `updateComplete`.
openlibrary/components/lit/OlCarousel.js:379
Methodtotal_accounts
(self)
openlibrary/plugins/ol_infobase.py:241
Functiontouch
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
Methodtransform_user_query
(self, user_query: str, q_tree: luqum.tree.Item)
openlibrary/plugins/worksearch/schemes/works.py:276
Methodtranslation_of
(self)
openlibrary/solr/updater/edition.py:245
Functiontrending_books_api
Fetch trending books for the given period.
openlibrary/fastapi/internal/api.py:154
Functiontrigger_subevents
Trigger infobase.edit event for edits.
openlibrary/olbase/events.py:37
Functiontruncate
(text, limit)
openlibrary/plugins/openlibrary/js/utils.js:14
Methodtype
(self)
openlibrary/solr/updater/list.py:104
Methodtype
(self)
openlibrary/solr/updater/author.py:72
← previousnext →6,001–6,100 of 6,179, ranked by callers