CMS
This package contains tests of the integreat_cms.cms
app
- Utils
- Views
- Status Code
- 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
- Test Public View Status Code
- 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
Test Login
- tests.cms.test_login.test_login_failure(load_test_data: None, client: Client, settings: SettingsWrapper, 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
)settings (SettingsWrapper) – The Django settings (see
settings
)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: SettingsWrapper, 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
)settings (SettingsWrapper) – The Django settings (see
settings
)username (str) – The username/email to use for login
- Return type:
None
Test Media Library
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