MCPcopy Create free account

hub / github.com/internetarchive/openlibrary / functions

Functions6,179 in github.com/internetarchive/openlibrary

Methodtest_is_member_of_any
(self, monkeypatch, group_keys, check_groups, expected)
openlibrary/tests/core/test_models.py:30
Functiontest_is_nonbook
Just ensure basic functionality works in terms of matching strings and substrings, case insensitivity, etc.
scripts/tests/test_isbndb.py:98
Methodtest_is_not_in_private_collection
(self)
openlibrary/tests/core/test_models.py:135
Methodtest_is_optional
(self)
scripts/solr_builder/tests/test_fn_to_cli.py:48
Functiontest_is_promise_item
(rec, expected)
openlibrary/tests/catalog/test_utils.py:330
Functiontest_is_published_in_future_year
()
scripts/tests/test_partner_batch_imports.py:126
Functiontest_is_safe_redirect
(redirect, expected)
openlibrary/plugins/upstream/tests/test_account.py:54
Methodtest_is_timeout
(self, monkeypatch)
openlibrary/tests/core/test_processors_invalidation.py:91
Methodtest_is_usergroup_member
(self, monkeypatch, group_keys, check_group, expected)
openlibrary/tests/core/test_models.py:53
Methodtest_is_valid_identifier
(self, isbn, asin, expected)
openlibrary/tests/core/test_models.py:177
Functiontest_isbn_10_to_isbn_13
()
openlibrary/utils/tests/test_isbn.py:20
Functiontest_isbn_13_to_isbn_10
()
openlibrary/utils/tests/test_isbn.py:14
Functiontest_isbn_13_to_isbn_10_returns_none_for_979_prefix
979-prefix ISBN-13s have no ISBN-10 equivalent (per the ISBN standard). isbn_13_to_isbn_10() must return None for these; build_primary_stores()
openlibrary/utils/tests/test_isbn.py:115
Methodtest_isbn_case
Test different ISBN values with the specified record.
openlibrary/plugins/importapi/tests/test_import_validator.py:132
Methodtest_isbn_with_prefix
ISBN with ISBN: prefix.
openlibrary/tests/fastapi/test_books.py:106
Functiontest_isbndb_get_languages
(language, expected, get_isbndb_data)
scripts/tests/test_isbndb.py:117
Functiontest_isbndb_get_year
(year, expected, get_isbndb_data)
scripts/tests/test_isbndb.py:135
Functiontest_isbndb_to_ol_item
(tmp_path)
scripts/tests/test_isbndb.py:76
Methodtest_isbns
(self)
openlibrary/tests/solr/updater/test_work.py:144
Functiontest_isbns_from_record
()
openlibrary/catalog/add_book/tests/test_add_book.py:44
Functiontest_isbnx
(monkeypatch)
openlibrary/plugins/books/tests/test_dynlinks.py:398
Methodtest_issue_auth_service_5xx_returns_specific_error
(self, mock_web, mock_ia)
openlibrary/plugins/upstream/tests/test_account.py:395
Methodtest_issue_empty_secret_rejected
(self, mock_web, mock_ia)
openlibrary/plugins/upstream/tests/test_account.py:377
Methodtest_issue_invalid_keys_rejected
(self, mock_web, mock_ia)
openlibrary/plugins/upstream/tests/test_account.py:386
Methodtest_issue_missing_auth_header
(self, mock_web, mock_ia)
openlibrary/plugins/upstream/tests/test_account.py:368
Methodtest_issue_valid_keys_proceeds
(self, mock_web, mock_ia, mock_otp)
openlibrary/plugins/upstream/tests/test_account.py:405
Functiontest_item_image
()
openlibrary/plugins/upstream/tests/test_utils.py:96
Functiontest_iter_pages_breaks_on_cycle
(monkeypatch)
scripts/tests/test_bwb_opds_imports.py:201
Functiontest_iter_pages_follows_next_link
(monkeypatch)
scripts/tests/test_bwb_opds_imports.py:188
Functiontest_iter_pages_respects_max_pages
(monkeypatch)
scripts/tests/test_bwb_opds_imports.py:210
Methodtest_jscmd_data_passed_to_dynlinks
jscmd=data is passed to dynlinks.
openlibrary/tests/fastapi/test_books.py:255
Methodtest_jscmd_details_passed_to_dynlinks
jscmd=details is passed to dynlinks.
openlibrary/tests/fastapi/test_books.py:263
Methodtest_jscmd_viewapi_passed_to_dynlinks
jscmd=viewapi is passed to dynlinks.
openlibrary/tests/fastapi/test_books.py:271
Functiontest_json_encode
()
openlibrary/plugins/upstream/tests/test_utils.py:391
Methodtest_json_endpoints_return_401_when_unauthenticated
(self, fastapi_client, path)
openlibrary/tests/fastapi/test_account_loans.py:27
Methodtest_jsonp_callback
Verify JSONP callback wrapping works for /api/books.json.
openlibrary/tests/fastapi/test_books.py:86
Methodtest_jsonp_callback
Verify JSONP callback wrapping works for multiget endpoint.
openlibrary/tests/fastapi/test_books.py:328
Methodtest_jsonp_callback
Verify JSONP callback wrapping works for single-volume endpoint.
openlibrary/tests/fastapi/test_books.py:361
Methodtest_kebab_case_normalized
(self, tmp_path: Path)
openlibrary/tests/core/test_features.py:97
Methodtest_kwargs_only
(self)
openlibrary/tests/core/test_features.py:46
Methodtest_label
(self)
scripts/monitoring/tests/test_solr_logs_monitor.py:41
Methodtest_last_exception
(self, monkeytime)
openlibrary/utils/tests/test_retry.py:35
Methodtest_last_match_on_surname_and_dates
The lowest priority match is an exact surname match + birth and death date matches.
openlibrary/catalog/add_book/tests/test_load_book.py:349
Methodtest_last_match_on_surname_and_dates_and_dates_are_required
Like above, but ensure dates must exist for this match (so don't match on falsy dates).
openlibrary/catalog/add_book/tests/test_load_book.py:385
Methodtest_last_page_has_prev_no_next
Last page should have prev, no next.
openlibrary/plugins/openlibrary/tests/test_lists.py:189
Functiontest_lazy_writer_creates_file_on_write
(tmp_path: Path)
scripts/tests/test_bwb_opds_imports.py:394
Functiontest_lazy_writer_does_not_create_file_when_unused
(tmp_path: Path)
scripts/tests/test_bwb_opds_imports.py:387
Methodtest_lccn_case
Test different LCCN values with the specified record.
openlibrary/plugins/importapi/tests/test_import_validator.py:165
Methodtest_lccn_with_prefix
LCCN with LCCN: prefix.
openlibrary/tests/fastapi/test_books.py:114
Methodtest_lccs
(self, doc_lccs, solr_lccs, sort_lcc_index)
openlibrary/tests/solr/updater/test_work.py:372
Methodtest_legacy_and_fastapi_loans_json_match_shared_helper_response
(self, fastapi_client, mock_authenticated_user, monkeypatch)
openlibrary/tests/fastapi/test_account_loans.py:111
Methodtest_legacy_disabled_string
(self, tmp_path: Path)
openlibrary/tests/core/test_features.py:109
Methodtest_legacy_enabled_string
(self, tmp_path: Path)
openlibrary/tests/core/test_features.py:103
Methodtest_legacy_strings
(self, tmp_path: Path, raw: str, expected: bool)
openlibrary/tests/core/test_features.py:161
Methodtest_legitimate_ampersand_unchanged
A bare & in a title is not corrupted.
openlibrary/catalog/add_book/tests/test_add_book.py:2005
Methodtest_limit_defaults_to_100
(self, fastapi_client, mock_get_trending_books)
openlibrary/tests/fastapi/test_trending.py:110
Functiontest_limit_server
()
scripts/monitoring/tests/test_utils_py.py:27
Methodtest_links
(self)
openlibrary/plugins/upstream/tests/test_merge_authors.py:262
Functiontest_list_add_seed_with_blank_annotated_seed
Test that List.add_seed rejects AnnotatedSeedDict with blank keys. Tests that AnnotatedSeedDict (which has 'thing' and 'notes' keys) with bla
openlibrary/tests/core/test_lists_model.py:69
Functiontest_list_add_seed_with_blank_key
Test that List.add_seed rejects seeds with blank keys. Add_seed should validate that the seed key is non-empty before adding it to the list.
openlibrary/tests/core/test_lists_model.py:46
Functiontest_list_editions_json_not_found
(client, monkeypatch)
openlibrary/tests/fastapi/test_list_view_json.py:197
Functiontest_list_editions_json_public_list
(client, monkeypatch)
openlibrary/tests/fastapi/test_list_view_json.py:206
Functiontest_list_editions_json_returns_editions
(client, monkeypatch)
openlibrary/tests/fastapi/test_list_view_json.py:184
Functiontest_list_editions_json_series
(client, monkeypatch)
openlibrary/tests/fastapi/test_list_view_json.py:216
Functiontest_list_subjects_json_public_list
(client, monkeypatch)
openlibrary/tests/fastapi/test_list_view_json.py:149
Functiontest_list_subjects_json_series
(client, monkeypatch)
openlibrary/tests/fastapi/test_list_view_json.py:160
Functiontest_list_subjects_json_user_not_found
(client, monkeypatch)
openlibrary/tests/fastapi/test_list_view_json.py:140
Functiontest_list_subjects_json_user_returns_subjects
(client, monkeypatch)
openlibrary/tests/fastapi/test_list_view_json.py:125
Functiontest_list_urls
()
openlibrary/tests/core/test_processors.py:112
Functiontest_list_view_json_deleted_list_returns_404
A deleted list (type = /type/delete) should return 404 regardless of ?_raw.
openlibrary/tests/fastapi/test_list_view_json.py:59
Functiontest_list_view_json_public_list
Public list (no /people/ prefix) should also work.
openlibrary/tests/fastapi/test_list_view_json.py:75
Functiontest_list_view_json_raw_param
?_raw=true should be passed through to get_list, along with the correct key.
openlibrary/tests/fastapi/test_list_view_json.py:97
Functiontest_list_view_json_series
Series list should work via /series/{id}.json.
openlibrary/tests/fastapi/test_list_view_json.py:86
Functiontest_list_view_json_user_not_found
Should return 404 when list does not exist.
openlibrary/tests/fastapi/test_list_view_json.py:49
Functiontest_list_view_json_user_returns_list
User-owned list should return formatted metadata.
openlibrary/tests/fastapi/test_list_view_json.py:35
Methodtest_list_with_callback
List input should work with callback.
openlibrary/tests/fastapi/test_models.py:86
Methodtest_list_with_comma_separated_strings
(self)
openlibrary/tests/fastapi/test_models.py:134
Methodtest_list_with_whitespace_and_empty_strings
(self)
openlibrary/tests/fastapi/test_models.py:137
Functiontest_lists
(config)
openlibrary/plugins/openlibrary/tests/test_listapi.py:116
Methodtest_lists
(self)
scripts/solr_builder/tests/test_fn_to_cli.py:52
Functiontest_load_deduplicates_authors
Testings that authors are deduplicated before being added This will only work if all the author dicts are identical Not sure if that is t
openlibrary/catalog/add_book/tests/test_add_book.py:199
Functiontest_load_multiple
(mock_site)
openlibrary/catalog/add_book/tests/test_add_book.py:665
Functiontest_load_test_item
(mock_site, add_languages, ia_writeback)
openlibrary/catalog/add_book/tests/test_add_book.py:174
Functiontest_load_with_new_author
(mock_site, ia_writeback)
openlibrary/catalog/add_book/tests/test_add_book.py:232
Functiontest_load_with_redirected_author
Test importing existing editions without works which have author redirects. A work should be created with the final author.
openlibrary/catalog/add_book/tests/test_add_book.py:294
Functiontest_load_with_subjects
(mock_site, ia_writeback)
openlibrary/catalog/add_book/tests/test_add_book.py:218
Functiontest_load_without_required_field
()
openlibrary/catalog/add_book/tests/test_add_book.py:168
Functiontest_loader
Make sure services are loaded
openlibrary/plugins/admin/tests/test_services.py:8
Methodtest_loads_all_flags
(self, tmp_path: Path)
openlibrary/tests/core/test_features.py:68
Methodtest_loan_history_json_rejects_invalid_page
(self, fastapi_client, mock_authenticated_user)
openlibrary/tests/fastapi/test_account_loans.py:86
Methodtest_loan_history_json_serializes_docs_and_forwards_page
(self, fastapi_client, mock_authenticated_user, path, page)
openlibrary/tests/fastapi/test_account_loans.py:55
Methodtest_loans_json_updates_loan_status_and_returns_loans
(self, fastapi_client, mock_authenticated_user)
openlibrary/tests/fastapi/test_account_loans.py:32
Methodtest_local_dev_returns_503_with_helpful_message
(self, fastapi_client, mock_authenticated_user, endpoint, helper_path, monkeypatch)
openlibrary/tests/fastapi/test_account_loans.py:98
Functiontest_log_recent_bot_traffic
()
scripts/monitoring/tests/test_utils_sh.py:29
Functiontest_log_recent_http_statuses
()
scripts/monitoring/tests/test_utils_sh.py:70
Functiontest_log_top_response_times
()
scripts/monitoring/tests/test_utils_sh.py:108
Functiontest_log_workers_cur_fn_fastapi
()
scripts/monitoring/tests/test_olspy_sh.py:58
Functiontest_log_workers_cur_fn_webpy
()
scripts/monitoring/tests/test_olspy_sh.py:42
Functiontest_login_and_session
Test that login creates a session cookie and authenticated requests work.
tests/integration/test_fastapi_auth.py:67
Functiontest_login_deletes_pending_action_cookie_on_valid_redirect
(fastapi_client)
openlibrary/tests/fastapi/test_account.py:90
← previousnext →5,401–5,500 of 6,179, ranked by callers