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 #9675/4a31c753 backport][stable-10] test helper: remove magically finding the testcasemock in the test module #9677

Conversation

patchback[bot]
Copy link

@patchback patchback bot commented Feb 3, 2025

This is a backport of PR #9675 as merged into main (4a31c75).

SUMMARY

Remove unnecessary magic function to retrieve a reference to the TestCaseMock class from the test module, instead relying on the user passing that reference when instantiating Helper.

ISSUE TYPE
  • Test Pull Request
COMPONENT NAME

tests/unit/plugins/modules/helper.py

@ansibullbot ansibullbot added backport new_contributor Help guide this first time contributor tests tests unit tests/unit labels Feb 3, 2025
@felixfontein felixfontein merged commit 6e48528 into stable-10 Feb 3, 2025
138 checks passed
@felixfontein felixfontein deleted the patchback/backports/stable-10/4a31c753e72b665882a7b4e803d729f946446201/pr-9675 branch February 3, 2025 06:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport new_contributor Help guide this first time contributor tests tests unit tests/unit
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants