Пример #1
0
 def test_1_9_config(self):
     from airflow.logging_config import configure_logging
     conf.set('core', 'task_log_reader', 'file.task')
     try:
         with self.assertWarnsRegex(DeprecationWarning, r'file.task'):
             configure_logging()
             self.assertEqual(conf.get('core', 'task_log_reader'), 'task')
     finally:
         conf.remove_option('core', 'task_log_reader', remove_default=False)
 def test_1_9_config(self):
     from airflow.logging_config import configure_logging
     conf.set('core', 'task_log_reader', 'file.task')
     try:
         with self.assertWarnsRegex(DeprecationWarning, r'file.task'):
             configure_logging()
             self.assertEqual(conf.get('core', 'task_log_reader'), 'task')
     finally:
         conf.remove_option('core', 'task_log_reader', remove_default=False)