From b49e020dde2dfdaa5a90531b6d8462cd26d0f2df Mon Sep 17 00:00:00 2001 From: Tomasz Wojdat Date: Wed, 8 Jul 2026 19:37:33 +0200 Subject: [PATCH] fix: correct integration test assertions for postgresql create Two bugs in assert_environment_directories_exist: - "plugins" was in the initial required_dirs list AND conditionally appended, causing it to appear twice when plugins_path is not provided - "airflow.db" was expected but postgresql engine creates ".keep" (sqlite3 creates airflow.db); all three tests use the postgresql default - "postgresql_data" directory was not expected but is created by create_database_files() for postgresql engine --- tests/integration/test_create.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/integration/test_create.py b/tests/integration/test_create.py index b5438972..c10ed537 100644 --- a/tests/integration/test_create.py +++ b/tests/integration/test_create.py @@ -49,13 +49,13 @@ def assert_environment_directories_exist( plugins_path: Optional[pathlib.Path] = None, ): assert env_dir.exists() - required_dirs = ["data", "plugins"] + required_dirs = ["data", "postgresql_data"] if dags_path is None: required_dirs.append("dags") if plugins_path is None: required_dirs.append("plugins") required_files = [ - "airflow.db", + ".keep", "config.json", "variables.env", "requirements.txt",