-
Notifications
You must be signed in to change notification settings - Fork 886
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
populate pshell's env_help with docstring of values #1929
Conversation
Please fix coverage in tests, and repush to this PR: https://travis-ci.org/Pylons/pyramid/jobs/84021793 |
I'm not familiar with this CI system, can you give any suggestions about what's the issue and how to repro? |
@jessedhillon It's not really the CI, it's the lack of coverage for this feature. To avoid this, always run tests locally before committing. Instructions are in HACKING.txt. For this specific error, click Details then click on the failing job. Here's the pertinent line. Note to self, I think I need to finally get around to creating that contributing guidelines file for Pyramid. |
Sure, Travis CI just runs all of our tox environments, you can do so locally too:
You'll need to make sure that you have both Python 2 (as a binary named python2.7) and Python 3 (as python3.4) installed. This will run the tests under python 2, collecting information about what lines are covered/not covered, then as python 3 and find out what lines are covered/not covered by tests, and then the last one will merge the two results so that any python 2 or python 3 only code paths don't count against the total lines covered. |
I see what's going on now, thanks. It's complaining that there's no test that touches the case where the object has a falsy docstring. I'll add that test and resubmit. Aside from the test, do you have any comments on the feature itself or the way it's been implemented? |
Nope, looks good to me :-). |
Sorry, I should have been better about including what was wrong, rather than just giving you a link to Travis. That's my bad! |
37c4e47
to
8d9358a
Compare
No worries, I saw the build was failing but didn't really understand the output of the test runner because I was looking for a failing test. I've added a test (did a forced push, didn't want to create a new commit for two lines) that adds |
Pyramid is the only sane framework AFAIAC, so I'm happy to be able to make a contribution and look forward to making more. |
Last but not least to speed up getting this accepted, add a commit that signs Looks good 👍 |
8d9358a
to
1c1c908
Compare
Signed |
@mmerickel This is good to go :-) |
Great, I'll merge this when I have a second to backport it to 1.6-branch and update the changelog. |
populate pshell's env_help with docstring of values
This changes
pshell
to check the docstring of values assigned toenv
, and if present, use it to as the value forenv_help
for that value instead of therepr
. For example:Before
After
SooooOOO nice!
💇 👯 👍