A plugin for testing Cython extension modules
Project description
Overview
This pytest plugin allows for the doctesting of C extension modules for Python, specifically created through cython.
Installation
You can install "pytest-cython" via pip from PyPI:
pip install pytest-cython
Usage
Basic usage:
pytest --doctest-cython
You can also run the doctests for a single .pyx
file as such:
pytest --doctest-cython path/to/module.pyx
Note
It is assumed that the C extension modules have been build in place before running py.test
and there is a
matching Cython .pyx
file
Issues
If you encounter any problems, please file an issue along with a detailed description.
Acknowledgements
This pytest plugin was generated with cookiecutter along with @hackebrot's cookiecutter-pytest-plugin and @ionelmc's cookiecutter-pylibrary templates.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for pytest_cython-0.2.1-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f8a06b982f81b213bed912ea77f4fbd5ea2520ccc488c76b0a20bc8248079ba7 |
|
MD5 | c5940d4afe752f608696f213d9ffb4e7 |
|
BLAKE2b-256 | 20e6dd6f6fae2e4e15f2abc5d95da945d5044bb2a4488edc8bd9c8c6a8645376 |