コード例 #1
0
    def tearDown(self):
        self.output_stream.close()
        self.output_logger._close()

        test_utils.cleanup()

        super().tearDown()
コード例 #2
0
    def tearDown(self):
        super().tearDown()

        test_utils.cleanup()

        self.finish_process()
        self.executor.cleanup()
コード例 #3
0
    def tearDown(self):
        self.output_stream.close()
        self.output_logger._close()

        test_utils.cleanup()

        super().tearDown()
コード例 #4
0
    def test_no_config_folder(self):
        test_utils.cleanup()

        schedule_service = ScheduleService(self.config_service,
                                           self.execution_service,
                                           test_utils.temp_folder)
        self.assertEqual(schedule_service._scheduled_executions, {})
        self.assertEqual('1', schedule_service._id_generator.next_id())
コード例 #5
0
    def tearDown(self):
        test_utils.cleanup()

        executions = self.executor_service.get_active_executions('userX')
        for execution_id in executions:
            try:
                self.executor_service.kill_script(execution_id)
                self.executor_service.cleanup_execution(execution_id)
            except:
                traceback.print_exc()
コード例 #6
0
    def tearDown(self):
        test_utils.cleanup()

        executions = self.executor_service.get_active_executions('userX')
        for execution_id in executions:
            try:
                self.executor_service.kill_script(execution_id)
                self.executor_service.cleanup_execution(execution_id)
            except:
                traceback.print_exc()
コード例 #7
0
    def tearDown(self) -> None:
        super().tearDown()

        test_utils.cleanup()

        date_utils._mocked_now = None

        self.schedule_service._stop()
        self.schedule_service.scheduling_thread.join()

        schedule_service._sleep = time.sleep

        self.patcher.stop()
コード例 #8
0
    def tearDown(self) -> None:
        super().tearDown()

        io_loop = IOLoop.current()

        try:
            server._http_server.stop()
        except KeyError:
            for socket in server._http_server._sockets.values():
                socket.close()
            server._http_server._sockets.clear()

        self.kill_ioloop(io_loop)

        test_utils.cleanup()
コード例 #9
0
 def tearDown(self):
     super().tearDown()
     test_utils.cleanup()
コード例 #10
0
    def tearDown(self) -> None:
        test_utils.cleanup()

        executions = self.executor_service.get_active_executions('userX')
        for execution in executions:
            self.executor_service.kill_script(execution)
コード例 #11
0
 def tearDown(self) -> None:
     super().tearDown()
     test_utils.cleanup()
     os_utils.reset_os()
コード例 #12
0
 def tearDown(self) -> None:
     test_utils.cleanup()
コード例 #13
0
 def tearDown(self):
     super().tearDown()
     test_utils.cleanup()
コード例 #14
0
 def tearDown(self):
     test_utils.cleanup()
     self.storage._stop_autoclean()
コード例 #15
0
    def tearDown(self):
        test_utils.cleanup()

        if os.path.exists(_UPLOADS_FOLDER):
            test_utils._rmtree(_UPLOADS_FOLDER)
コード例 #16
0
    def tearDown(self):
        test_utils.cleanup()

        if os.path.exists(_UPLOADS_FOLDER):
            test_utils._rmtree(_UPLOADS_FOLDER)
コード例 #17
0
 def tearDown(self):
     test_utils.cleanup()
コード例 #18
0
 def tearDown(self):
     test_utils.cleanup()
     self.__storage._stop_autoclean()
コード例 #19
0
    def tearDown(self) -> None:
        if self.socket:
            self.socket.close()

        super().tearDown()
        test_utils.cleanup()
コード例 #20
0
    def tearDown(self):
        super().tearDown()
        test_utils.cleanup()

        httpclient.AsyncHTTPClient.configure(None)
コード例 #21
0
    def tearDown(self):
        super().tearDown()
        test_utils.cleanup()

        for authenticator in authenticators:
            authenticator._cleanup()
コード例 #22
0
    def tearDown(self) -> None:
        self.executor.process_wrapper.kill()

        test_utils.cleanup()
コード例 #23
0
 def tearDown(self):
     test_utils.cleanup()
コード例 #24
0
    def tearDown(self):
        super().tearDown()
        test_utils.cleanup()

        httpclient.AsyncHTTPClient.configure(None)