setup_wizard.tests.test_views.test_setupwizardsetupmodeΒΆ

Tests for the SetupWizardSetupModeView.

ClassesΒΆ

SetupWizardSetupModeViewTestCase

Test cases for SetupWizardSetupModeView.

Module ContentsΒΆ

class setup_wizard.tests.test_views.test_setupwizardsetupmode.SetupWizardSetupModeViewTestCase(methodName='runTest')[source]ΒΆ

Bases: django.test.TestCase

Test cases for SetupWizardSetupModeView.

setUp()[source]ΒΆ

Set up test data.

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_only_get_method_allowed(mock_get_state)[source]ΒΆ

Test that only GET method is allowed.

test_view_attributes()[source]ΒΆ

Test that view has correct attributes.

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.

test_class_level_attributes_immutable()[source]ΒΆ

Test that class-level attributes are properly defined and immutable.

test_wizard_state_validation_order(mock_get_state)[source]ΒΆ

Test that Docker container check happens before wizard state validation.