From 17738e6b730a909aad4aa1bf14d58ba8036fbbde Mon Sep 17 00:00:00 2001 From: Adrian Likins Date: Thu, 17 Nov 2016 12:25:39 -0500 Subject: [PATCH] Fix test_play_context fail with local config. (#17596) If the current ansible enviroment has a config setup that doesn't use 'smart' as the configured transport test_play_context would fail when it assumes the transport will be 'smart'. --- test/units/playbook/test_play_context.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/units/playbook/test_play_context.py b/test/units/playbook/test_play_context.py index 1ffd79fbe6..a6b2094ed0 100644 --- a/test/units/playbook/test_play_context.py +++ b/test/units/playbook/test_play_context.py @@ -53,7 +53,7 @@ class TestPlayContext(unittest.TestCase): def test_play_context(self): (options, args) = self._parser.parse_args(['-vv', '--check']) play_context = PlayContext(options=options) - self.assertEqual(play_context.connection, 'smart') + self.assertEqual(play_context.connection, C.DEFAULT_TRANSPORT) self.assertEqual(play_context.remote_addr, None) self.assertEqual(play_context.remote_user, None) self.assertEqual(play_context.password, '')