Ejemplo n.º 1
0
 def test_basic_log_clear(self):
     self._logger.info("TEST LOG LINE")
     start_size = os.stat(self.base_log_file).st_size
     self.assertGreater(start_size, 0)
     logger.delete_logs()
     end_size = os.stat(self.base_log_file).st_size
     self.assertEqual(end_size, 0)
     # then keep logging
     self._logger.info("MORE TEST LOG LINES")
     final_size = os.stat(self.base_log_file).st_size
     self.assertGreater(final_size, 0)
Ejemplo n.º 2
0
 def test_basic_log_clear(self):
     self._logger.info("TEST LOG LINE")
     start_size = os.stat(self.base_log_file).st_size
     self.assertGreater(start_size, 0)
     logger.delete_logs()
     end_size = os.stat(self.base_log_file).st_size
     self.assertEqual(end_size, 0)
     # then keep logging
     self._logger.info("MORE TEST LOG LINES")
     final_size = os.stat(self.base_log_file).st_size
     self.assertGreater(final_size, 0)
Ejemplo n.º 3
0
 def clean_db_handler(self, request_id=None, *args, **kwargs):
     self._db.clean_all(request_id)
     logger.delete_logs()
Ejemplo n.º 4
0
 def clean_db_handler(self, request_id=None, *args, **kwargs):
     self._db.clean_all(request_id)
     logger.delete_logs()