Commit dbb27169 authored by Rafael Monnerat's avatar Rafael Monnerat

Fix Tests (follow up buildout verbosity).

parent f0e16ee0
......@@ -48,6 +48,10 @@ We run buildout::
>>> print system(join('bin', 'buildout')),
Installing template.
Not found: /tmp/.../zc.buildout/
Not found: /tmp/.../zc.buildout/
Not found: /tmp/.../setuptools/
Not found: /tmp/.../setuptools/
And the template has been rendered::
......@@ -177,6 +181,10 @@ Use jinja2 extensions
>>> print system(join('bin', 'buildout')),
Uninstalling template.
Installing template.
Not found: /tmp/.../zc.buildout/
Not found: /tmp/.../zc.buildout/
Not found: /tmp/.../setuptools/
Not found: /tmp/.../setuptools/
>>> cat('foo')
foo, template
......@@ -204,6 +212,10 @@ Compute template's MD5 sum::
>>> print system(join('bin', 'buildout')),
Uninstalling template.
Installing template.
Not found: /tmp/.../zc.buildout/
Not found: /tmp/.../zc.buildout/
Not found: /tmp/.../setuptools/
Not found: /tmp/.../setuptools/
>>> cat('foo')
template
......@@ -223,10 +235,14 @@ If the md5sum doesn't match, the buildout fail::
... md5sum = 0123456789abcdef0123456789abcdef
... ''')
>>> print system(join('bin', 'buildout')),
Not found: /tmp/.../zc.buildout/
Not found: /tmp/.../zc.buildout/
Not found: /tmp/.../setuptools/
Not found: /tmp/.../setuptools/
While:
Installing.
Getting section template.
Initializing part template.
Initializing section template.
Error: MD5 checksum mismatch for local resource at 'foo.in'.
......@@ -251,6 +267,10 @@ You can specify the mode for rendered file::
>>> print system(join('bin', 'buildout')),
Uninstalling template.
Installing template.
Not found: /tmp/.../zc.buildout/
Not found: /tmp/.../zc.buildout/
Not found: /tmp/.../setuptools/
Not found: /tmp/.../setuptools/
And the generated file with have the right permissions::
......@@ -289,6 +309,10 @@ imported::
>>> print system(join('bin', 'buildout')),
Uninstalling template.
Installing template.
Not found: /tmp/.../zc.buildout/
Not found: /tmp/.../zc.buildout/
Not found: /tmp/.../setuptools/
Not found: /tmp/.../setuptools/
>>> cat('bar')
FOO !
......@@ -310,6 +334,10 @@ Just like context definition, it also works with indirect values::
>>> print system(join('bin', 'buildout')),
Uninstalling template.
Installing template.
Not found: /tmp/.../zc.buildout/
Not found: /tmp/.../zc.buildout/
Not found: /tmp/.../setuptools/
Not found: /tmp/.../setuptools/
>>> cat('bar')
FOO !
......@@ -354,6 +382,10 @@ All templates can be accessed inside both folders::
>>> print system(join('bin', 'buildout')),
Uninstalling template.
Installing template.
Not found: /tmp/.../zc.buildout/
Not found: /tmp/.../zc.buildout/
Not found: /tmp/.../setuptools/
Not found: /tmp/.../setuptools/
>>> cat('bar')
a1foo
a2foo
......@@ -392,6 +424,10 @@ path)::
>>> print system(join('bin', 'buildout')),
Uninstalling template.
Installing template.
Not found: /tmp/.../zc.buildout/
Not found: /tmp/.../zc.buildout/
Not found: /tmp/.../setuptools/
Not found: /tmp/.../setuptools/
>>> cat('bar')
a1foo
a2foo
......@@ -425,6 +461,10 @@ will be installed as dependency::
foobar='dependency content'
recipe='zc.buildout:debug'
Installing template.
Not found: /tmp/.../zc.buildout/
Not found: /tmp/.../zc.buildout/
Not found: /tmp/.../setuptools/
Not found: /tmp/.../setuptools/
This way you can get options which are computed in the ``__init__`` of
the dependent recipe.
......@@ -478,6 +518,10 @@ Let's just use ``buildout.cfg`` using this egg::
Uninstalling dependency.
Installing sample.
Installing template.
Not found: /tmp/.../zc.buildout/
Not found: /tmp/.../zc.buildout/
Not found: /tmp/.../setuptools/
Not found: /tmp/.../setuptools/
>>> cat('foo')
foobar
......@@ -28,6 +28,10 @@ We run buildout::
>>> print system(join('bin', 'buildout')),
Installing template.
Not found: /tmp/.../zc.buildout/
Not found: /tmp/.../zc.buildout/
Not found: /tmp/.../setuptools/
Not found: /tmp/.../setuptools/
And the output file has been parsed by buildout itself::
......@@ -76,6 +80,10 @@ And run buildout, and see the result::
>>> print system(join('bin', 'buildout')),
Uninstalling template.
Installing template.
Not found: /tmp/.../zc.buildout/
Not found: /tmp/.../zc.buildout/
Not found: /tmp/.../setuptools/
Not found: /tmp/.../setuptools/
>>> cat('template.out')
template
......@@ -94,10 +102,14 @@ If the md5sum doesn't match, the buildout fail::
... md5sum = 0123456789abcdef0123456789abcdef
... ''')
>>> print system(join('bin', 'buildout')),
Not found: /tmp/.../zc.buildout/
Not found: /tmp/.../zc.buildout/
Not found: /tmp/.../setuptools/
Not found: /tmp/.../setuptools/
While:
Installing.
Getting section template.
Initializing part template.
Initializing section template.
Error: MD5 checksum mismatch for local resource at 'template.in'.
......@@ -123,6 +135,10 @@ You can specify the mode of the written file::
>>> print system(join('bin', 'buildout')),
Uninstalling template.
Installing template.
Not found: /tmp/.../zc.buildout/
Not found: /tmp/.../zc.buildout/
Not found: /tmp/.../setuptools/
Not found: /tmp/.../setuptools/
And the generated file with have the right permissions::
......@@ -158,6 +174,10 @@ will be installed as dependency::
foobar='dependency content'
recipe='zc.buildout:debug'
Installing template.
Not found: /tmp/.../zc.buildout/
Not found: /tmp/.../zc.buildout/
Not found: /tmp/.../setuptools/
Not found: /tmp/.../setuptools/
This way you can get options which are computed in the ``__init__`` of
the dependent recipe.
......@@ -210,5 +230,9 @@ Let's just use ``buildout.cfg`` using this egg::
Uninstalling dependency.
Installing sample.
Installing template.
Not found: /tmp/.../zc.buildout/
Not found: /tmp/.../zc.buildout/
Not found: /tmp/.../setuptools/
Not found: /tmp/.../setuptools/
>>> cat('template.out')
foobar
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