Commit 9b575bf9 authored by Godefroid Chapelle's avatar Godefroid Chapelle

Problem: missing test for increments and extends

Solution: test when configs that are extended increment a key
with no original value
parent 1f760cc6
...@@ -352,6 +352,44 @@ def with_extends_increment_in_buildout_with_base_and_root(): ...@@ -352,6 +352,44 @@ def with_extends_increment_in_buildout_with_base_and_root():
DEFAULT_VALUE DEFAULT_VALUE
""" """
def no_default_with_extends_increment_in_base2_and_base3():
r"""
>>> write('base.cfg', '''
... [buildout]
... ''')
>>> write('base2.cfg', '''
... [buildout]
... extensions += demo2
... ''')
>>> write('base3.cfg', '''
... [buildout]
... extensions += demo3
... ''')
>>> write('buildout.cfg', '''
... [buildout]
... extends = base.cfg
... base2.cfg
... base3.cfg
... parts =
... ''')
>>> print_(system(buildout+' annotate buildout'), end='')
... # doctest: +ELLIPSIS
<BLANKLINE>
Annotated sections
==================
<BLANKLINE>
[buildout]
...
extensions=
demo2
demo3
IMPLICIT_VALUE
+= base2.cfg
+= base3.cfg
...
versions= versions
DEFAULT_VALUE
"""
def test_suite(): def test_suite():
return doctest.DocTestSuite( return doctest.DocTestSuite(
......
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