Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -413,6 +413,7 @@ repos:
^airflow-ctl.*\.py$|
^airflow-core/src/airflow/models/.*\.py$|
^airflow-core/tests/unit/api_fastapi/core_api/routes/public/test_assets.py$|
^airflow-core/tests/unit/api_fastapi/core_api/routes/public/test_dag_sources.py$|
^providers/openlineage/.*\.py$|
^task_sdk.*\.py$
pass_filenames: true
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -137,11 +137,8 @@ def test_should_respond_200_version(self, test_client, accept, session, test_dag
# force reserialization
test_dag.doc_md = "new doc"
force_reserialization(test_dag.dag_id, "dag-folder")
dagcode = (
session.query(DagCode)
.filter(DagCode.fileloc == test_dag.fileloc)
.order_by(DagCode.id.desc())
.first()
dagcode = session.scalar(
select(DagCode).where(DagCode.fileloc == test_dag.fileloc).order_by(DagCode.id.desc()).limit(1)
)
assert dagcode.dag_version.version_number == 2
# populate the latest dagcode with a value
Expand Down
Loading