-
Notifications
You must be signed in to change notification settings - Fork 14
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 version pins #192
Fix version pins #192
Conversation
please lets get 100% unit tests on this code (including the last PR that introduced this), since I think it will be very hard to understand in the future |
b63086e
to
7871311
Compare
I added some unit tests. Please let me know if any other tests could be added to increase coverage. |
@nanglo123 you'll need to mock the environment variables for these tests to be meaningful. I'd suggest encapsulating all of the logic that handles the environment variable in a function so you can test it separately |
@cthoyt Are these changes more in line with what you expect? Let me know if anything could be improved. |
@cthoyt Let me know if anything else could be improved. |
@nanglo123 please get 100% test coverage for your changes |
@cthoyt Sorry I forgot to do that before. Let me know if anything else can be improved. |
thanks @nanglo123 for the updates! |
This PR fixes a bug where
VERSION_PINS
is always set to an empty dictionary due to a misaligned indent. We also handle invalid prefixes and version datatypes more gracefully and make the logger more informative.