pchomik / pytest-spec

Library pytest-spec is a pytest plugin to display test execution output like a SPECIFICATION.
GNU General Public License v2.0
100 stars 19 forks source link

Add support for multiline docstrings #42

Closed b0g3r closed 3 years ago

b0g3r commented 3 years ago

In many styleguides multiline docstrings should look like:

"""
First line with title.

Long and boring text with additional information...
"""

But because docstring_summary splits docstring by newlines and catches only the first line it will be empty in such cases.

So I added tests for that scenario and workaround with lstrip()

pchomik commented 3 years ago

Thanks @b0g3r for pull request.