Commit 4a257eda authored by Benjamin Blanc's avatar Benjamin Blanc Committed by Cédric de Saint Martin

gitclone: test: fix value option in test_using_download_cache_if_git_fails

parent 92d180bc
......@@ -48,8 +48,7 @@ class GitCloneNonInformativeTests(unittest.TestCase):
}
}
default_options = {
'repository': GIT_REPOSITORY,
'forbid-download-cache': 'true',
'repository': GIT_REPOSITORY
}
default_options.update(**options)
return Recipe(bo, 'test', default_options)
......@@ -57,7 +56,7 @@ class GitCloneNonInformativeTests(unittest.TestCase):
def test_using_download_cache_if_git_fails(self):
from slapos.recipe.gitclone import GIT_CLONE_ERROR_MESSAGE, \
GIT_CLONE_CACHE_ERROR_MESSAGE
recipe = self.makeGitCloneRecipe({"forbid-download-cache": "false",
recipe = self.makeGitCloneRecipe({"use-cache": "true",
"repository": BAD_GIT_REPOSITORY})
os.chdir(self.dir)
try:
......@@ -70,8 +69,7 @@ class GitCloneNonInformativeTests(unittest.TestCase):
def test_not_using_download_cache_if_forbidden(self):
from slapos.recipe.gitclone import GIT_CLONE_ERROR_MESSAGE, \
GIT_CLONE_ERROR_MESSAGE
recipe = self.makeGitCloneRecipe({"forbid-download-cache": "true",
"repository": BAD_GIT_REPOSITORY})
recipe = self.makeGitCloneRecipe({"repository": BAD_GIT_REPOSITORY})
os.chdir(self.dir)
try:
recipe.install()
......
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