def setUp(self): configuration.test_mode() utils.initdb() os.environ['AIRFLOW_CONN_TEST_URI'] = ( 'postgres://*****:*****@ec2.compute.com:5432/the_database') os.environ['AIRFLOW_CONN_TEST_URI_NO_CREDS'] = ( 'postgres://ec2.compute.com/the_database')
def setUp(self): configuration.test_mode() utils.initdb() args = {'owner': 'airflow', 'start_date': datetime(2015, 1, 1)} dag = DAG(TEST_DAG_ID, default_args=args) dag.clear(start_date=DEFAULT_DATE, end_date=datetime.now()) self.dag = dag
def setUp(self): configuration.test_mode() utils.initdb() args = {"owner": "airflow", "start_date": datetime(2015, 1, 1)} dag = DAG("hive_test", default_args=args) self.dag = dag self.hql = """
def setUp(self): configuration.test_mode() utils.initdb() args = {'owner': 'airflow', 'start_date': datetime(2015, 1, 1)} dag = DAG('hive_test', default_args=args) self.dag = dag self.hql = """
def setUp(self): configuration.test_mode() utils.initdb() args = {'owner': 'airflow', 'start_date': datetime(2015, 1, 1)} dag = DAG(TEST_DAG_ID, default_args=args) self.dag = dag self.hql = """
def setUp(self): configuration.test_mode() utils.initdb() self.dagbag = models.DagBag(dag_folder=DEV_NULL, include_examples=True) utils.initdb() args = {"owner": "airflow", "start_date": datetime(2015, 1, 1)} dag = DAG("core_test", default_args=args) self.dag = dag self.dag_bash = self.dagbag.dags["example_bash_operator"] self.runme_0 = self.dag_bash.get_task("runme_0")
def setUp(self): configuration.test_mode() utils.initdb() self.dagbag = models.DagBag(dag_folder=DEV_NULL, include_examples=True) utils.initdb() args = {'owner': 'airflow', 'start_date': datetime(2015, 1, 1)} dag = DAG(TEST_DAG_ID, default_args=args) self.dag = dag self.dag_bash = self.dagbag.dags['example_bash_operator'] self.runme_0 = self.dag_bash.get_task('runme_0')
def setUp(self): configuration.test_mode() utils.initdb() self.dagbag = models.DagBag( dag_folder=DEV_NULL, include_examples=True) utils.initdb() args = {'owner': 'airflow', 'start_date': datetime(2015, 1, 1)} dag = DAG('core_test', default_args=args) self.dag = dag self.dag_bash = self.dagbag.dags['example_bash_operator'] self.runme_0 = self.dag_bash.get_task('runme_0')
def initdb(args): print("DB: " + conf.get('core', 'SQL_ALCHEMY_CONN')) utils.initdb() print("Done.")
def setUp(self): configuration.test_mode() utils.initdb() app.config['TESTING'] = True self.app = app.test_client()
def initdb(args): print("DB: " + repr(settings.engine.url)) utils.initdb() print("Done.")
def setUp(self): configuration.test_mode() utils.initdb() os.environ["AIRFLOW_CONN_TEST_URI"] = "postgres://*****:*****@ec2.compute.com:5432/the_database"
def initdb(args): print("DB: " + configuration.get("core", "SQL_ALCHEMY_CONN")) utils.initdb() print("Done.")