CMS
This package contains tests of the integreat_cms.cms app
- Utils
- Test Cancel Translation
- Test Content Utils
- Test Disable Hix Post Save Signal
- Test External Calendar Utils
- Test Internal Link Checker
prepage_url()test_check_internal_invalid()test_check_internal_skipped()test_check_internal_valid()test_ignore_inherited_by_new_content_object_same_region()test_ignore_not_inherited_across_regions()test_ignore_not_inherited_from_archived_page()test_ignore_not_inherited_from_past_event()test_preserve_ignored_links_across_form_save_cycle()test_preserve_ignored_links_across_internal_url_rewrite()test_preserve_ignored_links_across_update_links_to()
- Test Linkcheck Utils
- Test Repair Tree
- Test Rounded Hix Value
- Test Slug Utils
- Test Translation Utils
- Test Tree Mutex
- Views
- Status Code
- Conftest
- Test View Status Code_1
- Test View Status Code_10
- Test View Status Code_11
- Test View Status Code_12
- Test View Status Code_13
- Test View Status Code_14
- Test View Status Code_15
- Test View Status Code_16
- Test View Status Code_2
- Test View Status Code_3
- Test View Status Code_4
- Test View Status Code_5
- Test View Status Code_6
- Test View Status Code_7
- Test View Status Code_8
- Test View Status Code_9
- Bulk Actions
BulkActionIDsBulkActionIDs.__init__()BulkActionIDs.clear()BulkActionIDs.copy()BulkActionIDs.deletableBulkActionIDs.fromkeys()BulkActionIDs.get()BulkActionIDs.items()BulkActionIDs.keys()BulkActionIDs.pop()BulkActionIDs.popitem()BulkActionIDs.setdefault()BulkActionIDs.undeletableBulkActionIDs.update()BulkActionIDs.values()
assert_bulk_delete()
- Test Public View Status Code
- Test View Heading Hierarchy
HeadingLevelParserHeadingLevelParser.CDATA_CONTENT_ELEMENTSHeadingLevelParser.RCDATA_CONTENT_ELEMENTSHeadingLevelParser.__init__()HeadingLevelParser.check_for_whole_start_tag()HeadingLevelParser.clear_cdata_mode()HeadingLevelParser.close()HeadingLevelParser.feed()HeadingLevelParser.get_starttag_text()HeadingLevelParser.getpos()HeadingLevelParser.goahead()HeadingLevelParser.handle_charref()HeadingLevelParser.handle_comment()HeadingLevelParser.handle_data()HeadingLevelParser.handle_decl()HeadingLevelParser.handle_endtag()HeadingLevelParser.handle_entityref()HeadingLevelParser.handle_pi()HeadingLevelParser.handle_startendtag()HeadingLevelParser.handle_starttag()HeadingLevelParser.levelsHeadingLevelParser.parse_bogus_comment()HeadingLevelParser.parse_comment()HeadingLevelParser.parse_declaration()HeadingLevelParser.parse_endtag()HeadingLevelParser.parse_html_declaration()HeadingLevelParser.parse_marked_section()HeadingLevelParser.parse_pi()HeadingLevelParser.parse_starttag()HeadingLevelParser.reset()HeadingLevelParser.set_cdata_mode()HeadingLevelParser.unknown_decl()HeadingLevelParser.updatepos()
ROOT_GET_URLStest_view_does_not_skip_heading_levels()
- Test View Redirect
- Utils
- View Config
- Status Code
Test Duplicate Regions
- tests.cms.test_duplicate_regions.test_duplicate_regions(load_test_data_transactional: None, admin_client: Client) None[source]
Test whether duplicating regions works as expected
- Parameters:
load_test_data_transactional (None) – The fixture providing the test data (see
load_test_data_transactional())admin_client (Client) – The fixture providing the logged in admin (see
admin_client)
- Return type:
None
- tests.cms.test_duplicate_regions.test_duplicate_regions_no_translations(load_test_data_transactional: None, admin_client: Client) None[source]
Test whether duplicating regions works as expected when disabling the duplication of translations
- Parameters:
load_test_data_transactional (None) – The fixture providing the test data (see
load_test_data_transactional())admin_client (Client) – The fixture providing the logged in admin (see
admin_client)
- Return type:
None
Test Language
- tests.cms.test_language.test_create_new_language_node(load_test_data: None, login_role_user: tuple[Client, str]) None[source]
- tests.cms.test_language.test_delete_language_node(load_test_data: None, login_role_user: tuple[Client, str]) None[source]
Test Login
- tests.cms.test_login.test_login_failure(load_test_data: None, client: Client, settings: Settings, username: str) None[source]
Test whether login with incorrect credentials does not work
- Parameters:
load_test_data (None) – The fixture providing the test data (see
load_test_data())client (Client) – The fixture providing the an unauthenticated user client (see
client)username (str) – The username/email to use for login
- Return type:
None
- tests.cms.test_login.test_login_success(load_test_data: None, client: Client, settings: Settings, username: str) None[source]
Test whether login via username & email works as expected
- Parameters:
load_test_data (None) – The fixture providing the test data (see
load_test_data())client (Client) – The fixture providing the an unauthenticated user client (see
client)username (str) – The username/email to use for login
- Return type:
None
Test Media Library
- tests.cms.test_media_library.test_create_directory(load_test_data: None, login_role_user: tuple[Client, str]) None[source]
- tests.cms.test_media_library.test_delete_directory(load_test_data: None, login_role_user: tuple[Client, str]) None[source]
- tests.cms.test_media_library.test_delete_file(load_test_data: None, login_role_user: tuple[Client, str]) None[source]
- tests.cms.test_media_library.test_directory_path(load_test_data: None, login_role_user: tuple[Client, str]) None[source]
- tests.cms.test_media_library.test_edit_directory(load_test_data: None, login_role_user: tuple[Client, str]) None[source]
- tests.cms.test_media_library.test_edit_file(load_test_data: None, login_role_user: tuple[Client, str]) None[source]
- tests.cms.test_media_library.test_get_directory_content(load_test_data: None, login_role_user: tuple[Client, str]) None[source]
- tests.cms.test_media_library.test_get_file_usages(load_test_data: None, login_role_user: tuple[Client, str]) None[source]
- tests.cms.test_media_library.test_get_search_result(load_test_data: None, login_role_user: tuple[Client, str]) None[source]
- tests.cms.test_media_library.test_move_file(load_test_data: None, login_role_user: tuple[Client, str]) None[source]
Test Page Filters
- tests.cms.test_page_filters.test_page_filters(load_test_data: None, admin_client: Client) None[source]
Test whether duplicating regions works as expected
- Parameters:
load_test_data (None) – The fixture providing the test data (see
load_test_data())admin_client (Client) – The fixture providing the logged in admin
- Return type:
None