summaryrefslogtreecommitdiff
path: root/test/units
diff options
context:
space:
mode:
authorJordan Borean <jborean93@gmail.com>2023-02-15 08:49:30 +1000
committerGitHub <noreply@github.com>2023-02-15 08:49:30 +1000
commit1e6b8249e7755ef76baf27c2ebd5f0d05ef322cc (patch)
tree751ea2facff3f66c9770f036cb04113a8358ac24 /test/units
parentbd329dc54329a126056723311abd7442ed6a0389 (diff)
downloadansible-1e6b8249e7755ef76baf27c2ebd5f0d05ef322cc.tar.gz
Add condition that causes a when to skip a task to output msg (#78918)
* Add condition that causes a when to skip a task * Fix up tests * Use false_condition instead of failed_condition * Remove formatting accidentially added * Fix sanity
Diffstat (limited to 'test/units')
-rw-r--r--test/units/executor/test_task_executor.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/test/units/executor/test_task_executor.py b/test/units/executor/test_task_executor.py
index 8576d21b34..47e339939d 100644
--- a/test/units/executor/test_task_executor.py
+++ b/test/units/executor/test_task_executor.py
@@ -329,6 +329,7 @@ class TestTaskExecutor(unittest.TestCase):
# other reason is that if I specify 0 here, the test fails. ;)
mock_task.async_val = 1
mock_task.poll = 0
+ mock_task.evaluate_conditional_with_result.return_value = (True, None)
mock_play_context = MagicMock()
mock_play_context.post_validate.return_value = None