From 3eb6fb00c9b7f0dcbb716bfc4c37be112d590a06 Mon Sep 17 00:00:00 2001 From: Ronnie Dutta <61982285+MetRonnie@users.noreply.github.com> Date: Thu, 28 Nov 2024 12:32:13 +0000 Subject: [PATCH] Add test --- tests/integration/test_remove.py | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/tests/integration/test_remove.py b/tests/integration/test_remove.py index 60f1ad476e..5ea0bc6376 100644 --- a/tests/integration/test_remove.py +++ b/tests/integration/test_remove.py @@ -223,6 +223,16 @@ async def test_not_unset_prereq( ] +async def test_nothing_to_do( + example_workflow, scheduler, start, log_filter +): + """Test removing an invalid task.""" + schd: Scheduler = scheduler(example_workflow) + async with start(schd): + await run_cmd(remove_tasks(schd, ['1/doh'], [FLOW_ALL])) + assert log_filter(logging.WARNING, "No matching tasks found: doh") + + async def test_logging( flow, scheduler, start, log_filter, caplog: pytest.LogCaptureFixture ):