mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
Remove shebangs from unit tests.
This commit is contained in:
parent
a404745a31
commit
a5e3d13adc
14 changed files with 0 additions and 54 deletions
|
@ -1,5 +1,3 @@
|
||||||
#!/usr/bin/env python
|
|
||||||
|
|
||||||
import json
|
import json
|
||||||
import os
|
import os
|
||||||
import pickle
|
import pickle
|
||||||
|
@ -121,9 +119,3 @@ class TestVMWareInventory(unittest.TestCase):
|
||||||
expected = json.dumps(expected, indent=2)
|
expected = json.dumps(expected, indent=2)
|
||||||
#import epdb; epdb.st()
|
#import epdb; epdb.st()
|
||||||
assert showdata == expected
|
assert showdata == expected
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
if __name__ == '__main__':
|
|
||||||
unittest.main()
|
|
||||||
|
|
|
@ -1,5 +1,3 @@
|
||||||
#!/usr/bin/env python
|
|
||||||
|
|
||||||
def mock_unfrackpath_noop(path):
|
def mock_unfrackpath_noop(path):
|
||||||
''' Do not expand the path '''
|
''' Do not expand the path '''
|
||||||
return path
|
return path
|
||||||
|
|
|
@ -92,6 +92,3 @@ class RetryTestCase(unittest.TestCase):
|
||||||
self.assertEqual(e.response['Error']['Code'], 'AuthFailure')
|
self.assertEqual(e.response['Error']['Code'], 'AuthFailure')
|
||||||
|
|
||||||
self.assertEqual(self.counter, 1)
|
self.assertEqual(self.counter, 1)
|
||||||
|
|
||||||
if __name__ == '__main__':
|
|
||||||
unittest.main()
|
|
||||||
|
|
|
@ -1,4 +1,3 @@
|
||||||
#!/usr/bin/env python
|
|
||||||
# -*- coding: utf-8 -*-
|
# -*- coding: utf-8 -*-
|
||||||
# (c) 2016, Tom Melendez <tom@supertom.com>
|
# (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'])
|
expected = tuple(['my-sa-email', '/path/to/creds.json', 'my-project'])
|
||||||
actual = _get_gcp_environment_credentials('my-sa-email', '/path/to/creds.json', None)
|
actual = _get_gcp_environment_credentials('my-sa-email', '/path/to/creds.json', None)
|
||||||
self.assertEqual(expected, actual)
|
self.assertEqual(expected, actual)
|
||||||
|
|
||||||
if __name__ == '__main__':
|
|
||||||
unittest.main()
|
|
||||||
|
|
|
@ -1,4 +1,3 @@
|
||||||
#!/usr/bin/env python
|
|
||||||
# -*- coding: utf-8 -*-
|
# -*- coding: utf-8 -*-
|
||||||
# (c) 2016, Tom Melendez <tom@supertom.com>
|
# (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.4.0'))
|
||||||
self.assertTrue(check_min_pkg_version('foobar', '0.5.0'))
|
self.assertTrue(check_min_pkg_version('foobar', '0.5.0'))
|
||||||
self.assertFalse(check_min_pkg_version('foobar', '0.6.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"
|
s3_url="http://bla.blubb"
|
||||||
actual = s3.get_s3_connection(aws_connect_kwargs, location, rgw, s3_url)
|
actual = s3.get_s3_connection(aws_connect_kwargs, location, rgw, s3_url)
|
||||||
self.assertEqual("bla.blubb", actual.host)
|
self.assertEqual("bla.blubb", actual.host)
|
||||||
|
|
||||||
|
|
||||||
if __name__ == '__main__':
|
|
||||||
unittest.main()
|
|
||||||
|
|
|
@ -1,5 +1,3 @@
|
||||||
#!/usr/bin/env python
|
|
||||||
|
|
||||||
import unittest
|
import unittest
|
||||||
|
|
||||||
from ansible.modules.cloud.google.gce_tag import _get_changed_items, _intersect_items, _union_items
|
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']
|
want = ['three']
|
||||||
got = _get_changed_items(existing_tags, tags_to_remove)
|
got = _get_changed_items(existing_tags, tags_to_remove)
|
||||||
self.assertEqual(want, got)
|
self.assertEqual(want, got)
|
||||||
|
|
||||||
if __name__ == '__main__':
|
|
||||||
unittest.main()
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -1,5 +1,3 @@
|
||||||
#!/usr/bin/env python
|
|
||||||
#
|
|
||||||
# (c) 2016 Red Hat Inc.
|
# (c) 2016 Red Hat Inc.
|
||||||
#
|
#
|
||||||
# This file is part of Ansible
|
# This file is part of Ansible
|
||||||
|
@ -134,6 +132,3 @@ class TestEosConfigModule(TestEosModule):
|
||||||
set_module_args(args)
|
set_module_args(args)
|
||||||
result = self.execute_module()
|
result = self.execute_module()
|
||||||
self.assertIn('__backup__', result)
|
self.assertIn('__backup__', result)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -1,5 +1,3 @@
|
||||||
#!/usr/bin/env python
|
|
||||||
#
|
|
||||||
# (c) 2016 Red Hat Inc.
|
# (c) 2016 Red Hat Inc.
|
||||||
#
|
#
|
||||||
# This file is part of Ansible
|
# This file is part of Ansible
|
||||||
|
|
|
@ -1,5 +1,3 @@
|
||||||
#!/usr/bin/env python
|
|
||||||
#
|
|
||||||
# (c) 2016 Red Hat Inc.
|
# (c) 2016 Red Hat Inc.
|
||||||
#
|
#
|
||||||
# This file is part of Ansible
|
# This file is part of Ansible
|
||||||
|
|
|
@ -1,5 +1,3 @@
|
||||||
#!/usr/bin/env python
|
|
||||||
#
|
|
||||||
# (c) 2016 Red Hat Inc.
|
# (c) 2016 Red Hat Inc.
|
||||||
#
|
#
|
||||||
# This file is part of Ansible
|
# This file is part of Ansible
|
||||||
|
|
|
@ -1,5 +1,3 @@
|
||||||
#!/usr/bin/env python
|
|
||||||
#
|
|
||||||
# (c) 2016 Red Hat Inc.
|
# (c) 2016 Red Hat Inc.
|
||||||
#
|
#
|
||||||
# This file is part of Ansible
|
# 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)
|
(Epdb) pprint(DeepDiff(self.final_task_vars, out_task_vars), indent=2)
|
||||||
{ 'dic_item_added': set([u"root['ansible_python_interpreter']"]),
|
{ '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
|
# delegate to other remote host with su enabled
|
||||||
x = SynchronizeTester()
|
x = SynchronizeTester()
|
||||||
x.runtest(fixturepath=os.path.join(self.fixturedir,'delegate_remote_su'))
|
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 -*-
|
# -*- coding: utf-8 -*-
|
||||||
# (c) 2015, Toshio Kuratomi <tkuratomi@ansible.com>
|
# (c) 2015, Toshio Kuratomi <tkuratomi@ansible.com>
|
||||||
#
|
#
|
||||||
|
|
Loading…
Add table
Reference in a new issue