def setUp(self): from repoze.depinj import clear clear() from repoze.depinj import inject from karlserve.instance import Instances inject(DummyInstances, Instances)
def setUp(self): from repoze.depinj import clear clear() from karlserve.application import Configurator from repoze.depinj import inject inject(DummyConfigurator, Configurator)
def setUp(self): from repoze.depinj import clear clear() import tempfile self.tempdir = tempfile.mkdtemp('.karlservetests') from repoze.depinj import inject from karlserve.instance import KarlPGTextIndex inject(DummyTextIndex, KarlPGTextIndex)
def setUp(self): from repoze.depinj import clear clear() def dummy_mkp(app): return app.args def dummy_maintenance(arg): return 'maintenance app' from repoze.depinj import inject from karlserve.instance import make_karl_instance from karlserve.instance import make_karl_pipeline from karlserve.instance import maintenance inject(DummyApp, make_karl_instance) inject(dummy_mkp, make_karl_pipeline) inject(dummy_maintenance, maintenance) import os import tempfile self.tmp = tempfile.mkdtemp('.karlserve_tests') self.var = os.path.join(self.tmp, 'var')
def tearDown(self): from repoze.depinj import clear clear() import shutil shutil.rmtree(self.tempdir)
def tearDown(self): clear()
def setUp(self): clear()
def tearDown(self): from repoze.depinj import clear clear()
def setUp(self): from repoze.depinj import clear clear() from repoze.depinj import inject