thunderbird_accounts.core.tests.test_views

Classes

HomeViewNeedsTosAcceptanceTestCase([methodName])

HomeViewRedirectTestCase([methodName])

Test redirect behavior for authenticated and unauthenticated users.

PublicVueRouteSyncTestCase([methodName])

Test that public routes stay in sync between Vue and Django

class thunderbird_accounts.core.tests.test_views.PublicVueRouteSyncTestCase(methodName='runTest')[source]

Bases: SimpleTestCase

Test that public routes stay in sync between Vue and Django

class thunderbird_accounts.core.tests.test_views.HomeViewRedirectTestCase(methodName='runTest')[source]

Bases: TestCase

Test redirect behavior for authenticated and unauthenticated users.

setUp()[source]

Hook method for setting up the test fixture before exercising it.

test_unauthenticated_user_redirected_to_login_for_home()[source]

Test that unauthenticated users are redirected to login when accessing home.

test_unauthenticated_user_redirected_to_login_for_non_public_routes()[source]

Test that unauthenticated users are redirected to login for non-public routes.

test_unauthenticated_user_can_access_public_vue_routes()[source]

Test that unauthenticated users can access public Vue routes.

test_authenticated_user_can_access_home()[source]

Test that authenticated users can access home without redirect.

test_authenticated_user_can_access_any_path()[source]

Test that authenticated users can access any path without redirect.

class thunderbird_accounts.core.tests.test_views.HomeViewNeedsTosAcceptanceTestCase(methodName='runTest')[source]

Bases: TestCase

setUp()[source]

Hook method for setting up the test fixture before exercising it.

test_needs_tos_acceptance_false_with_duplicate_acceptances()[source]

Duplicate acceptance responses should not cause the check to fail.