Pytest plugin for filtering based on sub-packages
Project description
This package contains a simple plugin for the pytest framework that provides a shortcut to testing all code and documentation for a given sub-package.
Installation
The pytest-filter-subpackage plugin can be installed using pip:
$ pip install pytest-filter-subpackage
It is also possible to install the latest development version from the source repository:
$ git clone https://github.com/astropy/pytest-filter-subpackage $ cd pytest-filter-subpackage $ pip install .
In either case, the plugin will automatically be registered for use with pytest.
Usage
This plugin provides a -P option which takes a comma-separated list of sub-package names (without the top-level package name):
pytest -P wcs,io.fits
which is equivalent to:
pytest **/wcs **/io/fits
When used in conjunction with pytest-doctestplus this will result in both the narrative documentation and code being tested for a given sub-package.
License
This plugin is licensed under a 3-clause BSD style license - see the LICENSE.rst file.
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
Built Distribution
Hashes for pytest-filter-subpackage-0.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | c65482f42ffd3262bc35864d5f5e13cafb39c2a5a256a9adde36eb111c57355c |
|
MD5 | 462b9d36d3a105b5a8bd258335fe7b85 |
|
BLAKE2b-256 | 0844f788a16091079089303e021abb99655756c4f53149eb360ab90d09e13bf0 |
Hashes for pytest_filter_subpackage-0.1-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 35dd8e6c9543634ed6ef7c53aaa7edb59459055bb20e370584094c9026545a41 |
|
MD5 | c15bd9f364e205625dd0eeafe9530d78 |
|
BLAKE2b-256 | d86e5223667342d3e78b1bb5425708e60f7ee1356ed1fdf7dd73ef83ce48fe9f |