Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[PR #5350/fa924aae backport][stable-5] Prepare un-flatmapping #5427

Conversation

patchback[bot]
Copy link

@patchback patchback bot commented Oct 26, 2022

This is a backport of PR #5350 as merged into main (fa924aa).

SUMMARY

Prepares un-flatmapping. When collapsing the tests/unit/plugins/modules directory tree, there are some clashes because there are different conftest.py files in the tree structure. This PR renames these conftest.py files (and adjusts the importing code), as well as renaming the single currently existing fixtures directory by prepending it with the module name.

With these changes, https://gist.github.com/felixfontein/3123dcdf446c9e140949a0589cceb99d can remove flatmapping and at least the Python 3.10 unit tests still pass :)

Ref: ansible-community/community-topics#147

ISSUE TYPE
  • Bugfix Pull Request
  • Feature Pull Request
COMPONENT NAME

unit tests

* Add module name into fixtures directory name.

* Rename conftest.py to avoid collisions.

* Match filenames inside directories.

(cherry picked from commit fa924aa)
@patchback patchback bot mentioned this pull request Oct 26, 2022
@ansibullbot
Copy link
Collaborator

@patchback[bot] This PR was evaluated as a potentially problematic PR for the following reasons:

  • More than 50 changed files.

Such PR can only be merged by human. Contact a Core team member to review this PR on IRC: #ansible-devel on Libera.chat IRC

click here for bot help

@ansibullbot ansibullbot added backport bug This issue/PR relates to a bug needs_rebase https://docs.ansible.com/ansible/devel/dev_guide/developing_rebasing.html needs_revision This PR fails CI tests or a maintainer has requested a review/revision of the PR new_contributor Help guide this first time contributor labels Oct 26, 2022
@felixfontein felixfontein merged commit 833530a into stable-5 Oct 26, 2022
@felixfontein felixfontein deleted the patchback/backports/stable-5/fa924aae31c1675bcf4adb2a9ac56711af71f5eb/pr-5350 branch October 26, 2022 06:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug This issue/PR relates to a bug needs_rebase https://docs.ansible.com/ansible/devel/dev_guide/developing_rebasing.html needs_revision This PR fails CI tests or a maintainer has requested a review/revision of the PR new_contributor Help guide this first time contributor
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants