@@ -46,37 +46,37 @@ def set_task_state(schd, task_states):
46
46
)
47
47
48
48
49
- async def test_tui_basics (raikura ):
49
+ async def test_tui_basics (rakiura ):
50
50
"""Test basic Tui interaction with no workflows."""
51
- with raikura (size = '80,40' ) as rk :
51
+ with rakiura (size = '80,40' ) as rk :
52
52
# the app should open
53
- rk .compare_screenshot ('test-raikura ' , 'the app should have loaded' )
53
+ rk .compare_screenshot ('test-rakiura ' , 'the app should have loaded' )
54
54
55
55
# "h" should bring up the onscreen help
56
56
rk .user_input ('h' )
57
57
rk .compare_screenshot (
58
- 'test-raikura -help' ,
58
+ 'test-rakiura -help' ,
59
59
'the help screen should be visible'
60
60
)
61
61
62
62
# "q" should close the popup
63
63
rk .user_input ('q' )
64
64
rk .compare_screenshot (
65
- 'test-raikura ' ,
65
+ 'test-rakiura ' ,
66
66
'the help screen should have closed' ,
67
67
)
68
68
69
69
# "enter" should bring up the context menu
70
70
rk .user_input ('enter' )
71
71
rk .compare_screenshot (
72
- 'test-raikura -enter' ,
72
+ 'test-rakiura -enter' ,
73
73
'the context menu should have opened' ,
74
74
)
75
75
76
76
# "enter" again should close it via the "cancel" button
77
77
rk .user_input ('enter' )
78
78
rk .compare_screenshot (
79
- 'test-raikura ' ,
79
+ 'test-rakiura ' ,
80
80
'the context menu should have closed' ,
81
81
)
82
82
@@ -89,13 +89,13 @@ async def test_tui_basics(raikura):
89
89
rk .user_input ('q' )
90
90
91
91
92
- async def test_subscribe_unsubscribe (one_conf , flow , scheduler , start , raikura ):
92
+ async def test_subscribe_unsubscribe (one_conf , flow , scheduler , start , rakiura ):
93
93
"""Test a simple workflow with one task."""
94
94
id_ = flow (one_conf , name = 'one' )
95
95
schd = scheduler (id_ )
96
96
async with start (schd ):
97
97
await schd .update_data_structure ()
98
- with raikura (size = '80,15' ) as rk :
98
+ with rakiura (size = '80,15' ) as rk :
99
99
rk .compare_screenshot (
100
100
'unsubscribed' ,
101
101
'the workflow should be collapsed'
@@ -120,7 +120,7 @@ async def test_subscribe_unsubscribe(one_conf, flow, scheduler, start, raikura):
120
120
)
121
121
122
122
123
- async def test_workflow_states (one_conf , flow , scheduler , start , raikura ):
123
+ async def test_workflow_states (one_conf , flow , scheduler , start , rakiura ):
124
124
"""Test viewing multiple workflows in different states."""
125
125
# one => stopping
126
126
id_1 = flow (one_conf , name = 'one' )
@@ -137,7 +137,7 @@ async def test_workflow_states(one_conf, flow, scheduler, start, raikura):
137
137
138
138
async with start (schd_2 ):
139
139
await schd_2 .update_data_structure ()
140
- with raikura (size = '80,15' ) as rk :
140
+ with rakiura (size = '80,15' ) as rk :
141
141
rk .compare_screenshot (
142
142
'unfiltered' ,
143
143
'All workflows should be visible (one, two, tree)' ,
@@ -193,7 +193,7 @@ async def test_workflow_states(one_conf, flow, scheduler, start, raikura):
193
193
# TODO: Task state filtering is currently broken
194
194
# see: https://github.com/cylc/cylc-flow/issues/5716
195
195
#
196
- # async def test_task_states(flow, scheduler, start, raikura ):
196
+ # async def test_task_states(flow, scheduler, start, rakiura ):
197
197
# id_ = flow({
198
198
# 'scheduler': {
199
199
# 'allow implicit tasks': 'true',
@@ -224,15 +224,15 @@ async def test_workflow_states(one_conf, flow, scheduler, start, raikura):
224
224
# )
225
225
# await schd.update_data_structure()
226
226
#
227
- # with raikura (schd.tokens.id, size='80,20') as rk:
227
+ # with rakiura (schd.tokens.id, size='80,20') as rk:
228
228
# rk.compare_screenshot('unfiltered')
229
229
#
230
230
# # filter out waiting tasks
231
231
# rk.user_input('T', 'down', 'enter', 'q')
232
232
# rk.compare_screenshot('filter-not-waiting')
233
233
234
234
235
- async def test_navigation (flow , scheduler , start , raikura ):
235
+ async def test_navigation (flow , scheduler , start , rakiura ):
236
236
"""Test navigating with the arrow keys."""
237
237
id_ = flow ({
238
238
'scheduling' : {
@@ -257,7 +257,7 @@ async def test_navigation(flow, scheduler, start, raikura):
257
257
async with start (schd ):
258
258
await schd .update_data_structure ()
259
259
260
- with raikura (size = '80,30' ) as rk :
260
+ with rakiura (size = '80,30' ) as rk :
261
261
# wait for the workflow to appear (collapsed)
262
262
rk .wait_until_loaded ('#spring' )
263
263
@@ -291,7 +291,7 @@ async def test_navigation(flow, scheduler, start, raikura):
291
291
)
292
292
293
293
294
- async def test_auto_expansion (flow , scheduler , start , raikura ):
294
+ async def test_auto_expansion (flow , scheduler , start , rakiura ):
295
295
"""It should automatically expand cycles and top-level families.
296
296
297
297
When a workflow is expanded, Tui should auto expand cycles and top-level
@@ -314,7 +314,7 @@ async def test_auto_expansion(flow, scheduler, start, raikura):
314
314
},
315
315
}, name = 'one' )
316
316
schd = scheduler (id_ )
317
- with raikura (size = '80,20' ) as rk :
317
+ with rakiura (size = '80,20' ) as rk :
318
318
async with start (schd ):
319
319
await schd .update_data_structure ()
320
320
# wait for the workflow to appear (collapsed)
@@ -342,15 +342,15 @@ async def test_auto_expansion(flow, scheduler, start, raikura):
342
342
)
343
343
344
344
345
- async def test_restart_reconnect (one_conf , flow , scheduler , start , raikura ):
345
+ async def test_restart_reconnect (one_conf , flow , scheduler , start , rakiura ):
346
346
"""It should handle workflow shutdown and restart.
347
347
348
348
The Cylc client can raise exceptions e.g. WorkflowStopped. Any text written
349
349
to stdout/err will mess with Tui. The purpose of this test is to ensure Tui
350
350
can handle shutdown / restart without any errors occuring and any spurious
351
351
text appearing on the screen.
352
352
"""
353
- with raikura (size = '80,20' ) as rk :
353
+ with rakiura (size = '80,20' ) as rk :
354
354
schd = scheduler (flow (one_conf , name = 'one' ))
355
355
356
356
# 1- start the workflow
0 commit comments