mirror of
https://github.com/ansible-collections/community.docker.git
synced 2026-07-29 03:46:55 +00:00
Fix/improve tests (#1052)
* Improve unit test condition. * Improve/fix tests.
This commit is contained in:
@@ -57,4 +57,4 @@ class TestDockerConnectionClass(unittest.TestCase):
|
||||
self.dc._version = None
|
||||
self.dc.remote_user = 'foo'
|
||||
(self.assertRaisesRegexp if PY2 else self.assertRaisesRegex)(
|
||||
AnsibleError, '^Docker version check (.*?) failed: ', self.dc._get_actual_user)
|
||||
AnsibleError, '^Docker version check (.*?) failed:', self.dc._get_actual_user)
|
||||
|
||||
Reference in New Issue
Block a user