Ejemplo n.º 1
0
    def setUp(self):
        self.runner = CliRunner()
        self.mock_swf = mock_swf()
        self.mock_swf.start()

        self.test_workflow = TestCaseWorkflow()

        setup_mock_env()
Ejemplo n.º 2
0
    def setUp(self):
        self.mock_swf = mock_swf()
        self.mock_swf.start()

        self.connection = get_connection()
        self.connection.register_domain(name="TEST", workflowExecutionRetentionPeriodInDays="1")
Ejemplo n.º 3
0
    def setUp(self):
        self.mock = mock_swf()
        self.mock.start()
        self.test_workflow = TestCaseWorkflow()

        setup_mock_env()
Ejemplo n.º 4
0
def valid_workflow_registration(workflow):
    connection = get_connection()
    with mock_swf():
        connection.register_domain(name='TEST',
                                   workflowExecutionRetentionPeriodInDays='1')
        register_workflow(connection, 'TEST', workflow)