1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00

Enable some basic.py tests on python3 (#17167)

This commit is contained in:
Toshio Kuratomi 2016-08-20 10:13:54 -07:00 committed by GitHub
parent 171a094805
commit d29a7c55fe
3 changed files with 0 additions and 5 deletions

View file

@ -85,7 +85,6 @@ class TestHeuristicLogSanitize(unittest.TestCase):
self.assertTrue(ssh_output.endswith("}"))
self.assertIn(":********@foo.com/data'", ssh_output)
@unittest.skipIf(sys.version_info[0] >= 3, "Python 3 is not supported on targets (yet)")
def test_hides_parameter_secrets(self):
output = heuristic_log_sanitize('token="secret", user="person", token_entry="test=secret"', frozenset(['secret']))
self.assertNotIn('secret', output)

View file

@ -50,7 +50,6 @@ class TestReturnValues(unittest.TestCase):
('Toshio くらとみ', frozenset(['Toshio くらとみ'])),
)
@unittest.skipIf(sys.version_info[0] >= 3, "Python 3 is not supported on targets (yet)")
def test_return_values(self):
for data, expected in self.dataset:
self.assertEquals(frozenset(return_values(data)), expected)
@ -103,12 +102,10 @@ class TestRemoveValues(unittest.TestCase):
(u'Toshio くらとみ', frozenset(['くらとみ']), u'Toshio ********'),
)
@unittest.skipIf(sys.version_info[0] >= 3, "Python 3 is not supported on targets (yet)")
def test_no_removal(self):
for value, no_log_strings in self.dataset_no_remove:
self.assertEquals(remove_values(value, no_log_strings), value)
@unittest.skipIf(sys.version_info[0] >= 3, "Python 3 is not supported on targets (yet)")
def test_strings_to_remove(self):
for value, no_log_strings, expected in self.dataset_remove:
self.assertEquals(remove_values(value, no_log_strings), expected)

View file

@ -16,7 +16,6 @@ except:
pass
@unittest.skipIf(sys.version_info[0] >= 3, "Python 3 is not supported on targets (yet)")
class AptExpandPkgspecTestCase(unittest.TestCase):
def setUp(self):