def tearDown(self):
        self.output_stream.close()
        self.output_logger._close()

        test_utils.cleanup()

        super().tearDown()
Example #2
0
    def tearDown(self):
        super().tearDown()

        test_utils.cleanup()

        self.finish_process()
        self.executor.cleanup()
Example #3
0
    def tearDown(self):
        self.output_stream.close()
        self.output_logger._close()

        test_utils.cleanup()

        super().tearDown()
    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())
    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()
Example #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()
Example #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()
Example #9
0
 def tearDown(self):
     super().tearDown()
     test_utils.cleanup()
Example #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)
Example #11
0
 def tearDown(self) -> None:
     super().tearDown()
     test_utils.cleanup()
     os_utils.reset_os()
 def tearDown(self) -> None:
     test_utils.cleanup()
 def tearDown(self):
     super().tearDown()
     test_utils.cleanup()
Example #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)
    def tearDown(self):
        test_utils.cleanup()

        if os.path.exists(_UPLOADS_FOLDER):
            test_utils._rmtree(_UPLOADS_FOLDER)
Example #17
0
 def tearDown(self):
     test_utils.cleanup()
 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()
Example #20
0
    def tearDown(self):
        super().tearDown()
        test_utils.cleanup()

        httpclient.AsyncHTTPClient.configure(None)
Example #21
0
    def tearDown(self):
        super().tearDown()
        test_utils.cleanup()

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

        test_utils.cleanup()
Example #23
0
 def tearDown(self):
     test_utils.cleanup()
    def tearDown(self):
        super().tearDown()
        test_utils.cleanup()

        httpclient.AsyncHTTPClient.configure(None)