Example #1
0
    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)
Example #3
0
    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)
Example #4
0
    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')
Example #5
0
    def tearDown(self):
        from repoze.depinj import clear
        clear()

        import shutil
        shutil.rmtree(self.tempdir)
Example #6
0
 def tearDown(self):
     clear()
Example #7
0
 def setUp(self):
     clear()
Example #8
0
 def tearDown(self):
     from repoze.depinj import clear
     clear()
    def setUp(self):
        from repoze.depinj import clear
        clear()

        from repoze.depinj import inject