Commit eff1d550 authored by Xavier Thompson's avatar Xavier Thompson

test/recipe: Fix mock buildout after buildout3

parent ae238074
...@@ -13,13 +13,15 @@ def makeRecipe(recipe_class, options, name='test', buildout=None): ...@@ -13,13 +13,15 @@ def makeRecipe(recipe_class, options, name='test', buildout=None):
and SLAPOS_TEST_DEVELOP_EGGS_DIRECTORY environment variables, so that the and SLAPOS_TEST_DEVELOP_EGGS_DIRECTORY environment variables, so that the
test recipe does not need to install eggs again when using working set. test recipe does not need to install eggs again when using working set.
""" """
_buildout = { _buildout = six.moves.UserDict({
'buildout': { 'buildout': {
'bin-directory': '', 'bin-directory': '',
'find-links': '', 'find-links': '',
'allow-hosts': '', 'allow-hosts': '',
'allow-unknown-extras': False,
'develop-eggs-directory': '', 'develop-eggs-directory': '',
'eggs-directory': '', 'eggs-directory': '',
'directory': '',
'python': 'testpython', 'python': 'testpython',
}, },
'testpython': { 'testpython': {
...@@ -31,7 +33,7 @@ def makeRecipe(recipe_class, options, name='test', buildout=None): ...@@ -31,7 +33,7 @@ def makeRecipe(recipe_class, options, name='test', buildout=None):
'server-url': '', 'server-url': '',
'software-release-url': '', 'software-release-url': '',
} }
} })
_buildout['buildout']['eggs-directory'] = os.environ['SLAPOS_TEST_EGGS_DIRECTORY'] _buildout['buildout']['eggs-directory'] = os.environ['SLAPOS_TEST_EGGS_DIRECTORY']
_buildout['buildout']['develop-eggs-directory'] = os.environ['SLAPOS_TEST_DEVELOP_EGGS_DIRECTORY'] _buildout['buildout']['develop-eggs-directory'] = os.environ['SLAPOS_TEST_DEVELOP_EGGS_DIRECTORY']
......
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