Skip to content

Fix unit tests - #97

Merged
webknjaz merged 1 commit into
ansible-community:mainfrom
felixfontein:upstream-tests
Aug 6, 2025
Merged

webknjaz merged 1 commit into
ansible-community:mainfrom
felixfontein:upstream-tests

Conversation

@felixfontein

Copy link
Copy Markdown
Contributor

They currently fail after the Data Tagging PR has been merged.

Ref: https://forum.ansible.com/t/making-a-collection-compatible-with-data-tagging/41717/2

@felixfontein

Copy link
Copy Markdown
Contributor Author

The other test failures are still due to 21f4673, resp. have been there since that commit was pushed.

@webknjaz

webknjaz commented Aug 6, 2025

Copy link
Copy Markdown
Member

The other test failures are still due to 21f4673, resp. have been there since that commit was pushed.

I think I was trying to fix something related to coverage integrations, but didn't finish. I'll try to remember what exactly.

Comment on lines +59 to +60
with set_module_args({'test': 'foo'}):
with mock.patch.multiple(basic.AnsibleModule, exit_json=exit_json):

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

It might be possible to collapse this into a single with block. But I'll refrain from making this a blocker.

@webknjaz webknjaz left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

I'm force-merging this because it's visible in the CI logs that the related unit-testing command succeeds and the workflow breaks in a different place.

@webknjaz
webknjaz merged commit 34771fc into ansible-community:main Aug 6, 2025
webknjaz added a commit that referenced this pull request Aug 6, 2025
@webknjaz

webknjaz commented Aug 6, 2025

Copy link
Copy Markdown
Member

Follow-up linting fix: b22f955

@felixfontein
felixfontein deleted the upstream-tests branch August 6, 2025 17:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants