summaryrefslogtreecommitdiff
path: root/test/units/plugins
diff options
context:
space:
mode:
authorjpic <jamespic@gmail.com>2016-04-05 11:58:35 +0200
committerjpic <jamespic@gmail.com>2016-04-05 14:41:49 +0200
commitda175d0a5722f3b54a9086b38325994f20307a3f (patch)
tree50b1259fe5d146c51b7991ab61341c357c1f41cc /test/units/plugins
parentcca084c89d4e0390fdad8a44d1d21c7201bb1f37 (diff)
downloadansible-da175d0a5722f3b54a9086b38325994f20307a3f.tar.gz
Bugfix: proper plugin configuration was reset
Before this patch, if config was ['/some/path'] then it would enter the else block and config would be set to []. The regression this patch fixes was introduced by 700db154.
Diffstat (limited to 'test/units/plugins')
-rw-r--r--test/units/plugins/test_plugins.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/test/units/plugins/test_plugins.py b/test/units/plugins/test_plugins.py
index 76a2600f53..3543cbc230 100644
--- a/test/units/plugins/test_plugins.py
+++ b/test/units/plugins/test_plugins.py
@@ -75,3 +75,7 @@ class TestErrors(unittest.TestCase):
#with patch('glob.glob', mock_glob):
# pass
+ def test_plugin__config(self):
+ config = ['/one', '/two']
+ pl = PluginLoader('test', '', config, 'test_plugin')
+ self.assertEqual(pl.config, config)