Commit 1396c4a4 authored by Benjamin Blanc's avatar Benjamin Blanc

gitclone: remove trailing whitespaces and new line at end of file

parent cdea23bf
...@@ -92,7 +92,7 @@ class GitCloneNonInformativeTests(unittest.TestCase): ...@@ -92,7 +92,7 @@ class GitCloneNonInformativeTests(unittest.TestCase):
self.assertTrue(os.path.exists(git_repository_path)) self.assertTrue(os.path.exists(git_repository_path))
self.assertFalse(os.path.exists(bad_file_path), "pyc file not removed") self.assertFalse(os.path.exists(bad_file_path), "pyc file not removed")
def test_ignore_ssl_certificate(self, ignore_ssl_certificate=True): def test_ignore_ssl_certificate(self, ignore_ssl_certificate=True):
from slapos.recipe.gitclone import GIT_CLONE_ERROR_MESSAGE, \ from slapos.recipe.gitclone import GIT_CLONE_ERROR_MESSAGE, \
GIT_CLONE_CACHE_ERROR_MESSAGE GIT_CLONE_CACHE_ERROR_MESSAGE
import slapos.recipe.gitclone import slapos.recipe.gitclone
...@@ -119,7 +119,7 @@ class GitCloneNonInformativeTests(unittest.TestCase): ...@@ -119,7 +119,7 @@ class GitCloneNonInformativeTests(unittest.TestCase):
recipe = slapos.recipe.gitclone.Recipe(bo, 'test', options) recipe = slapos.recipe.gitclone.Recipe(bo, 'test', options)
recipe.install() recipe.install()
# Check git clone parameters # Check git clone parameters
if ignore_ssl_certificate: if ignore_ssl_certificate:
self.assertTrue("--config" in check_call_paramater_list[0][0]) self.assertTrue("--config" in check_call_paramater_list[0][0])
...@@ -133,7 +133,7 @@ class GitCloneNonInformativeTests(unittest.TestCase): ...@@ -133,7 +133,7 @@ class GitCloneNonInformativeTests(unittest.TestCase):
def test_ignore_ssl_certificate_false(self): def test_ignore_ssl_certificate_false(self):
self.test_ignore_ssl_certificate(ignore_ssl_certificate=False) self.test_ignore_ssl_certificate(ignore_ssl_certificate=False)
def test_suite(): def test_suite():
suite = unittest.TestSuite(( suite = unittest.TestSuite((
doctest.DocFileSuite( doctest.DocFileSuite(
......
...@@ -233,4 +233,4 @@ class Recipe(object): ...@@ -233,4 +233,4 @@ class Recipe(object):
if self.revision: if self.revision:
self.gitReset(self.revision) self.gitReset(self.revision)
else: else:
self.gitReset('@{upstream}') self.gitReset('@{upstream}')
\ No newline at end of file
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment