MCPcopy Create free account

hub / github.com/WesternFriend/westernfriend.org / functions

Functions616 in github.com/WesternFriend/westernfriend.org

Methodtest_order_items_displayed_in_notification
Test that all order items are displayed in the notification.
orders/tests.py:516
Methodtest_order_not_found
(self)
paypal/tests.py:334
Methodtest_organization_custom_template_renders
Test that organization search results use custom template.
search/tests.py:549
Methodtest_organization_index_page_creation
(self)
contact/tests.py:99
Methodtest_organization_index_page_creation
(self)
contact/tests.py:118
Methodtest_organization_with_related_content_query_optimization
Test that Organization pages with related content don't trigger N+1 queries.
contact/tests.py:496
Methodtest_page_number_greater_than_total_pages
(self)
pagination/tests.py:56
Methodtest_page_number_is_none
(self)
pagination/tests.py:21
Methodtest_page_number_is_valid
(self)
pagination/tests.py:32
Methodtest_page_number_out_of_range
(self)
pagination/tests.py:44
Methodtest_pagination
(self)
tags/tests.py:118
Methodtest_pagination_second_page
(self)
tags/tests.py:139
Methodtest_parent_issue_falls_back_to_db_when_not_annotated
parent_issue queries the DB when _parent_page is not set.
magazine/tests.py:769
Methodtest_parent_issue_returns_magazine_issue
parent_issue returns the correct MagazineIssue via DB lookup.
magazine/tests.py:756
Methodtest_parent_issue_uses_annotated_value_when_set
parent_issue returns _parent_page directly when pre-populated by annotate_parent_page(), without hitting the database.
magazine/tests.py:761
Methodtest_parent_page_annotated_after_view
The view calls annotate_parent_page() so every article in the response has _parent_page set to its MagazineIssue without additional DB queries
tags/tests.py:238
Methodtest_password_reset_sends_text_and_html
(self)
accounts/tests.py:163
Methodtest_patch_is_idempotent
Calling _patch_locale_manager() a second time does not stack wrappers. The test explicitly enables i18n and applies the patch once so that th
common/tests.py:204
Methodtest_patch_skipped_when_i18n_disabled
No wrapping occurs when WAGTAIL_I18N_ENABLED is falsy.
common/tests.py:219
Methodtest_payment_canceled_view
(self)
payment/tests.py:46
Methodtest_payment_done_view
(self)
payment/tests.py:42
Methodtest_person_creation
(self)
events/tests.py:27
Methodtest_person_index_page_creation
(self)
contact/tests.py:23
Methodtest_person_index_page_creation
(self)
contact/tests.py:42
Methodtest_person_index_page_creation
(self)
events/tests.py:11
Methodtest_person_with_related_content_query_optimization
Test that Person pages with related content don't trigger N+1 queries.
contact/tests.py:245
Methodtest_post_filter_word_count_truncation
query_truncated must be True when stopword removal leaves more than MAX_QUERY_WORDS non-stopword terms, and the query must be capped.
search/tests.py:852
Methodtest_prefetch_parent_issues_no_n1
Accessing parent_issue.publication_date must not fire per-article queries.
search/tests.py:687
Methodtest_prefetch_sets_parent_page
(self)
search/tests.py:674
Methodtest_preserves_order_of_visible_ancestors
(self)
common/tests.py:180
Methodtest_process_bookstore_order_payment
(self)
payment/tests.py:16
Methodtest_product_factory
Test that a Topic can be created.
store/tests.py:46
Methodtest_product_get_context
Test that a Topic can be created.
store/tests.py:83
Methodtest_product_index_page_factory
Test that a Topic can be created.
store/tests.py:30
Methodtest_publication_end_date
Test that the publication_end_date property returns the correct date.
magazine/tests.py:253
Methodtest_purchaser_full_name
(self)
orders/tests.py:57
Methodtest_query_exceeding_max_length_is_truncated
(self)
search/tests.py:707
Methodtest_query_exceeding_max_words_is_truncated
(self)
search/tests.py:714
Methodtest_query_of_only_special_chars_returns_no_results
A query that reduces to empty after stripping should show no results.
search/tests.py:796
Methodtest_query_with_all_valid_facets
Test that a query with all valid facets returns the same dictionary.
library/tests.py:76
Methodtest_query_with_multiple_spaces_no_empty_tokens
Special-char replacements and consecutive spaces are normalized to single spaces. Special chars are replaced with spaces by the sanitizer (e.
search/tests.py:803
Methodtest_query_with_no_valid_facets
Test that a query with no valid facets returns an empty dictionary.
library/tests.py:60
Methodtest_query_with_some_valid_facets
Test that a query with some valid facets returns a dictionary with only the valid facets.
library/tests.py:67
Methodtest_query_with_tsquery_special_chars_is_sanitized
Queries with non-alphanumeric characters should not crash with a PostgreSQL SyntaxError.
search/tests.py:740
Methodtest_queryset_content_and_order
(self)
tags/tests.py:55
Methodtest_recent_get_context_admin
Test that the get_context method returns the correct context.
magazine/tests.py:590
Methodtest_recent_get_context_anonymous
Test that the get_context method returns the correct context.
magazine/tests.py:557
Methodtest_recent_get_context_registered
Test that the get_context method returns the correct context.
magazine/tests.py:568
Methodtest_recent_get_context_subscriber
Test that the get_context method returns the correct context.
magazine/tests.py:579
Methodtest_redirect_allows_safe_non_admin_next_when_reverse_missing
(self)
accounts/tests.py:118
Methodtest_redirect_subscriber_to_manage_subscription_page
(self)
subscription/tests.py:83
Methodtest_remove_product
(self)
cart/tests.py:81
Methodtest_render_basic_audio
(self)
blocks/tests.py:28
Methodtest_render_basic_no_value
(self)
blocks/tests.py:11
Methodtest_render_basic_video
(self)
blocks/tests.py:15
Methodtest_render_basic_with_value
(self)
blocks/tests.py:44
Methodtest_render_basic_without_value
(self)
blocks/tests.py:51
Methodtest_request_finished_clears_cache
request_finished sets the cache back to None.
common/tests.py:238
Methodtest_request_started_initialises_cache
request_started creates an empty cache dict.
common/tests.py:232
Methodtest_returns_default_site
Test that function returns the default site when one exists.
core/tests.py:23
Methodtest_returns_falsy_input_unchanged
None and other falsy values are returned without calling .specific().
common/tests.py:150
Methodtest_returns_first_site_when_no_default
Test that function returns first site when no default exists.
core/tests.py:34
Methodtest_returns_none_when_no_sites_exist
Test that function returns None when no sites exist.
core/tests.py:48
Methodtest_returns_result_of_specific
Return value is whatever .specific() produces.
common/tests.py:144
Methodtest_save_cart
(self)
cart/tests.py:75
Methodtest_search_full_request_query_count
Test total queries for complete search request including template rendering. This is the most important test - it catches N+1 issues that onl
search/tests.py:169
Methodtest_search_no_query
(self)
search/tests.py:44
Methodtest_search_no_results_empty_list
Test that no results returns an empty list.
search/tests.py:387
Methodtest_search_pagination_invalid_page
(self)
search/tests.py:68
Methodtest_search_pagination_limit_message
Test that pagination limit exceeded message is displayed when appropriate.
search/tests.py:377
Methodtest_search_pagination_non_existant_page_default_first
(self)
search/tests.py:57
Methodtest_search_pagination_out_of_range
(self)
search/tests.py:73
Methodtest_search_prefetches_parent_pages
Test that search view prefetches parent pages for magazine articles.
search/tests.py:148
Methodtest_search_prefetches_related_data
Test that search view prefetches related data to avoid N+1 queries.
search/tests.py:122
Methodtest_search_query
(self)
search/tests.py:49
Methodtest_search_query_optimization
Test that search queries are optimized to avoid N+1 database queries.
search/tests.py:211
Methodtest_search_results_aria_labels
Test that search results have proper ARIA labels for accessibility.
search/tests.py:402
Methodtest_search_results_have_accessible_links
Test that search result links are accessible.
search/tests.py:368
Methodtest_search_results_include_authors
Test that search results include author information in the response context.
search/tests.py:244
Methodtest_search_results_use_semantic_html
Test that search results use semantic HTML elements.
search/tests.py:360
Methodtest_setUp_data
(self)
tags/tests.py:37
Methodtest_short_query_not_truncated
(self)
search/tests.py:727
Methodtest_single_key_value_pair
Test that a dictionary with a single key-value pair returns a correct query string.
library/tests.py:35
Methodtest_special_chars_replaced_with_spaces_preserving_word_boundaries
Non-alphanumeric chars between words must become spaces, not be deleted. "foo&bar" and "foo-bar" should each sanitize to "foo bar" (two terms
search/tests.py:754
Methodtest_stopwords_match_postgresql_canonical_list
(self)
search/tests.py:905
Methodtest_stopwords_only_query_returns_no_search
A query composed entirely of stopwords should be treated as no query. search_query must be None, query_truncated must be False, and the
search/tests.py:821
Methodtest_store_index_page_factory
Test that a Topic can be created.
store/tests.py:14
Methodtest_store_index_page_get_context
Test that a Topic can be created.
store/tests.py:62
Methodtest_str_method
(self)
orders/tests.py:77
Methodtest_str_method
(self)
orders/tests.py:105
Methodtest_submenu_id_with_empty_title
Test submenu_id generation with an empty title.
navigation/tests.py:136
Methodtest_submenu_id_with_simple_title
Test submenu_id generation with a simple title.
navigation/tests.py:106
Methodtest_submenu_id_with_special_characters
Test submenu_id generation with special characters in the title.
navigation/tests.py:121
Methodtest_subscription_index_page_str
(self)
subscription/tests.py:70
Methodtest_subscription_is_active_cache_hit
(self, mock_get_subscription)
paypal/tests.py:234
Methodtest_subscription_is_active_cache_miss
(self, mock_get_subscription)
paypal/tests.py:220
Methodtest_subscription_is_active_error
(self, mock_get_subscription)
paypal/tests.py:262
Methodtest_subscription_is_not_active
(self, mock_get_subscription)
paypal/tests.py:248
Methodtest_subscription_str
(self)
subscription/tests.py:27
Methodtest_successful_link
(self)
paypal/tests.py:429
← previousnext →501–600 of 616, ranked by callers