Skip to content

Add tests for airflowctl utils helpers and module loading - #76271

Merged
shahar1 merged 1 commit into
apache:mainfrom
ZJ-lucky-0915:test/airflowctl-utils
Nov 3, 2026
Merged

shahar1 merged 1 commit into
apache:mainfrom
ZJ-lucky-0915:test/airflowctl-utils

Conversation

@ZJ-lucky-0915

Copy link
Copy Markdown
Contributor

airflowctl/utils/helpers.py and airflowctl/utils/module_loading.py had no
dedicated test modules.

Added unit tests for:

  • import_string: successful import, missing dot path, missing module,
    missing attribute
  • partition: false/true split, empty iterable, and one-shot iterators
    (both sides must see the full input)

Coverage: both modules are now at 100% (7 tests).
No production code changed.


Was generative AI tooling used to co-author this PR?
  • Yes (please specify the tool below)

Generated-by: OpenAI Codex following the Airflow Gen-AI guidelines

I reviewed the generated tests, ran them locally (7 passed, 100% coverage for
both modules), and confirmed they pass ruff check.

@ZJ-lucky-0915

Copy link
Copy Markdown
Contributor Author

Hi! The workflows on this PR are awaiting approval.
Could someone approve them when convenient? Thanks!

@shahar1
shahar1 merged commit ff22d73 into apache:main Nov 3, 2026
92 checks passed
@github-actions

github-actions Bot commented Nov 3, 2026

Copy link
Copy Markdown
Contributor

Backport successfully created: airflow-ctl/v0-1-test

Note: As of Merging PRs targeted for Airflow 3.X
the committer who merges the PR is responsible for backporting the PRs that are bug fixes (generally speaking) to the maintenance branches.

In matter of doubt please ask in #release-management Slack channel.

Status Branch Result
✅ airflow-ctl/v0-1-test PR Link

shahar1 pushed a commit that referenced this pull request Nov 3, 2026
…dule loading (#76271) (#76379)

(cherry picked from commit ff22d73)

Co-authored-by: ZJ-lucky-0915 <[email protected]>
shahar1 pushed a commit to shahar1/airflow that referenced this pull request Nov 4, 2026
…dule loading (apache#76271) (apache#76379)

(cherry picked from commit ff22d73)

Co-authored-by: ZJ-lucky-0915 <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants