MCPcopy Create free account

hub / github.com/internetarchive/openlibrary / functions

Functions6,179 in github.com/internetarchive/openlibrary

Functiontest_new_types_pass_validate_subject_tag
New tag types must pass validate_subject_tag so edits are accepted.
openlibrary/plugins/upstream/tests/test_addtag.py:66
Functiontest_nextday
()
openlibrary/utils/tests/test_dateutil.py:12
Functiontest_nextmonth
()
openlibrary/utils/tests/test_dateutil.py:22
Functiontest_nextyear
()
openlibrary/utils/tests/test_dateutil.py:29
Methodtest_nginx_header_on_verify_human_passes_through
(self, monkeypatch)
openlibrary/plugins/openlibrary/tests/test_verification.py:105
Methodtest_nginx_header_redirects
(self, monkeypatch)
openlibrary/plugins/openlibrary/tests/test_verification.py:89
Methodtest_no_allow_delete_on_conflict
(self)
openlibrary/tests/core/test_db.py:140
Methodtest_no_callback_returns_json
When no callback param, should return plain JSON with application/json content-type.
openlibrary/tests/fastapi/test_models.py:14
Methodtest_no_colon_raises
(self, mock_web)
openlibrary/plugins/upstream/tests/test_account.py:469
Methodtest_no_config
(self)
openlibrary/tests/core/test_fulltext.py:11
Methodtest_no_cookies_calls_handler
(self, monkeypatch)
openlibrary/plugins/openlibrary/tests/test_verification.py:48
Methodtest_no_editions
(self)
openlibrary/tests/solr/updater/test_work.py:438
Methodtest_no_edits
(self, mock_site)
openlibrary/plugins/admin/tests/test_code.py:45
Functiontest_no_extra_author
(mock_site, add_languages)
openlibrary/catalog/add_book/tests/test_add_book.py:921
Methodtest_no_marc_xml
When no binary MARC is listed in _filenames, the MARC XML should be fetched.
openlibrary/tests/catalog/test_get_ia.py:101
Methodtest_no_olids_returns_empty
(self, fastapi_client, mock_get_metrics)
openlibrary/tests/fastapi/test_public_observations.py:35
Methodtest_no_ratings
A book with no ratings gets a prior estimate (Bayesian default). This is a conservative middle-of-the-road rating, not zero.
openlibrary/tests/core/test_ratings.py:42
Methodtest_no_remember_uses_session_expiry
(self, mock_web)
openlibrary/plugins/upstream/tests/test_account.py:306
Methodtest_no_retry
(self)
openlibrary/utils/tests/test_retry.py:16
Functiontest_no_role_trio_in_source
No source file should use all three of is_admin(), is_librarian(), is_super_librarian() on the same line -- use is_librarian_or_higher() instead.
openlibrary/tests/test_templates.py:59
Methodtest_no_tags_found_leaves_subject_unchanged
decorate_with_tags does nothing when Tag.find returns empty list.
openlibrary/plugins/worksearch/tests/test_subjects.py:77
Methodtest_no_title
(self)
openlibrary/tests/solr/updater/test_work.py:37
Functiontest_no_user_returns_visitor
()
openlibrary/plugins/openlibrary/tests/test_patron_status.py:23
Methodtest_noisbn_record_should_not_match_missing_date
(self)
openlibrary/catalog/add_book/tests/test_match.py:404
Methodtest_noisbn_record_should_not_match_title_only
(self)
openlibrary/catalog/add_book/tests/test_match.py:367
Methodtest_noisbn_record_should_not_match_title_only_live
(self)
openlibrary/catalog/add_book/tests/test_match.py:385
Methodtest_non_books_rejected
(self, input_)
scripts/tests/test_partner_batch_imports.py:67
Methodtest_non_json_solr_503
(self, monkeypatch, monkeytime)
openlibrary/tests/solr/test_utils.py:96
Methodtest_non_matching_birth_death_creates_new_author
If a year in birth or death date isn't an exact match, create a new record, other things being equal.
openlibrary/catalog/add_book/tests/test_load_book.py:271
Methodtest_non_numeric_position
(self)
openlibrary/tests/core/lists/test_model.py:115
Methodtest_non_translatable_content
(self)
scripts/tests/test_detect_missing_i18n.py:22
Methodtest_none_position
(self)
openlibrary/tests/core/lists/test_model.py:125
Methodtest_nonexistent_publisher_returns_404
(self, fastapi_client, mock_optional_authenticated_user)
openlibrary/tests/fastapi/test_follows.py:108
Methodtest_nonexistent_user_returns_404
(self, fastapi_client, monkeypatch)
openlibrary/tests/fastapi/test_public_my_books.py:43
Functiontest_noopener_noreferrer
(filename: Path)
openlibrary/tests/test_templates.py:43
Functiontest_noramlize_ddc
(raw_ddc, expected, name)
openlibrary/utils/tests/test_ddc.py:101
Methodtest_normal_case
(self)
openlibrary/tests/solr/updater/test_work.py:454
Functiontest_normalize
(title, normalized)
openlibrary/catalog/add_book/tests/test_match.py:71
Functiontest_normalize_ddc_prefix
(prefix, normed, name)
openlibrary/utils/tests/test_ddc.py:127
Functiontest_normalize_ddc_range
(raw, normed, name)
openlibrary/utils/tests/test_ddc.py:139
Functiontest_normalize_ddc_with_oclc_spec
(raw_ddc, expected, name)
openlibrary/utils/tests/test_ddc.py:110
Functiontest_normalize_identifier
(identifier, expected)
openlibrary/utils/tests/test_isbn.py:110
Methodtest_normalize_input_seed
(self)
openlibrary/plugins/openlibrary/tests/test_lists.py:106
Methodtest_normalize_input_seed_with_blank_key
Test that normalize_input_seed rejects blank keys. Blank keys should raise a ValueError instead of being accepted and passed through
openlibrary/plugins/openlibrary/tests/test_lists.py:114
Functiontest_normalize_isbn
(isbnlike, expected)
openlibrary/utils/tests/test_isbn.py:52
Functiontest_normalize_isbn_returns_None
()
openlibrary/utils/tests/test_isbn.py:32
Functiontest_normalize_lcc_prefix
(prefix, normed, name)
openlibrary/utils/tests/test_lcc.py:116
Functiontest_normalize_lcc_range
(raw, normed, name)
openlibrary/utils/tests/test_lcc.py:131
Functiontest_normalize_lccn
(raw, norm)
openlibrary/utils/tests/test_lccn.py:33
Functiontest_normalize_lccn_prenormalized
()
openlibrary/utils/tests/test_lccn.py:6
Methodtest_not_expired_when_expiry_future
Test that a loan is not expired when expiry is in the future.
openlibrary/tests/core/test_waitinglist.py:121
Methodtest_not_expired_when_no_expiry
Test that a loan is not expired when there's no expiry date.
openlibrary/tests/core/test_waitinglist.py:133
Methodtest_not_expired_when_status_waiting
Test that a loan is not expired when status is waiting, regardless of expiry.
openlibrary/tests/core/test_waitinglist.py:109
Methodtest_not_in_borrowable_collection_cuz_in_private_collection
(self)
openlibrary/tests/core/test_models.py:147
Methodtest_numeric_position
(self)
openlibrary/tests/core/lists/test_model.py:95
Methodtest_obfi_match_range_first_hour
(self)
scripts/tests/test_obfi_sh.py:33
Methodtest_obfi_match_range_multi_day
(self)
scripts/tests/test_obfi_sh.py:24
Methodtest_obfi_match_range_no_lines
(self)
scripts/tests/test_obfi_sh.py:53
Methodtest_obfi_match_range_second_day_same_hour
(self)
scripts/tests/test_obfi_sh.py:43
Methodtest_oclc_with_prefix
OCLC with OCLC: prefix.
openlibrary/tests/fastapi/test_books.py:122
Functiontest_ol_editions_and_amz_books
()
scripts/tests/test_affiliate_server.py:63
Methodtest_olid
Open Library ID (OLID).
openlibrary/tests/fastapi/test_books.py:130
Methodtest_olid_with_prefix
Open Library ID with OLID: prefix.
openlibrary/tests/fastapi/test_books.py:138
Functiontest_olmarkdown
()
openlibrary/tests/core/test_olmarkdown.py:4
Functiontest_olmarkdown_commonmark_hard_break_does_not_leak_br
Regression: a CommonMark hard break (trailing ``\\``) must render as a line break, not the literal text ``<br />``. The Tiptap WYSIWYG editor
openlibrary/tests/core/test_olmarkdown.py:56
Functiontest_olmarkdown_fenced_code
()
openlibrary/tests/core/test_olmarkdown.py:119
Functiontest_olmarkdown_no_br_leak_into_reference_block
Regression: a hard line break must not be glued onto a line that immediately precedes a markdown link-reference definition. LineBreaksPreproc
openlibrary/tests/core/test_olmarkdown.py:21
Methodtest_only_scans_the_top_results_not_the_whole_page
(self)
openlibrary/plugins/worksearch/tests/test_author_suggestion.py:90
Methodtest_openapi_contains_search_endpoint
Test that the OpenAPI spec contains the /search.json endpoint.
openlibrary/tests/fastapi/test_search.py:330
Methodtest_openapi_parameters_have_descriptions
Test that query parameters in the OpenAPI spec have descriptions. This test verifies that the descriptions we define in our Pydantic models
openlibrary/tests/fastapi/test_search.py:339
Functiontest_opposite_isbn
()
openlibrary/utils/tests/test_isbn.py:26
Methodtest_other_identifiers
(self)
openlibrary/tests/solr/updater/test_work.py:152
Methodtest_other_non_ok_status
(self, monkeypatch, monkeytime)
openlibrary/tests/solr/test_utils.py:140
Methodtest_override_can_delete_fields
(self)
openlibrary/tests/fastapi/test_models.py:159
Functiontest_overwrite_if_rev1_promise_item
Specifically unit test the function that determines if a promise item should be overwritten.
openlibrary/catalog/add_book/tests/test_add_book.py:1690
Methodtest_owner
(self)
openlibrary/tests/core/lists/test_model.py:8
Methodtest_pagination_offset_calculation
(self, httpx_mock, monkeypatch, page, limit, offset_kwarg, expected_from)
openlibrary/tests/core/test_fulltext.py:47
Methodtest_pagination_validation_errors
Test validation errors for invalid pagination parameters.
openlibrary/tests/fastapi/test_search.py:197
Methodtest_pagination_variants
Test pagination behavior for various query parameter combinations. The mock is configured to return a generic successful response; the focus
openlibrary/tests/fastapi/test_search.py:156
Functiontest_parse_date
()
openlibrary/utils/tests/test_dateutil.py:6
Functiontest_parse_daterange
()
openlibrary/utils/tests/test_dateutil.py:34
Methodtest_parse_docs
(self)
scripts/solr_builder/tests/test_fn_to_cli.py:21
Functiontest_parse_iso_handles_offset_and_naive
()
scripts/tests/test_bwb_opds_imports.py:136
Methodtest_parse_log_line
(self)
scripts/monitoring/tests/test_solr_logs_monitor.py:8
Methodtest_parse_params
(self)
scripts/monitoring/tests/test_solr_logs_monitor.py:25
Functiontest_parse_slugs
(name, slugs_input, expected)
openlibrary/plugins/upstream/tests/test_addtag.py:42
Functiontest_parse_solr_editions_from_fastapi
Test _parse_solr_editions_from_fastapi with various inputs.
openlibrary/utils/tests/test_request_context.py:41
Functiontest_parse_solr_editions_from_web
Test _parse_solr_editions_from_web with various inputs.
openlibrary/utils/tests/test_request_context.py:86
Functiontest_parse_solr_editions_parity
Test that both implementations handle common cases the same way. Documents any behavioral differences between the two versions.
openlibrary/utils/tests/test_request_context.py:111
Functiontest_parse_tarindex
()
openlibrary/coverstore/tests/test_code.py:24
Methodtest_partial_dates
(self)
openlibrary/plugins/upstream/tests/test_checkins.py:24
Methodtest_passes_details_and_jscmd
Verify details and jscmd query params are forwarded to dynlinks options.
openlibrary/tests/fastapi/test_books.py:76
Methodtest_passing_edition_to_load_data_overwrites_edition_with_rec_data
(self, mock_site, add_languages, ia_writeback, setup_load_data)
openlibrary/catalog/add_book/tests/test_add_book.py:1755
Methodtest_paths
(self)
scripts/solr_builder/tests/test_fn_to_cli.py:60
Methodtest_people_lists_rejects_invalid_limit
(self, fastapi_client)
openlibrary/tests/fastapi/test_lists_json.py:35
Methodtest_people_lists_rejects_negative_offset
(self, fastapi_client)
openlibrary/tests/fastapi/test_lists_json.py:42
Methodtest_people_lists_rejects_non_numeric_limit
(self, fastapi_client)
openlibrary/tests/fastapi/test_lists_json.py:49
Methodtest_people_lists_validates_pagination_params
(self, fastapi_client)
openlibrary/tests/fastapi/test_lists_json.py:10
Functiontest_percentage
()
openlibrary/tests/core/test_helpers.py:140
Methodtest_permission_denied_returns_forbidden
(self, fastapi_client, mock_authenticated_user)
openlibrary/tests/fastapi/test_lists_json.py:163
← previousnext →5,601–5,700 of 6,179, ranked by callers