コード例 #1
0
ファイル: conftest.py プロジェクト: GustavePate/distark
def infraup(request):

    from distark.majordaemon.infralauncher import InfraLauncher

    def run_only_at_session_end():
        print "\nfinalizing session"
        InfraLauncher.stop()

    if pytest.config.getoption('confpath') is not None:
        if len(pytest.config.getoption('confpath')) > 0:
            confpath = pytest.config.getoption('confpath')[0]
    print "Launch Infra with conf:", confpath

    InfraLauncher.launch(confpath, 2)
    request.addfinalizer(run_only_at_session_end)
コード例 #2
0
ファイル: funkysimple.py プロジェクト: GustavePate/distark
 def tearDownBench(self):
     InfraLauncher.stop()
     self.logd("teardown\n")
コード例 #3
0
ファイル: funkysimple.py プロジェクト: GustavePate/distark
 def setUpBench(self):
     """Setting up test."""
     self.label="testing different services" + "\n"
     self.mode='bench'
     # self.server_url = self.conf_get('main', 'url')
     InfraLauncher.launch(2)
コード例 #4
0
ファイル: funkysimple.py プロジェクト: GustavePate/distark
 def tearDown(self):
     if not(self.in_bench_mode):
         InfraLauncher.stop()
コード例 #5
0
ファイル: funkysimple.py プロジェクト: GustavePate/distark
 def setUp(self):
     if not(self.in_bench_mode):
         InfraLauncher.launch(2)
コード例 #6
0
ファイル: conftest.py プロジェクト: GustavePate/distark
 def run_only_at_session_end():
     print "\nfinalizing session"
     InfraLauncher.stop()