This is an automated email from the ASF dual-hosted git repository.
potiuk pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/airflow.git
The following commit(s) were added to refs/heads/main by this push:
new 35f74854453 scheduler test: filter captured messages to skip SQLA
debug logs (#59493)
35f74854453 is described below
commit 35f74854453010dc439e5ef89e019bdf8756cc31
Author: Dev-iL <[email protected]>
AuthorDate: Tue Dec 16 14:57:15 2025 +0200
scheduler test: filter captured messages to skip SQLA debug logs (#59493)
This change is needed for compatibility (i.e. stop the test from failing)
with the `SQLALCHEMY_ENGINE_DEBUG` flag.
---
airflow-core/tests/unit/jobs/test_scheduler_job.py | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/airflow-core/tests/unit/jobs/test_scheduler_job.py
b/airflow-core/tests/unit/jobs/test_scheduler_job.py
index b1c38c1c120..dc1cec462d7 100644
--- a/airflow-core/tests/unit/jobs/test_scheduler_job.py
+++ b/airflow-core/tests/unit/jobs/test_scheduler_job.py
@@ -4744,7 +4744,10 @@ class TestSchedulerJob:
):
self._clear_serdags(dag_id=dag_maker.dag.dag_id, session=session)
self.job_runner._create_dag_runs([dag_maker.dag_model], session)
- assert caplog.messages == [
+ scheduler_messages = [
+ record.message for record in caplog.records if record.levelno
>= logging.ERROR
+ ]
+ assert scheduler_messages == [
"DAG 'test_scheduler_create_dag_runs_does_not_raise_error' not
found in serialized_dag table",
]