Commit f0bb1e70 authored by Vincent Pelletier's avatar Vincent Pelletier

Extension precedence tests.

parent 2f517b7d
......@@ -3587,6 +3587,57 @@ def increment_on_command_line():
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():
r"""
>>> write('buildout.cfg', '''
......
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