The horizon.test.tests.workflows ModuleΒΆ

class horizon.test.tests.workflows.AdminAction(request, context, *args, **kwargs)[source]

Bases: horizon.workflows.base.Action

AdminAction.base_fields = {'admin_id': <django.forms.fields.CharField object at 0x5b98210>}
AdminAction.help_text = ''
AdminAction.help_text_template = None
AdminAction.media
AdminAction.name = 'Admin Action'
AdminAction.permissions = ('horizon.test',)
AdminAction.progress_message = <django.utils.functional.__proxy__ object at 0x5b98810>
AdminAction.slug = 'admin_action'
class horizon.test.tests.workflows.AdminStep(workflow)[source]

Bases: horizon.workflows.base.Step

AdminStep.action_class

alias of AdminAction

AdminStep.after

alias of TestStepOne

AdminStep.before

alias of TestStepTwo

AdminStep.contributes = ('admin_id',)
class horizon.test.tests.workflows.TestActionOne(request, context, *args, **kwargs)[source]

Bases: horizon.workflows.base.Action

TestActionOne.base_fields = {'project_id': <django.forms.fields.ChoiceField object at 0x5b98d50>, 'user_id': <django.forms.fields.ChoiceField object at 0x53a3210>}
TestActionOne.handle(request, context)[source]
TestActionOne.help_text = ''
TestActionOne.help_text_template = None
TestActionOne.media
TestActionOne.name = 'Test Action One'
TestActionOne.permissions = ()
TestActionOne.populate_project_id_choices(request, context)[source]
TestActionOne.populate_user_id_choices(request, context)[source]
TestActionOne.progress_message = <django.utils.functional.__proxy__ object at 0x5b98910>
TestActionOne.slug = 'test_action_one'
class horizon.test.tests.workflows.TestActionThree(request, context, *args, **kwargs)[source]

Bases: horizon.workflows.base.Action

TestActionThree.base_fields = {'extra': <django.forms.fields.CharField object at 0x5b98b10>}
TestActionThree.help_text = ''
TestActionThree.help_text_template = None
TestActionThree.media
TestActionThree.name = 'Test Action Three'
TestActionThree.permissions = ()
TestActionThree.progress_message = <django.utils.functional.__proxy__ object at 0x5b986d0>
TestActionThree.slug = 'test_action_three'
class horizon.test.tests.workflows.TestActionTwo(request, context, *args, **kwargs)[source]

Bases: horizon.workflows.base.Action

TestActionTwo.base_fields = {'instance_id': <django.forms.fields.CharField object at 0x5b98710>}
TestActionTwo.help_text = ''
TestActionTwo.help_text_template = None
TestActionTwo.media
TestActionTwo.name = 'Test Action Two'
TestActionTwo.permissions = ()
TestActionTwo.progress_message = <django.utils.functional.__proxy__ object at 0x5b98f90>
TestActionTwo.slug = 'test_action_two'
class horizon.test.tests.workflows.TestExtraStep(workflow)[source]

Bases: horizon.workflows.base.Step

TestExtraStep.action_class

alias of TestActionThree

TestExtraStep.after

alias of TestStepOne

TestExtraStep.before

alias of TestStepTwo

TestExtraStep.connections = {'project_id': (<function extra_callback_func at 0x619d050>,)}
TestExtraStep.contributes = ('extra_data',)
TestExtraStep.depends_on = ('project_id',)
class horizon.test.tests.workflows.TestStepOne(workflow)[source]

Bases: horizon.workflows.base.Step

TestStepOne.action_class

alias of TestActionOne

TestStepOne.contributes = ('project_id', 'user_id')
class horizon.test.tests.workflows.TestStepTwo(workflow)[source]

Bases: horizon.workflows.base.Step

TestStepTwo.action_class

alias of TestActionTwo

TestStepTwo.connections = {'project_id': (<function local_callback_func at 0x60d8500>, 'horizon.test.tests.workflows.other_callback_func')}
TestStepTwo.contributes = ('instance_id',)
TestStepTwo.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

TestWorkflow.default_steps = (<class 'horizon.test.tests.workflows.TestStepOne'>, <class 'horizon.test.tests.workflows.TestStepTwo'>)
TestWorkflow.slug = 'test_workflow'
class horizon.test.tests.workflows.TestWorkflowView[source]

Bases: horizon.workflows.views.WorkflowView

TestWorkflowView.template_name = 'workflow.html'
TestWorkflowView.workflow_class

alias of TestWorkflow

class horizon.test.tests.workflows.WorkflowsTests(methodName='runTest')[source]

Bases: horizon.test.helpers.TestCase

WorkflowsTests.setUp()[source]
WorkflowsTests.tearDown()[source]
WorkflowsTests.test_connection_handlers_called()[source]
WorkflowsTests.test_entry_point()[source]
WorkflowsTests.test_has_permissions()[source]
WorkflowsTests.test_step_construction()[source]
WorkflowsTests.test_step_invalid_callback()[source]
WorkflowsTests.test_workflow_construction()[source]
WorkflowsTests.test_workflow_finalization()[source]
WorkflowsTests.test_workflow_registration()[source]
WorkflowsTests.test_workflow_render()[source]
WorkflowsTests.test_workflow_validation()[source]
WorkflowsTests.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]

Previous topic

The horizon.test.tests.selenium Module

Next topic

The horizon.conf.default Module

This Page