Fix/improve tests (#1052) (#1053)

* Improve unit test condition.

* Improve/fix tests.

(cherry picked from commit fdb97428a3)

Co-authored-by: Felix Fontein <felix@fontein.de>
This commit is contained in:
patchback[bot]
2025-03-08 10:17:50 +01:00
committed by GitHub
parent 9979b1e683
commit 8fb1a7e4ff
27 changed files with 130 additions and 115 deletions
+1 -1
View File
@@ -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)