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

Add collection meta code #168

Merged
merged 6 commits into from
Sep 12, 2024

Conversation

felixfontein
Copy link
Collaborator

@felixfontein felixfontein commented Sep 10, 2024

@felixfontein felixfontein marked this pull request as ready for review September 10, 2024 22:12
removal:
major_version: 11
reason: other
reason_text: The collection wasn't cow friendly, so the Steering Committee decided to kick it out.
Copy link
Collaborator

Choose a reason for hiding this comment

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

Moo

collection_metadata: str,
all_collections: list[str],
expected_errors: list[str],
tmp_path,
Copy link
Collaborator

Choose a reason for hiding this comment

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

I usually annotate fixtures (and import Path from pathlib in this case), but that's up to you.

Suggested change
tmp_path,
tmp_path: Path,

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Comment on lines 145 to 146
if not os.path.exists(collection_meta_path):
return [f"Cannot find {collection_meta_path}"]
Copy link
Collaborator

Choose a reason for hiding this comment

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

Noticing this now: it would be more efficient if this was moved to the top of the function.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Originally the path was only composed at this point, so it maked sense to have that test there. Since it's now passed in, it definitely makes sense!

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

tests/functional/test_collection_meta.py Outdated Show resolved Hide resolved
Copy link
Collaborator

@gotmax23 gotmax23 left a comment

Choose a reason for hiding this comment

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

Approved!

tests/functional/test_collection_meta.py Outdated Show resolved Hide resolved
Co-authored-by: Maxwell G <[email protected]>
@felixfontein felixfontein merged commit aaa330d into ansible-community:main Sep 12, 2024
5 checks passed
@felixfontein felixfontein deleted the collection-meta branch September 12, 2024 08:45
@felixfontein
Copy link
Collaborator Author

@gotmax23 thanks for reviewing this!

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