mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-06-01 05:49:09 -07:00
deal with null/none connections
fixes #23621 pushed 'connection resolution' to play_context override fieldattribute getter
This commit is contained in:
parent
4a5cf0b5c1
commit
c50cf22d52
4 changed files with 41 additions and 25 deletions
|
@ -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, C.DEFAULT_TRANSPORT)
|
||||
self.assertEqual(play_context._attributes['connection'], C.DEFAULT_TRANSPORT)
|
||||
self.assertEqual(play_context.remote_addr, None)
|
||||
self.assertEqual(play_context.remote_user, None)
|
||||
self.assertEqual(play_context.password, '')
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue