CMS

This package contains tests of the integreat_cms.cms app

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:
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