From a67855aaa3749ed514da0d4ee8e6ccd1d024375d Mon Sep 17 00:00:00 2001 From: Tim Pillinger Date: Wed, 23 Oct 2024 11:50:42 +0100 Subject: [PATCH] use Enum correctly in a test --- tests/integration/test_task_events_mgr.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/integration/test_task_events_mgr.py b/tests/integration/test_task_events_mgr.py index 868d42c75c..9d6585896f 100644 --- a/tests/integration/test_task_events_mgr.py +++ b/tests/integration/test_task_events_mgr.py @@ -17,6 +17,7 @@ import logging from typing import Any as Fixture +from cylc.flow.run_modes import RunMode from cylc.flow.task_events_mgr import TaskJobLogsRetrieveContext from cylc.flow.scheduler import Scheduler from cylc.flow.data_store_mgr import ( @@ -154,7 +155,7 @@ async def test__always_insert_task_job( schd.pool.get_tasks(), schd.server.curve_auth, schd.server.client_pub_key_dir, - run_mode='live' + run_mode=RunMode('live') ) # Both tasks are in a waiting state: