-
Notifications
You must be signed in to change notification settings - Fork 17
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
Env util helper get_path
#73
Conversation
Minimum allowed coverage is Generated by 🐒 cobertura-action against f6c24ab |
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.
Nice! See related plans to improve the environment getters: #47
I just recalled that this is the only thing we have type tests for, which is nice to have because it verifies that the exposed typing is correct. Would you mind adding a case for Path as well? https://github.com/5monkeys/django-bananas/blob/master/tests/test_env.yaml |
We want to test that:
|
Based on a suggestion from @flaeppe, this adds a method to the environment parsing helper that allows parsing strings as a
pathlib.Path
.