The horizon.test.tests.workflows ModuleΒΆ
- class horizon.test.tests.workflows.AdminAction(request, context, *args, **kwargs)[source]
Bases: horizon.workflows.base.Action
- base_fields = {'admin_id': <django.forms.fields.CharField object at 0xbcdfaec>}
- help_text = ''
- help_text_template = None
- media
- name = 'Admin Action'
- permissions = ('horizon.test',)
- progress_message = <django.utils.functional.__proxy__ object at 0xbcdf8ec>
- slug = 'admin_action'
- class horizon.test.tests.workflows.AdminStep(workflow)[source]
Bases: horizon.workflows.base.Step
- action_class
alias of AdminAction
- after
alias of TestStepOne
- before
alias of TestStepTwo
- contributes = ('admin_id',)
- class horizon.test.tests.workflows.TestActionOne(request, context, *args, **kwargs)[source]
Bases: horizon.workflows.base.Action
- base_fields = {'project_id': <django.forms.fields.ChoiceField object at 0xbae6e8c>, 'user_id': <django.forms.fields.ChoiceField object at 0xbae6cec>}
- handle(request, context)[source]
- help_text = ''
- help_text_template = None
- media
- name = 'Test Action One'
- permissions = ()
- populate_project_id_choices(request, context)[source]
- populate_user_id_choices(request, context)[source]
- progress_message = <django.utils.functional.__proxy__ object at 0xbae608c>
- slug = 'test_action_one'
- class horizon.test.tests.workflows.TestActionThree(request, context, *args, **kwargs)[source]
Bases: horizon.workflows.base.Action
- base_fields = {'extra': <django.forms.fields.CharField object at 0xbac7eec>}
- help_text = ''
- help_text_template = None
- media
- name = 'Test Action Three'
- permissions = ()
- progress_message = <django.utils.functional.__proxy__ object at 0xbcdfdac>
- slug = 'test_action_three'
- class horizon.test.tests.workflows.TestActionTwo(request, context, *args, **kwargs)[source]
Bases: horizon.workflows.base.Action
- base_fields = {'instance_id': <django.forms.fields.CharField object at 0xbae64ac>}
- help_text = ''
- help_text_template = None
- media
- name = 'Test Action Two'
- permissions = ()
- progress_message = <django.utils.functional.__proxy__ object at 0xbae688c>
- slug = 'test_action_two'
- class horizon.test.tests.workflows.TestExtraStep(workflow)[source]
Bases: horizon.workflows.base.Step
- action_class
alias of TestActionThree
- after
alias of TestStepOne
- before
alias of TestStepTwo
- connections = {'project_id': (<function extra_callback_func at 0xbcd2844>,)}
- contributes = ('extra_data',)
- depends_on = ('project_id',)
- class horizon.test.tests.workflows.TestFullscreenWorkflow(request=None, context_seed=None, entry_point=None, *args, **kwargs)[source]
Bases: horizon.workflows.base.Workflow
- default_steps = (<class 'horizon.test.tests.workflows.TestStepOne'>, <class 'horizon.test.tests.workflows.TestStepTwo'>)
- fullscreen = True
- slug = 'test_fullscreen_workflow'
- class horizon.test.tests.workflows.TestFullscreenWorkflowView[source]
Bases: horizon.workflows.views.WorkflowView
- template_name = 'workflow.html'
- workflow_class
alias of TestFullscreenWorkflow
- class horizon.test.tests.workflows.TestStepOne(workflow)[source]
Bases: horizon.workflows.base.Step
- action_class
alias of TestActionOne
- contributes = ('project_id', 'user_id')
- class horizon.test.tests.workflows.TestStepTwo(workflow)[source]
Bases: horizon.workflows.base.Step
- action_class
alias of TestActionTwo
- connections = {'project_id': (<function local_callback_func at 0xbcd2e9c>, 'horizon.test.tests.workflows.other_callback_func')}
- contributes = ('instance_id',)
- depends_on = ('project_id',)
- class horizon.test.tests.workflows.TestWorkflow(request=None, context_seed=None, entry_point=None, *args, **kwargs)[source]
Bases: horizon.workflows.base.Workflow
- default_steps = (<class 'horizon.test.tests.workflows.TestStepOne'>, <class 'horizon.test.tests.workflows.TestStepTwo'>)
- slug = 'test_workflow'
- class horizon.test.tests.workflows.TestWorkflowView[source]
Bases: horizon.workflows.views.WorkflowView
- template_name = 'workflow.html'
- workflow_class
alias of TestWorkflow
- class horizon.test.tests.workflows.WorkflowsTests(methodName='runTest')[source]
Bases: horizon.test.helpers.TestCase
- setUp()[source]
- tearDown()[source]
- test_connection_handlers_called()[source]
- test_entry_point()[source]
- test_fullscreenworkflow_view()[source]
- test_has_permissions()[source]
- test_notfullscreenworkflow_view()[source]
- test_step_construction()[source]
- test_step_invalid_callback()[source]
- test_workflow_construction()[source]
- test_workflow_finalization()[source]
- test_workflow_registration()[source]
- test_workflow_render()[source]
- test_workflow_validation()[source]
- test_workflow_view()[source]
- horizon.test.tests.workflows.extra_callback_func(request, context)[source]
- horizon.test.tests.workflows.local_callback_func(request, context)[source]
- horizon.test.tests.workflows.other_callback_func(request, context)[source]