Ejemplo n.º 1
0
    def tearDown(self):
        self.output_stream.close()
        self.output_logger._close()

        test_utils.cleanup()

        super().tearDown()
Ejemplo n.º 2
0
    def tearDown(self):
        super().tearDown()

        test_utils.cleanup()

        self.finish_process()
        self.executor.cleanup()
Ejemplo n.º 3
0
    def tearDown(self):
        self.output_stream.close()
        self.output_logger._close()

        test_utils.cleanup()

        super().tearDown()
Ejemplo n.º 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())
Ejemplo n.º 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()
Ejemplo n.º 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()
    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()
Ejemplo n.º 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()
Ejemplo n.º 9
0
 def tearDown(self):
     super().tearDown()
     test_utils.cleanup()
Ejemplo n.º 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)
Ejemplo n.º 11
0
 def tearDown(self) -> None:
     super().tearDown()
     test_utils.cleanup()
     os_utils.reset_os()
Ejemplo n.º 12
0
 def tearDown(self) -> None:
     test_utils.cleanup()
 def tearDown(self):
     super().tearDown()
     test_utils.cleanup()
Ejemplo n.º 14
0
 def tearDown(self):
     test_utils.cleanup()
     self.storage._stop_autoclean()
    def tearDown(self):
        test_utils.cleanup()

        if os.path.exists(_UPLOADS_FOLDER):
            test_utils._rmtree(_UPLOADS_FOLDER)
Ejemplo n.º 16
0
    def tearDown(self):
        test_utils.cleanup()

        if os.path.exists(_UPLOADS_FOLDER):
            test_utils._rmtree(_UPLOADS_FOLDER)
Ejemplo n.º 17
0
 def tearDown(self):
     test_utils.cleanup()
Ejemplo n.º 18
0
 def tearDown(self):
     test_utils.cleanup()
     self.__storage._stop_autoclean()
    def tearDown(self) -> None:
        if self.socket:
            self.socket.close()

        super().tearDown()
        test_utils.cleanup()
Ejemplo n.º 20
0
    def tearDown(self):
        super().tearDown()
        test_utils.cleanup()

        httpclient.AsyncHTTPClient.configure(None)
Ejemplo n.º 21
0
    def tearDown(self):
        super().tearDown()
        test_utils.cleanup()

        for authenticator in authenticators:
            authenticator._cleanup()
Ejemplo n.º 22
0
    def tearDown(self) -> None:
        self.executor.process_wrapper.kill()

        test_utils.cleanup()
Ejemplo n.º 23
0
 def tearDown(self):
     test_utils.cleanup()
    def tearDown(self):
        super().tearDown()
        test_utils.cleanup()

        httpclient.AsyncHTTPClient.configure(None)