Skip to content
This repository has been archived by the owner on Mar 29, 2021. It is now read-only.

Commit

Permalink
Added a unittest for installing eggs
Browse files Browse the repository at this point in the history
  • Loading branch information
zerok committed Oct 12, 2009
1 parent a009a3f commit 39e145d
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions zerokspot/recipe/git/tests.py
Expand Up @@ -169,6 +169,20 @@ def testNonstandardBranch(self):
self.assertTrue(os.path.exists(os.path.join(recipe.options['location'], 'test2.txt')))
self._buildout()

def testSingleEgg(self):
testing.write(self.tempdir, 'buildout.cfg', """
[buildout]
parts = gittest
[gittest]
recipe = zerokspot.recipe.git
repository = %(repo)s
as_egg = true
""" % {'repo': os.path.join(os.path.dirname(__file__), '../../../')})
buildout = self._buildout()
installs = os.listdir(buildout['buildout']['develop-eggs-directory'])
self.assertTrue('zerokspot.recipe.git.egg-link' in installs)

if __name__ == '__main__':
sys.path.insert(0, os.path.normpath(
os.path.join(
Expand Down

0 comments on commit 39e145d

Please sign in to comment.