def setUp(self): self.runner = CliRunner() self.mock_swf = mock_swf() self.mock_swf.start() self.test_workflow = TestCaseWorkflow() setup_mock_env()
def setUp(self): self.mock_swf = mock_swf() self.mock_swf.start() self.connection = get_connection() self.connection.register_domain(name="TEST", workflowExecutionRetentionPeriodInDays="1")
def setUp(self): self.mock = mock_swf() self.mock.start() self.test_workflow = TestCaseWorkflow() setup_mock_env()
def valid_workflow_registration(workflow): connection = get_connection() with mock_swf(): connection.register_domain(name='TEST', workflowExecutionRetentionPeriodInDays='1') register_workflow(connection, 'TEST', workflow)