def test_android_ci_task_push_assets_to_xcom(self): with DAG(dag_id='any_dag', start_date=datetime.now()) as dag: android_release = AndroidReleaseOperator( task_id='android_release', provide_context=False, repo_name='stocksdktest/AndroidTestRunner', tag_id='release-20191016-0.0.3', tag_sha='16a5ad8d128df1b55f962b52e87bac481f98475f', runner_conf=RunnerConfig()) task_instance = TaskInstance(task=android_release, execution_date=datetime.now()) android_release.execute(task_instance.get_template_context()) release_files = task_instance.xcom_pull(key='android_release') self.assertIsNotNone(release_files) print(release_files)
def test_android_ci_task_push_assets_to_xcom(self): with DAG(dag_id='any_dag', start_date=datetime.now()) as dag: android_release = AndroidReleaseOperator( task_id='android_release', provide_context=False, repo_name='stocksdktest/AndroidTestRunner', tag_id='release-20191028-0.0.1', tag_sha='83eab8326e7901d744599bff60defaea135f7bf0', runner_conf=RunnerConfig()) task_instance = TaskInstance(task=android_release, execution_date=datetime.now()) android_release.execute(task_instance.get_template_context()) release_files = task_instance.xcom_pull(key='android_release') self.assertIsNotNone(release_files) print(release_files)