From 07e4b2104e32dfadef758ffbfa83d0a95b445c45 Mon Sep 17 00:00:00 2001 From: Hideki Saito Date: Wed, 20 Apr 2022 13:19:46 +0900 Subject: [PATCH] [DNM] Confirming unit test for synchronize plugin Signed-off-by: Hideki Saito --- changelogs/fragments/351_dnm_unit_test.yml | 3 +++ tests/unit/plugins/action/test_synchronize.py | 5 +++++ 2 files changed, 8 insertions(+) create mode 100644 changelogs/fragments/351_dnm_unit_test.yml diff --git a/changelogs/fragments/351_dnm_unit_test.yml b/changelogs/fragments/351_dnm_unit_test.yml new file mode 100644 index 0000000..54951d0 --- /dev/null +++ b/changelogs/fragments/351_dnm_unit_test.yml @@ -0,0 +1,3 @@ +--- +trivial: +- confirming unit tet for synchronize. diff --git a/tests/unit/plugins/action/test_synchronize.py b/tests/unit/plugins/action/test_synchronize.py index bc1efca..d4124a2 100644 --- a/tests/unit/plugins/action/test_synchronize.py +++ b/tests/unit/plugins/action/test_synchronize.py @@ -43,6 +43,10 @@ with open('task_vars.json', 'wb') as f: ''' +class Dummy(object): + pass + + class BreakPoint(Exception): pass @@ -55,6 +59,7 @@ class TaskMock(object): become = None become_user = None become_method = None + check_mode = False class StdinMock(object):