[Checkins] SVN: grokproject/trunk/tests.txt Update tests:
Uli Fouquet
uli at gnufix.de
Fri Oct 3 22:50:28 EDT 2008
Log message for revision 91723:
Update tests:
* Make sure, existing local egg repositories are not touched during tests.
* Remove trailing <BLANKLINES> from doctest examples.
* Clean up generated project and egg dirs after tests.
Changed:
U grokproject/trunk/tests.txt
-=-
Modified: grokproject/trunk/tests.txt
===================================================================
--- grokproject/trunk/tests.txt 2008-10-04 01:46:56 UTC (rev 91722)
+++ grokproject/trunk/tests.txt 2008-10-04 02:50:28 UTC (rev 91723)
@@ -9,11 +9,21 @@
>>> rmdir('grokexample')
-Then use paster::
+Create an empty eggs directory. So we make sure that we don't have to
+care for arbitrary eggs, that were installed in the user's environment
+before::
+ >>> tempeggs = 'grokexample-eggs'
+ >>> eggsdir = os.path.join(tempdir, tempeggs)
+ >>> rmdir(eggsdir)
+ >>> os.makedirs(eggsdir)
+
+Then use paster. Eggs are placed in our freshly created eggs directory::
+
>>> paster = current_dir + '/bin/paster create -t grok '
- >>> sh(paster + 'grokexample user=a passwd=a --no-interactive')
- /.../bin/paster create -t grok grokexample user=a passwd=a --no-interactive
+ >>> sh(paster + 'grokexample user=a passwd=a '
+ ... 'eggs_dir=%s --no-interactive' % eggsdir)
+ /.../bin/paster create -t grok grokexample user=a passwd=a ...
...
Let's check the contents::
@@ -50,6 +60,12 @@
test...
zopectl...
+The eggs dir is filled now::
+
+ >>> len(os.listdir(eggsdir)) > 100
+ True
+
+
Using i18n scripts
------------------
@@ -175,8 +191,8 @@
The recipe for i18n doesn't define an update method. ...
i18n: setting up i18n tools
Updating test.
- <BLANKLINE>
+
Using the generated `bootstrap` script
--------------------------------------
@@ -189,9 +205,14 @@
>>> cmd = "%s %s" % (sys.executable, cmd_arg)
>>> output = read_sh(cmd)
>>> print output
- Generated script '.../bin/buildout'.
Develop: '...'
Installing 'z3c.recipe.eggbasket'.
...
Now you can run 'bin/buildout'
- <BLANKLINE>
+
+
+Clean up::
+
+ >>> cd(tempdir)
+ >>> rmdir('grokexample')
+ >>> rmdir(eggsdir)
More information about the Checkins
mailing list