def test_airflow_config_default(self):
     with unittest.mock.patch.dict('os.environ'):
         if 'AIRFLOW_CONFIG' in os.environ:
             del os.environ['AIRFLOW_CONFIG']
         self.assertEqual(
             get_airflow_config('/home/airflow'),
             expand_env_var('/home/airflow/airflow.cfg'))
 def test_airflow_home_default(self):
     with unittest.mock.patch.dict('os.environ'):
         if 'AIRFLOW_HOME' in os.environ:
             del os.environ['AIRFLOW_HOME']
         self.assertEqual(
             get_airflow_home(),
             expand_env_var('~/airflow'))
Beispiel #3
0
 def test_airflow_config_default(self):
     with env_vars(AIRFLOW_CONFIG=None):
         self.assertEqual(
             configuration.get_airflow_config('/home/airflow'),
             configuration.expand_env_var('/home/airflow/airflow.cfg'))
Beispiel #4
0
 def test_airflow_home_default(self):
     with env_vars(AIRFLOW_HOME=None):
         self.assertEqual(configuration.get_airflow_home(),
                          configuration.expand_env_var('~/airflow'))
 def test_airflow_config_default(self):
     with env_vars(AIRFLOW_CONFIG=None):
         self.assertEqual(
             configuration.get_airflow_config('/home/airflow'),
             configuration.expand_env_var('/home/airflow/airflow.cfg'))
 def test_airflow_home_default(self):
     with env_vars(AIRFLOW_HOME=None):
         self.assertEqual(
             configuration.get_airflow_home(),
             configuration.expand_env_var('~/airflow'))