Skip to content

fix: correct integration test assertions for postgresql create#144

Open
tpwo wants to merge 1 commit into
GoogleCloudPlatform:developmentfrom
tpwo:fix-integration-tests
Open

fix: correct integration test assertions for postgresql create#144
tpwo wants to merge 1 commit into
GoogleCloudPlatform:developmentfrom
tpwo:fix-integration-tests

Conversation

@tpwo

@tpwo tpwo commented Jul 10, 2026

Copy link
Copy Markdown
Contributor

Fix two problems 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

New PR

Thank you for contributing!

  • (CONFIRMED) All contributions have to be merged to the development branch, please
    make sure you set it as the target of this PR.
  • (CONFIRMED) Confirm you ran pytest tests and all the unit tests are green.

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant