Esempio n. 1
0
    def setUp(self):
        from repoze.depinj import clear
        clear()

        from repoze.depinj import inject
        from karlserve.instance import Instances
        inject(DummyInstances, Instances)
Esempio n. 2
0
    def setUp(self):
        from repoze.depinj import clear
        clear()

        from karlserve.application import Configurator
        from repoze.depinj import inject
        inject(DummyConfigurator, Configurator)
Esempio n. 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)
Esempio n. 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')
Esempio n. 5
0
    def tearDown(self):
        from repoze.depinj import clear
        clear()

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

        from repoze.depinj import inject