pytest-doctest-ellipsis-markers 0.1.0

Creator: bradpython12

Last updated:

Add to Cart

Description:

pytestdoctestellipsismarkers 0.1.0

Setup additional values for ELLIPSIS_MARKER for doctests

This Pytest plugin was generated with Cookiecutter along with @hackebrot’s Cookiecutter-pytest-plugin template.

Features
Doctest has problems with matching default ELLIPSIS_MARKER at the begging of line and
interprets them as line continuation characters and not as ellipsis for the output.
The easy way was to use # doctest: +SKIP:
>>> u'Tanie dranie niesłychanie' # doctest: +SKIP
...
Without SKIP it would not work. But then the statement is not tested :(
This plugin cant extend ELLIPSIS_MARKER mathing a little
without actually changing the default ELLIPSIS_MARKER value:
>>> u'Adios pomidory'
'...'


Installation
You can install “pytest-doctest-ellipsis-markers” via pip from PyPI:
$ pip install pytest-doctest-ellipsis-markers


Usage
By default the markers below will be treated as ELLIPSIS_MARKER, to change them
add doctest_ellipsis_markers to your ini style configuration.
[pytest]
doctest_ellipsis_markers = [...] '...' "..."


Contributing
Contributions are very welcome. Tests can be run with tox, please ensure
the coverage at least stays the same before you submit a pull request.


License
Distributed under the terms of the MIT license, “pytest-doctest-ellipsis-markers” is free and open source software


Issues
If you encounter any problems, please file an issue along with a detailed description.

License

For personal and professional use. You cannot resell or redistribute these repositories in their original state.

Customer Reviews

There are no reviews.