Skip to content

Commit 0076ffc

Browse files
Merge pull request #6624 from MetRonnie/fix-test
Fix test
2 parents 2dcf07a + 26e48a3 commit 0076ffc

File tree

2 files changed

+7
-4
lines changed

2 files changed

+7
-4
lines changed

pytest.ini

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ addopts = --verbose
2727
# disable pytest-tornasync because it conflicts with pytest-asyncio's auto mode
2828
-p no:tornado
2929
-m "not linkcheck"
30+
verbosity_assertions = 2
3031
testpaths =
3132
cylc/flow/
3233
tests/unit/

tests/unit/test_workflow_events.py

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -49,9 +49,9 @@ def test_get_events_handler(
4949
mock_glbl_cfg, key, workflow_cfg, glbl_cfg, expected
5050
):
5151
"""Test order of precedence for getting event handler configuration."""
52-
if glbl_cfg:
53-
mock_glbl_cfg(
54-
'cylc.flow.workflow_events.glbl_cfg',
52+
mock_glbl_cfg(
53+
'cylc.flow.workflow_events.glbl_cfg',
54+
(
5555
'''
5656
[scheduler]
5757
[[mail]]
@@ -60,7 +60,9 @@ def test_get_events_handler(
6060
abort on workflow timeout = True
6161
mail events = abort
6262
'''
63-
)
63+
if glbl_cfg else ''
64+
),
65+
)
6466

6567
config = SimpleNamespace()
6668
config.cfg = {

0 commit comments

Comments
 (0)