A plugin for testing Cython extension modules
Project description
Overview
docs |
|
---|---|
tests |
|
package |
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 like:
pytest --doctest-cython path/to/module.pyx
Note
It is assumed that the C extension modules have been build inplace before running py.test and there is a matching Cython .pyx file
License
Free software: MIT license
Distributed under the terms of the MIT license, “pytest-cython” is free and open source software
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.0-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8140940695ad0485b23a5fa1b39c3e744936fbf63a61f21b1be4d7911d4e2a09 |
|
MD5 | 930d0546433650a28fa3e77d25a5b6b5 |
|
BLAKE2b-256 | cfe99534c05d2d6b1f1e279addb40f2d872a2c24d9c37f96169598afbc004a61 |