setup_wizard.tests.test_views.test_setupwizardsetupmodeΒΆ
Tests for the SetupWizardSetupModeView.
ClassesΒΆ
Test cases for SetupWizardSetupModeView. |
Module ContentsΒΆ
- class setup_wizard.tests.test_views.test_setupwizardsetupmode.SetupWizardSetupModeViewTestCase(methodName='runTest')[source]ΒΆ
Bases:
django.test.TestCaseTest cases for SetupWizardSetupModeView.
- test_dispatch_non_docker_redirects_to_login()[source]ΒΆ
Test that dispatch redirects to login when not in Docker container.
- test_dispatch_wrong_wizard_state_redirects(mock_redirect, mock_get_state)[source]ΒΆ
Test that dispatch redirects when wizard state is incorrect.
- test_dispatch_correct_wizard_state_allows_access(mock_get_state)[source]ΒΆ
Test that dispatch allows access when wizard state is correct.
- test_get_request_renders_template(mock_get_state)[source]ΒΆ
Test that a GET request renders the correct template.
- test_inheritance_structure(mock_get_state)[source]ΒΆ
Test that view properly inherits from TemplateView.
- test_context_data_structure(mock_get_state)[source]ΒΆ
Test that the view provides correct context data.
- test_multiple_wizard_states_redirect_correctly(mock_get_state)[source]ΒΆ
Test that various incorrect wizard states all redirect properly.
- test_view_handles_unauthenticated_users(mock_get_state)[source]ΒΆ
Test that view works for unauthenticated users when conditions are met.
- test_get_method_behavior(mock_get_state)[source]ΒΆ
Test that get method properly handles validation and rendering.
- test_view_docstring_accuracy(mock_get_state)[source]ΒΆ
Test that view behavior matches its docstring description.
- test_response_headers_and_status(mock_get_state)[source]ΒΆ
Test that response has correct headers and status code.