def setup(test): """ Make sure we are ready to test a buildout recipe, and the develop version of dumppickedversions2. """ testing.buildoutSetUp(test) testing.install_develop('buildout.dumppickedversions2', test)
def setUp(test): home = os.environ.get('HOME', None) buildoutSetUp(test) os.environ['HOME'] = home class buildout_test(object): def __init__(self, config): self.config = config def reset(self): test.globs['write'](test.globs['sample_buildout'], 'buildout.cfg', os.linesep.join(('[buildout]', 'offline=true', 'parts ='))) test.globs['system'](test.globs['buildout']) def __enter__(self): self.reset() test.globs['write'](test.globs['sample_buildout'], 'buildout.cfg', self.config) return self def run(self, *args): return test.globs['system'](' '.join([test.globs['buildout']] + list(args))) def __exit__(self, type, value, traceback): self.reset() test.globs['server_path'] = server_path = test.globs['tmpdir']('server') shutil.copytree(os.path.join(os.path.dirname(__file__), 'data'), os.path.join(server_path, 'data')) test.globs['server_url'] = test.globs['start_server'](server_path) test.globs['buildout_test'] = buildout_test install_develop('dockeroo', test)
def setUp(test): testing.buildoutSetUp(test) test.globs['isdir'] = isdir test.globs['isfile'] = isfile test.globs['copytree'] = copytree copy_index() testing.install_develop('djc.recipe2', test)
def setUp(test): buildoutSetUp(test) install_develop('plone.recipe.zope2instance', test) install('zc.recipe.egg', test) install_dependencies(pkg_resources.working_set.require('ZEO'), test) install_dependencies(pkg_resources.working_set.require('Zope'), test) install_dependencies(pkg_resources.working_set.require('ZODB'), test)
def setUp(test): buildoutSetUp(test) install_develop('plone.recipe.zeoserver', test) install('zc.recipe.egg', test) if sys.platform[:3].lower() == "win": install('nt_svcutils', test) install('zope.mkzeoinstance', test) install('ZopeUndo', test) install('zc.zrs', test) install('Automat', test) install('incremental', test) install('constantly', test) install('attrs', test) install('Twisted', test) install('hyperlink', test) install('idna', test) install('PyHamcrest', test) dependencies = pkg_resources.working_set.require('ZODB') for dep in dependencies: try: install(dep.project_name, test) except OSError: # Some distributions are installed multiple times, and the # underlying API doesn't check for it pass
def setUp(test): buildoutSetUp(test) install_develop('zope.exceptions', test) install_develop('zope.interface', test) install_develop('zope.testing', test) install_develop('genshi', test) install_develop('collective.recipe.solrinstance', test)
def setUp(test): buildoutSetUp(test) install_develop('leocornus.recipe.distribute', test) install('mwclient', test) install('requests', test) install('six', test)
def setUp(test): buildoutSetUp(test) # Work around "Not Found" messages on Buildout 2 del os.environ['buildout-testing-index-url'] test.globs['buildout'] += ' -No' install_develop('birdhousebuilder.recipe.nginx', test)
def setUp(test): buildoutSetUp(test) # Work around "Not Found" messages on Buildout 2 del os.environ['buildout-testing-index-url'] test.globs['buildout'] += ' -No' install_develop('birdhousebuilder.recipe.ncwms', test)
def setUp(test): buildoutSetUp(test) install('zc.recipe.egg',test) install('argparse',test) install('execute',test) install('mailinglogger',test) install('zope.dottedname',test) install_develop('checker',test)
def setUp(test): buildoutSetUp(test) install('zc.recipe.egg', test) install('argparse', test) install('execute', test) install('mailinglogger', test) install('zope.dottedname', test) install_develop('checker', test)
def setUp(test): buildoutSetUp(test) install_develop('leocornus.recipe.ci', test) install('pexpect', test) install('mwclient', test) install('requests', test) install('ansi2html', test) install('six', test)
def setUp(test): buildoutSetUp(test) #Work around "Not Found" messages on Buildout 2 del os.environ['buildout-testing-index-url'] test.globs['buildout'] += ' -No' install_develop('zope.exceptions', test) install_develop('zope.interface', test) install_develop('zope.testing', test) install_develop('genshi', test) install_develop('collective.recipe.solrinstance', test)
def setUp(test): buildout_testing.buildoutSetUp(test) # do a develop install of the recipe buildout_testing.install_develop('buildout-tox', test) # required by the recipe #buildout_testing.install('zc.recipe.egg', test) # setup the tempdir for testfixtures.manuel test.globs['dir'] = td = TempDirectory(path=os.getcwd()) test.globs['r'] = r = Replacer() r.replace('os.environ', {}) r.replace('sys.path', sys.path[:])
def setUp(test): buildoutSetUp(test) install_develop('plone.recipe.zope2instance', test) install('zc.recipe.egg', test) install('mailinglogger', test) dependencies = pkg_resources.working_set.require('Zope2') for dep in dependencies: try: install(dep.project_name, test) except OSError: # Some distributions are installed multiple times, and the # underlying API doesn't check for it pass
def setUp(self): buildoutSetUp(self) install_develop('zope.exceptions', self) install_develop('zope.interface', self) install_develop('zope.testing', self) install_develop('Genshi', self) install_develop('collective.recipe.solrinstance', self) sample_buildout = self.globs['sample_buildout'] os.makedirs(join(sample_buildout, 'example', 'etc')) os.makedirs(join( sample_buildout, 'example', 'solr', 'collection1', 'conf')) os.makedirs(join(sample_buildout, 'dist')) os.makedirs(join(sample_buildout, 'contrib'))
def setUp(test): buildoutSetUp(test) install_develop('isotoma.recipe.zeo', test) install('zc.recipe.egg', test) if sys.platform[:3].lower() == "win": install('nt_svcutils', test) install('zope.mkzeoinstance', test) install('ZopeUndo', test) dependencies = pkg_resources.working_set.require('ZODB3') for dep in dependencies: try: install(dep.project_name, test) except OSError: # Some distributions are installed multiple times, and the # underlying API doesn't check for it pass
def setUp(test): buildoutSetUp(test) install_develop("plone.recipe.zeoserver", test) install("zc.recipe.egg", test) if sys.platform[:3].lower() == "win": install("nt_svcutils", test) install("zope.mkzeoinstance", test) install("ZopeUndo", test) install("zc.zrs", test) install("Twisted", test) dependencies = pkg_resources.working_set.require("ZODB3") for dep in dependencies: try: install(dep.project_name, test) except OSError: # Some distributions are installed multiple times, and the # underlying API doesn't check for it pass
def setUp(test): easy_install_SetUp(test) create_celery_egg(test) install_develop('collective.recipe.celery', test)
def setUpBuildout(test): testing.buildoutSetUp(test) testing.install_develop('zc.recipe.egg', test) testing.install_develop('lovely.recipe', test) testing.install_develop('zope.testing', test) testing.install_develop('zope.interface', test)
def setUp(test): buildoutSetUp(test) install_develop('plone.recipe.varnish', test) install('zc.recipe.cmmi', test)
def setUp(test): buildoutSetUp(test) install_develop('zc.recipe.egg', test) install_develop('collective.recipe.pydevproject', test)
def setUp(test): buildoutSetUp(test) install_develop('zope.interface', test) install_develop('zope.testing', test) install_develop('Cheetah', test) install_develop('iw.recipe.template', test) install_develop('Markdown', test) install_develop('zope.exceptions', test) install_develop('zc.recipe.egg', test) install_develop('so.recipe.instance', test)
def setUp(test): testing.buildoutSetUp(test) testing.install('zope.testing', test) testing.install_develop('zc.recipe.egg', test) testing.install_develop('pb.recipes.pydev', test)
def setUp(test): buildoutSetUp(test) install('zc.recipe.cmmi', test) install('jinja2', test) install('markupsafe', test) install_develop('plone.recipe.varnish', test)
def setUp(test): buildoutSetUp(test) install_develop('leocornus.recipe.distribute', test)
def setUp(test): buildoutSetUp(test) install_develop('zope.exceptions', test) install_develop('zope.interface', test) install_develop('zope.testing', test) install_develop('Cheetah', test) install_develop('Markdown', test) install_develop('iw.recipe.template', test) install_develop('collective.recipe.solrinstance', test)
def setUp(self): buildoutSetUp(self) install_develop('Genshi', self) install_develop('collective.recipe.solrinstance', self) install_develop('hexagonit.recipe.download', self) install_develop('zope.exceptions', self) install_develop('zope.interface', self) install_develop('zope.testing', self)
def setUp(test): setUpBuildout(test) testing.install_develop('zope.app.locales', test) testing.install_develop('zope.i18nmessageid', test)