plone / plone.app.redirector

Redirects to moved content after accessing old URLs
https://pypi.python.org/pypi/plone.app.redirector
4 stars 4 forks source link

Replace doctests by plain unittests. #12

Closed mauritsvanrees closed 5 years ago

mauritsvanrees commented 5 years ago

unittests are cool, doctests are old-school. I am working on this.

djay commented 5 years ago

you can have the best of both worlds by using a test module with doctests split up into method comments so they are isolated.

mauritsvanrees commented 5 years ago

Doctests are fine when they are actually documentation that is visible on for example PyPI. In this case it is not. Anyway, the PR is merged. :-)