Skip to main content

A plugin for testing Cython extension modules

Project description

Overview

PyPI Package latest release PyPI Package monthly downloads PyPI Wheel Supported versions Supported implementations

CI Check Status CI Tests Status Documentation Status

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pytest-cython-0.2.1.tar.gz (16.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pytest_cython-0.2.1-py2.py3-none-any.whl (6.4 kB view details)

Uploaded Python 2Python 3

File details

Details for the file pytest-cython-0.2.1.tar.gz.

File metadata

  • Download URL: pytest-cython-0.2.1.tar.gz
  • Upload date:
  • Size: 16.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.11.2

File hashes

Hashes for pytest-cython-0.2.1.tar.gz
Algorithm Hash digest
SHA256 38d10faee6fc974a9240dccf9f85dc2534baf6be6e02a3fc77a9db8b6a5b0558
MD5 104dfb0dfff506835cdc66f897efd6e9
BLAKE2b-256 d8c33d36b558b624d3a2846d215667672dd4e468ee91066fc71074d16062171d

See more details on using hashes here.

File details

Details for the file pytest_cython-0.2.1-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for pytest_cython-0.2.1-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 f8a06b982f81b213bed912ea77f4fbd5ea2520ccc488c76b0a20bc8248079ba7
MD5 c5940d4afe752f608696f213d9ffb4e7
BLAKE2b-256 20e6dd6f6fae2e4e15f2abc5d95da945d5044bb2a4488edc8bd9c8c6a8645376

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page