Message292406
> This is because unittest.TestCase method `shortDescription()` will only return the first line of docstring
Yes, that is the “docstring synopsis” I referred to. PEP 257 has a section specifically about how tools should parse a docstring: https://www.python.org/dev/peps/pep-0257/#handling-docstring-indentation
In particular, note that “ Blank lines should be removed from the beginning and end of the docstring.”
So, the “first line of the docstring“ for the example ‘test_reverse_returns_expected_text’ is the text “Should return expected reverse text.”. |
|
Date |
User |
Action |
Args |
2017-04-27 06:10:11 | benf_wspdigital | set | recipients:
+ benf_wspdigital, brian, louielu |
2017-04-27 06:10:11 | benf_wspdigital | set | messageid: <1493273411.86.0.697759251745.issue30181@psf.upfronthosting.co.za> |
2017-04-27 06:10:11 | benf_wspdigital | link | issue30181 messages |
2017-04-27 06:10:11 | benf_wspdigital | create | |
|