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 some tests for the repository assets wrangling options #36

Merged
merged 5 commits into from
Oct 16, 2023
Merged

Conversation

gridhead
Copy link
Member

@gridhead gridhead commented Oct 16, 2023

Merge this pull request after merging #32, please

Fixes #37

@gridhead gridhead self-assigned this Oct 16, 2023
Copy link

@samyak-jn samyak-jn left a comment

Choose a reason for hiding this comment

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

I just have one query here, otherwise test case and the code seems okay to me!

standard.sbrcavbl = list(brcslist)
return True, brcslist
else:
return False, "Cloned source namespace assets could not be found"

Choose a reason for hiding this comment

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

I see we have removed the try blocks and expectations area, was there any specific reason for it? The removal of the try-except block means that any exceptions occurring within this code will propagate up to the caller without being handled.

Copy link
Member Author

Choose a reason for hiding this comment

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

@samyak-jn, yes and the caller is capable of handling the exception.

Adding exception handling in both places, i.e. the caller and the driver makes less sense and makes it difficult to reproduce tests related to them.

Choose a reason for hiding this comment

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

Coolio, makes sense!

@gridhead gridhead merged commit 9c905d9 into main Oct 16, 2023
5 checks passed
@gridhead gridhead deleted the repotest branch October 16, 2023 16:12
@gridhead gridhead added the enhancement New feature or request label Oct 17, 2023
gridhead added a commit that referenced this pull request Dec 13, 2023
Add some tests for the repository assets wrangling options
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add testing for repository assets wrangling options
2 participants