Remove shebangs from unit tests.

pull/22039/head
Matt Clay 7 years ago
parent a404745a31
commit a5e3d13adc

@ -1,5 +1,3 @@
#!/usr/bin/env python
import json
import os
import pickle
@ -121,9 +119,3 @@ class TestVMWareInventory(unittest.TestCase):
expected = json.dumps(expected, indent=2)
#import epdb; epdb.st()
assert showdata == expected
if __name__ == '__main__':
unittest.main()

@ -1,5 +1,3 @@
#!/usr/bin/env python
def mock_unfrackpath_noop(path):
''' Do not expand the path '''
return path

@ -92,6 +92,3 @@ class RetryTestCase(unittest.TestCase):
self.assertEqual(e.response['Error']['Code'], 'AuthFailure')
self.assertEqual(self.counter, 1)
if __name__ == '__main__':
unittest.main()

@ -1,4 +1,3 @@
#!/usr/bin/env python
# -*- coding: utf-8 -*-
# (c) 2016, Tom Melendez <tom@supertom.com>
#
@ -180,6 +179,3 @@ class GCPAuthTestCase(unittest.TestCase):
expected = tuple(['my-sa-email', '/path/to/creds.json', 'my-project'])
actual = _get_gcp_environment_credentials('my-sa-email', '/path/to/creds.json', None)
self.assertEqual(expected, actual)
if __name__ == '__main__':
unittest.main()

@ -1,4 +1,3 @@
#!/usr/bin/env python
# -*- coding: utf-8 -*-
# (c) 2016, Tom Melendez <tom@supertom.com>
#
@ -35,7 +34,3 @@ class GCPUtilsTestCase(unittest.TestCase):
self.assertTrue(check_min_pkg_version('foobar', '0.4.0'))
self.assertTrue(check_min_pkg_version('foobar', '0.5.0'))
self.assertFalse(check_min_pkg_version('foobar', '0.6.0'))
if __name__ == '__main__':
unittest.main()

@ -40,7 +40,3 @@ class TestUrlparse(unittest.TestCase):
s3_url="http://bla.blubb"
actual = s3.get_s3_connection(aws_connect_kwargs, location, rgw, s3_url)
self.assertEqual("bla.blubb", actual.host)
if __name__ == '__main__':
unittest.main()

@ -1,5 +1,3 @@
#!/usr/bin/env python
import unittest
from ansible.modules.cloud.google.gce_tag import _get_changed_items, _intersect_items, _union_items
@ -60,9 +58,3 @@ class TestGCETag(unittest.TestCase):
want = ['three']
got = _get_changed_items(existing_tags, tags_to_remove)
self.assertEqual(want, got)
if __name__ == '__main__':
unittest.main()

@ -1,5 +1,3 @@
#!/usr/bin/env python
#
# (c) 2016 Red Hat Inc.
#
# This file is part of Ansible
@ -134,6 +132,3 @@ class TestEosConfigModule(TestEosModule):
set_module_args(args)
result = self.execute_module()
self.assertIn('__backup__', result)

@ -1,5 +1,3 @@
#!/usr/bin/env python
#
# (c) 2016 Red Hat Inc.
#
# This file is part of Ansible

@ -1,5 +1,3 @@
#!/usr/bin/env python
#
# (c) 2016 Red Hat Inc.
#
# This file is part of Ansible

@ -1,5 +1,3 @@
#!/usr/bin/env python
#
# (c) 2016 Red Hat Inc.
#
# This file is part of Ansible

@ -1,5 +1,3 @@
#!/usr/bin/env python
#
# (c) 2016 Red Hat Inc.
#
# This file is part of Ansible

@ -1,5 +1,3 @@
#!/usr/bin/env python
'''
(Epdb) pprint(DeepDiff(self.final_task_vars, out_task_vars), indent=2)
{ 'dic_item_added': set([u"root['ansible_python_interpreter']"]),
@ -243,7 +241,3 @@ class TestSynchronizeAction(unittest.TestCase):
# delegate to other remote host with su enabled
x = SynchronizeTester()
x.runtest(fixturepath=os.path.join(self.fixturedir,'delegate_remote_su'))
if __name__ == "__main__":
SynchronizeTester().runtest()

@ -1,4 +1,3 @@
#!/usr/bin/env python
# -*- coding: utf-8 -*-
# (c) 2015, Toshio Kuratomi <tkuratomi@ansible.com>
#

Loading…
Cancel
Save