Skip to content

Commit eda2a76

Browse files
committed
Fix: Update the Airflow integration test
1 parent 4c9c052 commit eda2a76

1 file changed

Lines changed: 6 additions & 4 deletions

File tree

tests/schedulers/airflow/test_integration.py

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ def test_apply_plan_create_backfill_promote(
4949

5050
assert airflow_client.get_environment(environment_name) is None
5151

52-
_apply_plan_and_block(airflow_client, [snapshot], environment)
52+
_apply_plan_and_block(airflow_client, [snapshot], environment, is_dev=False)
5353

5454
assert airflow_client.get_environment(environment_name).snapshots == [ # type: ignore
5555
snapshot.table_info
@@ -75,11 +75,13 @@ def _apply_plan_and_block(
7575
airflow_client: AirflowClient,
7676
new_snapshots: t.List[Snapshot],
7777
environment: Environment,
78+
is_dev: t.Optional[bool] = None,
7879
) -> None:
80+
if is_dev is None:
81+
is_dev = environment.name != c.PROD
82+
7983
plan_request_id = random_id()
80-
airflow_client.apply_plan(
81-
new_snapshots, environment, plan_request_id, is_dev=environment.name != c.PROD
82-
)
84+
airflow_client.apply_plan(new_snapshots, environment, plan_request_id, is_dev=is_dev)
8385

8486
plan_application_dag_id = common.plan_application_dag_id(environment.name, plan_request_id)
8587
plan_application_dag_run_id = airflow_client.wait_for_first_dag_run(

0 commit comments

Comments
 (0)