From 4f441179aacff217f311dfe5d6cb87d9a402f247 Mon Sep 17 00:00:00 2001 From: Colton Myers Date: Thu, 27 Aug 2015 14:11:34 -0600 Subject: [PATCH] Test fixes --- tests/unit/states/file_test.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/tests/unit/states/file_test.py b/tests/unit/states/file_test.py index 672382f7df..be23b2392a 100644 --- a/tests/unit/states/file_test.py +++ b/tests/unit/states/file_test.py @@ -313,7 +313,9 @@ class FileTestCase(TestCase): with patch.dict(filestate.__opts__, {'test': True}): comt = \ 'Directory {0} is set for removal'.format(name) - ret.update({'comment': comt, 'result': None}) + ret.update({'comment': comt, + 'pchanges': {'removed': name}, + 'result': None}) self.assertDictEqual(filestate.absent(name), ret) with patch.dict(filestate.__opts__, {'test': False}): @@ -328,6 +330,8 @@ class FileTestCase(TestCase): ret.update({'comment': comt, 'result': False, 'changes': {}}) self.assertDictEqual(filestate.absent(name), ret) + ret.update({'pchanges': {}}) + with patch.object(os.path, 'isdir', mock_f): with patch.dict(filestate.__opts__, {'test': True}):