|
14 | 14 | WorkflowExecutionQuerySet |
15 | 15 | from swf.utils import datetime_timestamp, past_day |
16 | 16 |
|
17 | | -from ..mocks.workflow import mock_describe_workflow_type,\ |
| 17 | +from tests.test_swf.mocks.workflow import mock_describe_workflow_type,\ |
18 | 18 | mock_list_workflow_types,\ |
19 | 19 | mock_list_open_workflow_executions,\ |
20 | 20 | mock_list_closed_workflow_executions |
@@ -110,7 +110,7 @@ def test_get_or_create_non_existent_workflow_type(self): |
110 | 110 | with patch.object(Layer1, 'describe_workflow_type') as mock: |
111 | 111 | mock.side_effect = DoesNotExistError("Mocked exception") |
112 | 112 |
|
113 | | - with patch.object(Layer1, 'register_workflow_type', mock_describe_workflow_type): |
| 113 | + with patch.object(WorkflowType, 'custom_register_workflow_type', mock_describe_workflow_type): |
114 | 114 | workflow_type = self.wtq.get_or_create("TestDomain", "testversion") |
115 | 115 |
|
116 | 116 | self.assertIsInstance(workflow_type, WorkflowType) |
@@ -145,9 +145,8 @@ def test_filter_with_registered_status(self): |
145 | 145 | self.assertEqual(wt.status, REGISTERED) |
146 | 146 |
|
147 | 147 | def test_create_workflow_type(self): |
148 | | - with patch.object(Layer1, 'register_workflow_type'): |
| 148 | + with patch.object(WorkflowType, 'custom_register_workflow_type'): |
149 | 149 | new_wt = self.wtq.create( |
150 | | - self.domain, |
151 | 150 | "TestWorkflowType", |
152 | 151 | "0.test", |
153 | 152 | ) |
|
0 commit comments