Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
slapos.buildout
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Boxiang Sun
slapos.buildout
Commits
26185bec
Commit
26185bec
authored
Oct 12, 2011
by
Antoine Catton
Committed by
Łukasz Nowak
Oct 12, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add test to prove bug in Romain's bugfix.
parent
edc108ea
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
49 additions
and
0 deletions
+49
-0
src/zc/buildout/tests.py
src/zc/buildout/tests.py
+49
-0
No files found.
src/zc/buildout/tests.py
View file @
26185bec
...
...
@@ -3654,6 +3654,55 @@ def bug_664539_complex_buildout():
recipe='zc.buildout:debug'
"""
def
bug_664539_recipe_updating_options_dict
():
r"""
>>> write('setup.py', '''
... from setuptools import setup
...
... setup(name='foobar',
... entry_points={
... 'zc.buildout': [
... 'default = foobar:Recipe',
... ],
... }
... )
... ''')
>>> write('foobar.py', '''
... class Recipe(object):
...
... def __init__(self, buildout, name, options):
... options['option'] = '$${value}'
...
... def install(self):
... return []
...
... def update(self):
... return self.install()
... ''')
>>> write('buildout.cfg', '''
... [buildout]
... offline = true
... develop = .
... parts = sample
...
... [sample]
... recipe = zc.buildout:debug
... data = ${foobar:option}
...
... [foobar]
... recipe = foobar
... ''')
>>> print system(buildout),
Develop: '/sample-buildout/.'
Installing foobar.
Installing sample.
data='${value}'
recipe='zc.buildout:debug'
"""
######################################################################
def
make_py_with_system_install
(
make_py
,
sample_eggs
):
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment