Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix test #6624

Merged
merged 2 commits into from
Feb 21, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions pytest.ini
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ addopts = --verbose
# disable pytest-tornasync because it conflicts with pytest-asyncio's auto mode
-p no:tornado
-m "not linkcheck"
verbosity_assertions = 2
testpaths =
cylc/flow/
tests/unit/
Expand Down
10 changes: 6 additions & 4 deletions tests/unit/test_workflow_events.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,9 +49,9 @@ def test_get_events_handler(
mock_glbl_cfg, key, workflow_cfg, glbl_cfg, expected
):
"""Test order of precedence for getting event handler configuration."""
if glbl_cfg:
mock_glbl_cfg(
'cylc.flow.workflow_events.glbl_cfg',
mock_glbl_cfg(
'cylc.flow.workflow_events.glbl_cfg',
(
'''
[scheduler]
[[mail]]
Expand All @@ -60,7 +60,9 @@ def test_get_events_handler(
abort on workflow timeout = True
mail events = abort
'''
)
if glbl_cfg else ''
),
)

config = SimpleNamespace()
config.cfg = {
Expand Down
Loading