Add SelectFileAction, Remove GrepAction, UppercaseIO

This commit is contained in:
2025-05-10 01:08:34 -04:00
parent 76e542cfce
commit 9351ae658c
11 changed files with 242 additions and 71 deletions

View File

@ -28,7 +28,7 @@ async def test_process_action_executes_correctly():
with warnings.catch_warnings():
warnings.simplefilter("ignore", DeprecationWarning)
action = ProcessAction(name="proc", func=slow_add, args=(2, 3))
action = ProcessAction(name="proc", action=slow_add, args=(2, 3))
result = await action()
assert result == 5
@ -41,6 +41,6 @@ async def test_process_action_rejects_unpickleable():
with warnings.catch_warnings():
warnings.simplefilter("ignore", DeprecationWarning)
action = ProcessAction(name="proc_fail", func=unpickleable, args=(2,))
action = ProcessAction(name="proc_fail", action=unpickleable, args=(2,))
with pytest.raises(pickle.PicklingError, match="Can't pickle"):
await action()