|
25 | 25 | from cylc.flow import ID_DELIM |
26 | 26 | from cylc.flow.exceptions import ClientError, ClientTimeout |
27 | 27 | from cylc.flow.network import API |
28 | | -from cylc.flow.suite_files import ( |
29 | | - SuiteFiles, |
| 28 | +from cylc.flow.workflow_files import ( |
| 29 | + WorkflowFiles, |
30 | 30 | ContactFileFields as CFF, |
31 | 31 | ) |
32 | 32 |
|
@@ -139,7 +139,7 @@ async def test_est_workflow( |
139 | 139 | if x == 'remote' else False |
140 | 140 |
|
141 | 141 | mocked_client = mocker.patch( |
142 | | - 'cylc.uiserver.workflows_mgr.SuiteRuntimeClient') |
| 142 | + 'cylc.uiserver.workflows_mgr.WorkflowRuntimeClient') |
143 | 143 | mocked_client.return_value = async_client |
144 | 144 |
|
145 | 145 | mocked_get_host_ip_by_name = mocker.patch( |
@@ -179,9 +179,9 @@ def mk_flow(path, reg, active=True): |
179 | 179 |
|
180 | 180 | """ |
181 | 181 | run_dir = path / reg |
182 | | - srv_dir = run_dir / SuiteFiles.Service.DIRNAME |
183 | | - contact = srv_dir / SuiteFiles.Service.CONTACT |
184 | | - fconfig = run_dir / SuiteFiles.FLOW_FILE |
| 182 | + srv_dir = run_dir / WorkflowFiles.Service.DIRNAME |
| 183 | + contact = srv_dir / WorkflowFiles.Service.CONTACT |
| 184 | + fconfig = run_dir / WorkflowFiles.FLOW_FILE |
185 | 185 | run_dir.mkdir() |
186 | 186 | fconfig.touch() # cylc uses this to identify a dir as a workflow |
187 | 187 | srv_dir.mkdir() |
@@ -352,8 +352,8 @@ async def test_register( |
352 | 352 | ) |
353 | 353 | # The following functions also depend on a running workflow |
354 | 354 | # with pyzmq socket, so we also mock them. |
355 | | - mocker.patch('cylc.flow.network.client.SuiteRuntimeClient.start') |
356 | | - mocker.patch('cylc.flow.network.client.SuiteRuntimeClient.get_header') |
| 355 | + mocker.patch('cylc.flow.network.client.WorkflowRuntimeClient.start') |
| 356 | + mocker.patch('cylc.flow.network.client.WorkflowRuntimeClient.get_header') |
357 | 357 | mocker.patch('cylc.uiserver.data_store_mgr.DataStoreMgr.' |
358 | 358 | 'start_subscription') |
359 | 359 |
|
@@ -427,8 +427,8 @@ async def test_connect( |
427 | 427 | ) |
428 | 428 | # The following functions also depend on a running workflow |
429 | 429 | # with pyzmq socket, so we also mock them. |
430 | | - mocker.patch('cylc.flow.network.client.SuiteRuntimeClient.start') |
431 | | - mocker.patch('cylc.flow.network.client.SuiteRuntimeClient.get_header') |
| 430 | + mocker.patch('cylc.flow.network.client.WorkflowRuntimeClient.start') |
| 431 | + mocker.patch('cylc.flow.network.client.WorkflowRuntimeClient.get_header') |
432 | 432 | mocker.patch('cylc.uiserver.data_store_mgr.DataStoreMgr.' |
433 | 433 | 'start_subscription') |
434 | 434 |
|
@@ -489,8 +489,8 @@ async def test_disconnect_and_stop( |
489 | 489 | ) |
490 | 490 | # The following functions also depend on a running workflow |
491 | 491 | # with pyzmq socket, so we also mock them. |
492 | | - mocker.patch('cylc.flow.network.client.SuiteRuntimeClient.start') |
493 | | - mocker.patch('cylc.flow.network.client.SuiteRuntimeClient.get_header') |
| 492 | + mocker.patch('cylc.flow.network.client.WorkflowRuntimeClient.start') |
| 493 | + mocker.patch('cylc.flow.network.client.WorkflowRuntimeClient.get_header') |
494 | 494 | mocker.patch('cylc.uiserver.data_store_mgr.DataStoreMgr.' |
495 | 495 | 'start_subscription') |
496 | 496 | mocker.patch('cylc.uiserver.data_store_mgr.DataStoreMgr.update_contact') |
|
0 commit comments