Skip to content
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

Class docstring support #4

Open
bitprophet opened this issue Apr 16, 2018 · 0 comments
Open

Class docstring support #4

bitprophet opened this issue Apr 16, 2018 · 0 comments

Comments

@bitprophet
Copy link
Owner

The old spec introspected class docstrings and allowed one to use them to override the displayed text in the class header, so e.g.:

class CantHaveApostrophesInClassNames:
  "Can't have apostrophes in class names"
  def some_test_here_I_guess(self):
    assert True

would show up as:

Can't have apostrophes in class names

- some test here I guess

instead of:

CantHaveApostrophesInClassNames

- some test here I guess

Pytest-relaxed doesn't have this implemented yet, but it'd be nice, e.g. Invoke's test suite was just ported and has "lost" a handful of headers this way (they show up, but are ugly and/or missing useful information.)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant