Skip to content
This repository has been archived by the owner on Dec 17, 2020. It is now read-only.

Commit

Permalink
Fix test setup, added Paste, PasteDeploy and PasteScript,
Browse files Browse the repository at this point in the history
it was on my local python installed which means it was missing in a plain setup
  • Loading branch information
projekt01 committed Jun 30, 2008
1 parent f6d1c6f commit 1261122
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/z3c/recipe/paster/serve.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,10 @@ def __init__(self, buildout, name, options):
options['location'] = os.path.join(
buildout['buildout']['parts-directory'], name)

if options.get('eggs'):
self.egg = zc.recipe.egg.Egg(buildout, name, options)
if options.get('eggs') is None:
raise zc.buildout.UserError(
'You have to define at least one egg for setup an application.')
self.egg = zc.recipe.egg.Egg(buildout, name, options)

def install(self):
options = self.options
Expand Down
3 changes: 3 additions & 0 deletions src/z3c/recipe/paster/tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,9 @@
def setUp(test):
zc.buildout.testing.buildoutSetUp(test)
zc.buildout.testing.install_develop('z3c.recipe.paster', test)
zc.buildout.testing.install('Paste', test)
zc.buildout.testing.install('PasteDeploy', test)
zc.buildout.testing.install('PasteScript', test)
zc.buildout.testing.install('RestrictedPython', test)
zc.buildout.testing.install('ZConfig', test)
zc.buildout.testing.install('ZODB3', test)
Expand Down

0 comments on commit 1261122

Please sign in to comment.