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
Function
test_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
Function
test_nextday
()
openlibrary/utils/tests/test_dateutil.py:12
Function
test_nextmonth
()
openlibrary/utils/tests/test_dateutil.py:22
Function
test_nextyear
()
openlibrary/utils/tests/test_dateutil.py:29
Method
test_nginx_header_on_verify_human_passes_through
(self, monkeypatch)
openlibrary/plugins/openlibrary/tests/test_verification.py:105
Method
test_nginx_header_redirects
(self, monkeypatch)
openlibrary/plugins/openlibrary/tests/test_verification.py:89
Method
test_no_allow_delete_on_conflict
(self)
openlibrary/tests/core/test_db.py:140
Method
test_no_callback_returns_json
When no callback param, should return plain JSON with application/json content-type.
openlibrary/tests/fastapi/test_models.py:14
Method
test_no_colon_raises
(self, mock_web)
openlibrary/plugins/upstream/tests/test_account.py:469
Method
test_no_config
(self)
openlibrary/tests/core/test_fulltext.py:11
Method
test_no_cookies_calls_handler
(self, monkeypatch)
openlibrary/plugins/openlibrary/tests/test_verification.py:48
Method
test_no_editions
(self)
openlibrary/tests/solr/updater/test_work.py:438
Method
test_no_edits
(self, mock_site)
openlibrary/plugins/admin/tests/test_code.py:45
Function
test_no_extra_author
(mock_site, add_languages)
openlibrary/catalog/add_book/tests/test_add_book.py:921
Method
test_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
Method
test_no_olids_returns_empty
(self, fastapi_client, mock_get_metrics)
openlibrary/tests/fastapi/test_public_observations.py:35
Method
test_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
Method
test_no_remember_uses_session_expiry
(self, mock_web)
openlibrary/plugins/upstream/tests/test_account.py:306
Method
test_no_retry
(self)
openlibrary/utils/tests/test_retry.py:16
Function
test_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
Method
test_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
Method
test_no_title
(self)
openlibrary/tests/solr/updater/test_work.py:37
Function
test_no_user_returns_visitor
()
openlibrary/plugins/openlibrary/tests/test_patron_status.py:23
Method
test_noisbn_record_should_not_match_missing_date
(self)
openlibrary/catalog/add_book/tests/test_match.py:404
Method
test_noisbn_record_should_not_match_title_only
(self)
openlibrary/catalog/add_book/tests/test_match.py:367
Method
test_noisbn_record_should_not_match_title_only_live
(self)
openlibrary/catalog/add_book/tests/test_match.py:385
Method
test_non_books_rejected
(self, input_)
scripts/tests/test_partner_batch_imports.py:67
Method
test_non_json_solr_503
(self, monkeypatch, monkeytime)
openlibrary/tests/solr/test_utils.py:96
Method
test_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
Method
test_non_numeric_position
(self)
openlibrary/tests/core/lists/test_model.py:115
Method
test_non_translatable_content
(self)
scripts/tests/test_detect_missing_i18n.py:22
Method
test_none_position
(self)
openlibrary/tests/core/lists/test_model.py:125
Method
test_nonexistent_publisher_returns_404
(self, fastapi_client, mock_optional_authenticated_user)
openlibrary/tests/fastapi/test_follows.py:108
Method
test_nonexistent_user_returns_404
(self, fastapi_client, monkeypatch)
openlibrary/tests/fastapi/test_public_my_books.py:43
Function
test_noopener_noreferrer
(filename: Path)
openlibrary/tests/test_templates.py:43
Function
test_noramlize_ddc
(raw_ddc, expected, name)
openlibrary/utils/tests/test_ddc.py:101
Method
test_normal_case
(self)
openlibrary/tests/solr/updater/test_work.py:454
Function
test_normalize
(title, normalized)
openlibrary/catalog/add_book/tests/test_match.py:71
Function
test_normalize_ddc_prefix
(prefix, normed, name)
openlibrary/utils/tests/test_ddc.py:127
Function
test_normalize_ddc_range
(raw, normed, name)
openlibrary/utils/tests/test_ddc.py:139
Function
test_normalize_ddc_with_oclc_spec
(raw_ddc, expected, name)
openlibrary/utils/tests/test_ddc.py:110
Function
test_normalize_identifier
(identifier, expected)
openlibrary/utils/tests/test_isbn.py:110
Method
test_normalize_input_seed
(self)
openlibrary/plugins/openlibrary/tests/test_lists.py:106
Method
test_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
Function
test_normalize_isbn
(isbnlike, expected)
openlibrary/utils/tests/test_isbn.py:52
Function
test_normalize_isbn_returns_None
()
openlibrary/utils/tests/test_isbn.py:32
Function
test_normalize_lcc_prefix
(prefix, normed, name)
openlibrary/utils/tests/test_lcc.py:116
Function
test_normalize_lcc_range
(raw, normed, name)
openlibrary/utils/tests/test_lcc.py:131
Function
test_normalize_lccn
(raw, norm)
openlibrary/utils/tests/test_lccn.py:33
Function
test_normalize_lccn_prenormalized
()
openlibrary/utils/tests/test_lccn.py:6
Method
test_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
Method
test_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
Method
test_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
Method
test_not_in_borrowable_collection_cuz_in_private_collection
(self)
openlibrary/tests/core/test_models.py:147
Method
test_numeric_position
(self)
openlibrary/tests/core/lists/test_model.py:95
Method
test_obfi_match_range_first_hour
(self)
scripts/tests/test_obfi_sh.py:33
Method
test_obfi_match_range_multi_day
(self)
scripts/tests/test_obfi_sh.py:24
Method
test_obfi_match_range_no_lines
(self)
scripts/tests/test_obfi_sh.py:53
Method
test_obfi_match_range_second_day_same_hour
(self)
scripts/tests/test_obfi_sh.py:43
Method
test_oclc_with_prefix
OCLC with OCLC: prefix.
openlibrary/tests/fastapi/test_books.py:122
Function
test_ol_editions_and_amz_books
()
scripts/tests/test_affiliate_server.py:63
Method
test_olid
Open Library ID (OLID).
openlibrary/tests/fastapi/test_books.py:130
Method
test_olid_with_prefix
Open Library ID with OLID: prefix.
openlibrary/tests/fastapi/test_books.py:138
Function
test_olmarkdown
()
openlibrary/tests/core/test_olmarkdown.py:4
Function
test_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
Function
test_olmarkdown_fenced_code
()
openlibrary/tests/core/test_olmarkdown.py:119
Function
test_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
Method
test_only_scans_the_top_results_not_the_whole_page
(self)
openlibrary/plugins/worksearch/tests/test_author_suggestion.py:90
Method
test_openapi_contains_search_endpoint
Test that the OpenAPI spec contains the /search.json endpoint.
openlibrary/tests/fastapi/test_search.py:330
Method
test_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
Function
test_opposite_isbn
()
openlibrary/utils/tests/test_isbn.py:26
Method
test_other_identifiers
(self)
openlibrary/tests/solr/updater/test_work.py:152
Method
test_other_non_ok_status
(self, monkeypatch, monkeytime)
openlibrary/tests/solr/test_utils.py:140
Method
test_override_can_delete_fields
(self)
openlibrary/tests/fastapi/test_models.py:159
Function
test_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
Method
test_owner
(self)
openlibrary/tests/core/lists/test_model.py:8
Method
test_pagination_offset_calculation
(self, httpx_mock, monkeypatch, page, limit, offset_kwarg, expected_from)
openlibrary/tests/core/test_fulltext.py:47
Method
test_pagination_validation_errors
Test validation errors for invalid pagination parameters.
openlibrary/tests/fastapi/test_search.py:197
Method
test_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
Function
test_parse_date
()
openlibrary/utils/tests/test_dateutil.py:6
Function
test_parse_daterange
()
openlibrary/utils/tests/test_dateutil.py:34
Method
test_parse_docs
(self)
scripts/solr_builder/tests/test_fn_to_cli.py:21
Function
test_parse_iso_handles_offset_and_naive
()
scripts/tests/test_bwb_opds_imports.py:136
Method
test_parse_log_line
(self)
scripts/monitoring/tests/test_solr_logs_monitor.py:8
Method
test_parse_params
(self)
scripts/monitoring/tests/test_solr_logs_monitor.py:25
Function
test_parse_slugs
(name, slugs_input, expected)
openlibrary/plugins/upstream/tests/test_addtag.py:42
Function
test_parse_solr_editions_from_fastapi
Test _parse_solr_editions_from_fastapi with various inputs.
openlibrary/utils/tests/test_request_context.py:41
Function
test_parse_solr_editions_from_web
Test _parse_solr_editions_from_web with various inputs.
openlibrary/utils/tests/test_request_context.py:86
Function
test_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
Function
test_parse_tarindex
()
openlibrary/coverstore/tests/test_code.py:24
Method
test_partial_dates
(self)
openlibrary/plugins/upstream/tests/test_checkins.py:24
Method
test_passes_details_and_jscmd
Verify details and jscmd query params are forwarded to dynlinks options.
openlibrary/tests/fastapi/test_books.py:76
Method
test_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
Method
test_paths
(self)
scripts/solr_builder/tests/test_fn_to_cli.py:60
Method
test_people_lists_rejects_invalid_limit
(self, fastapi_client)
openlibrary/tests/fastapi/test_lists_json.py:35
Method
test_people_lists_rejects_negative_offset
(self, fastapi_client)
openlibrary/tests/fastapi/test_lists_json.py:42
Method
test_people_lists_rejects_non_numeric_limit
(self, fastapi_client)
openlibrary/tests/fastapi/test_lists_json.py:49
Method
test_people_lists_validates_pagination_params
(self, fastapi_client)
openlibrary/tests/fastapi/test_lists_json.py:10
Function
test_percentage
()
openlibrary/tests/core/test_helpers.py:140
Method
test_permission_denied_returns_forbidden
(self, fastapi_client, mock_authenticated_user)
openlibrary/tests/fastapi/test_lists_json.py:163
← previous
next →
5,601–5,700 of 6,179, ranked by callers