Skip to content

Commit

Permalink
Add coverage over verbose
Browse files Browse the repository at this point in the history
  • Loading branch information
ScottWales committed Dec 11, 2024
1 parent 257e817 commit 557f74d
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions tests/integration/test_reload.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
)
from cylc.flow.cfgspec.glbl_cfg import glbl_cfg
from cylc.flow.platforms import get_platform
from cylc.flow import flags


async def test_reload_waits_for_pending_tasks(
Expand Down Expand Up @@ -226,3 +227,12 @@ async def test_reload_global(
rtconf = schd.broadcast_mgr.get_updated_rtconfig(schd.pool.get_tasks()[0])
platform = get_platform(rtconf)
assert platform['meta']['x'] == '2'

# reload the workflow in verbose mode
flags.verbosity = 2
await commands.run_cmd(commands.reload_workflow(schd, reload_global=True))

# Traceback is shown in the log (match for ERROR, trace is not captured)
assert log_filter(
exact_match = 'ERROR'
)

0 comments on commit 557f74d

Please sign in to comment.