Skip to main content

A plugin for testing Cython extension modules

Project description

Overview

docs

Documentation Status

tests

Travis-CI Build Status

package

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

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


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.0.tar.gz (16.2 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.0-py2.py3-none-any.whl (6.5 kB view details)

Uploaded Python 2Python 3

File details

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

File metadata

  • Download URL: pytest-cython-0.2.0.tar.gz
  • Upload date:
  • Size: 16.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/34.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.9 tqdm/4.63.1 importlib-metadata/4.11.3 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.9.1

File hashes

Hashes for pytest-cython-0.2.0.tar.gz
Algorithm Hash digest
SHA256 66bb288585f91d10aec723441db503c466b11edf7060e413ff96f7fd3bced1a4
MD5 4efc5b43e0b10f3995f14bda0eeebce0
BLAKE2b-256 3449d51eaf0e39f70d731a71f6344b2ab1d333e2b8fdc7b346cfbb871a8768cd

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pytest_cython-0.2.0-py2.py3-none-any.whl
  • Upload date:
  • Size: 6.5 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/34.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.9 tqdm/4.63.1 importlib-metadata/4.11.3 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.9.1

File hashes

Hashes for pytest_cython-0.2.0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 8140940695ad0485b23a5fa1b39c3e744936fbf63a61f21b1be4d7911d4e2a09
MD5 930d0546433650a28fa3e77d25a5b6b5
BLAKE2b-256 cfe99534c05d2d6b1f1e279addb40f2d872a2c24d9c37f96169598afbc004a61

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