-
Notifications
You must be signed in to change notification settings - Fork 35
Refactor and Simplify Main Unit Tests #201
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
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM overall, just a few other small things which I think we can tidy up. Generally, we should probably be using T.Setenv instead of os.Setenv directly.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, thanks :)
Motivation / Summary
This PR resolves #179, and contains changes that were taken out of #191 for focus purposes.
Changes
24a5a89 remove
testify.Suitein favor of self-sufficient tests, whose teardown is handled byT.Cleanup()7129e46 uses
assert.Containsas intended by remove useless boolean assertionsOlder commits are irrelevant, as they were merged as part of #191