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
Łukasz Nowak
slapos.buildout
Commits
f0bb1e70
Commit
f0bb1e70
authored
Feb 20, 2012
by
Vincent Pelletier
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Extension precedence tests.
parent
2f517b7d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
51 additions
and
0 deletions
+51
-0
src/zc/buildout/tests.py
src/zc/buildout/tests.py
+51
-0
No files found.
src/zc/buildout/tests.py
View file @
f0bb1e70
...
@@ -3587,6 +3587,57 @@ def increment_on_command_line():
...
@@ -3587,6 +3587,57 @@ def increment_on_command_line():
recipe='zc.buildout:debug'
recipe='zc.buildout:debug'
"""
"""
def
test_other_section_extend_precedence
():
r"""
>>> write('buildout.cfg', '''
... [buildout]
... parts = myfiles
...
... [debug]
... recipe = zc.buildout:debug
... file1 = ${:path}/file1
... color = red
...
... [myfiles]
... <= debug
... path = mydata
... color = green
... ''')
>>> print system(buildout),
Installing myfiles.
color='green'
file1='mydata/file1'
path='mydata'
recipe='zc.buildout:debug'
"""
def
test_same_section_extend_precedence
():
r"""
>>> write('bar.cfg', '''
... [myfiles]
... recipe = zc.buildout:debug
... file1 = ${:path}/file1
... color = red
... ''')
>>> write('buildout.cfg', '''
... [buildout]
... extends = bar.cfg
... parts = myfiles
...
... [myfiles]
... path = mydata
... color = green
... ''')
>>> print system(buildout),
Installing myfiles.
color='green'
file1='mydata/file1'
path='mydata'
recipe='zc.buildout:debug'
"""
def
bug_605017_reuse_extending_section
():
def
bug_605017_reuse_extending_section
():
r"""
r"""
>>> write('buildout.cfg', '''
>>> write('buildout.cfg', '''
...
...
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