mirror of
https://github.com/arcan1s/ahriman.git
synced 2025-07-16 15:29:56 +00:00
pass no report to handlers
This commit is contained in:
@ -9,11 +9,12 @@ def test_process(spawner: Spawn) -> None:
|
||||
must process external process run correctly
|
||||
"""
|
||||
args = MagicMock()
|
||||
args.no_report = False
|
||||
callback = MagicMock()
|
||||
|
||||
spawner.process(callback, args, spawner.architecture, spawner.configuration, "id", spawner.queue)
|
||||
|
||||
callback.assert_called_with(args, spawner.architecture, spawner.configuration)
|
||||
callback.assert_called_with(args, spawner.architecture, spawner.configuration, False)
|
||||
(uuid, error) = spawner.queue.get()
|
||||
assert uuid == "id"
|
||||
assert error is None
|
||||
|
Reference in New Issue
Block a user