ZJ-lucky-0915 opened a new pull request, #76271:
URL: https://github.com/apache/airflow/pull/76271
`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?
- [x] Yes (please specify the tool below)
Generated-by: OpenAI Codex following the [Airflow Gen-AI
guidelines](https://github.com/apache/airflow/blob/main/contributing-docs/05_pull_requests.rst#gen-ai-assisted-contributions)
I reviewed the generated tests, ran them locally (7 passed, 100% coverage for
both modules), and confirmed they pass `ruff check`.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]