Skip to content

Commit

Permalink
Add test
Browse files Browse the repository at this point in the history
  • Loading branch information
MetRonnie committed Nov 28, 2024
1 parent facf957 commit 3eb6fb0
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions tests/integration/test_remove.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
):
Expand Down

0 comments on commit 3eb6fb0

Please sign in to comment.