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

Fix unit tests #2212

Merged

Conversation

tremble
Copy link
Contributor

@tremble tremble commented Jan 22, 2025

SUMMARY

Quick fix for unit test failures following ansible-collections/amazon.aws#2444

ISSUE TYPE
  • Bugfix Pull Request
COMPONENT NAME
ADDITIONAL INFORMATION

@tremble tremble requested a review from abikouo January 22, 2025 16:42
Copy link
Contributor

@abikouo abikouo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Contributor

Build succeeded.
https://ansible.softwarefactory-project.io/zuul/buildset/5d8e3161940443ce9172db8ececc6d0b

ansible-galaxy-importer FAILURE in 4m 35s (non-voting)
✔️ build-ansible-collection SUCCESS in 10m 19s

@tremble
Copy link
Contributor Author

tremble commented Jan 22, 2025

You can move the fixture to the conftest.py file like I did here
https://github.com/ansible-collections/community.aws/pull/2211/files#diff-2061d2675ad59dc75b2892a0a098a2cc32fc01911feaecabfe2fd02e3497d957

pytest was refusing to find them when I tried. I wanted to get a "quickfix" in and then have a larger cleanup of the unit tests as a follow-up

@abikouo abikouo added the mergeit Merge the PR (SoftwareFactory) label Jan 22, 2025
Copy link
Contributor

Build succeeded (gate pipeline).
https://ansible.softwarefactory-project.io/zuul/buildset/71463b5962524f27973c3dde23ab0665

ansible-galaxy-importer FAILURE in 5m 19s (non-voting)
✔️ build-ansible-collection SUCCESS in 10m 08s

@softwarefactory-project-zuul softwarefactory-project-zuul bot merged commit 959855c into ansible-collections:main Jan 22, 2025
82 of 83 checks passed
Copy link

patchback bot commented Jan 22, 2025

Backport to stable-9: 💚 backport PR created

✅ Backport PR branch: patchback/backports/stable-9/959855c933b03378d29305b9bd1b4ce869981924/pr-2212

Backported as #2213

🤖 @patchback
I'm built with octomachinery and
my source is open — https://github.com/sanitizers/patchback-github-app.

patchback bot pushed a commit that referenced this pull request Jan 22, 2025
SUMMARY
Quick fix for unit test failures following ansible-collections/amazon.aws#2444
ISSUE TYPE

Bugfix Pull Request

COMPONENT NAME
ADDITIONAL INFORMATION

Reviewed-by: Bikouo Aubin
(cherry picked from commit 959855c)
softwarefactory-project-zuul bot pushed a commit that referenced this pull request Jan 28, 2025
SUMMARY
As discussed in #2212 cleans up the unit tests to move importing some of the fixtures into conftest.py
tox configs needed a little cleanup to ensure that things were consistently in the import path.
ISSUE TYPE

Feature Pull Request

COMPONENT NAME
pyproject.toml
tests/unit/conftest.py
tests/unit/plugins/
tox.ini
ADDITIONAL INFORMATION

Reviewed-by: Bikouo Aubin
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport-9 mergeit Merge the PR (SoftwareFactory)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants