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
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-filter-subpackage-0.1.2.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1faea36717803e524588d6c109d26d20d3b34422e8d6a96812758977dca01782 |
|
MD5 | 9f99964c03d1db97936db4a683539146 |
|
BLAKE2b-256 | a9962bcf7875a3c0ea6a80b1da8bc85c5e29f66043ed8abafd8ea26a08b48ed0 |
Hashes for pytest_filter_subpackage-0.1.2-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 39a1fb6f559e0579851c1e447d3c876f6a5c2e49ab356c568b90e4f5b0d4a19e |
|
MD5 | 5906ffd7731f500ba9c1a0c5a2f325f2 |
|
BLAKE2b-256 | f02367097daf438eef3b4c7bf90939445e89983801c1c40e2c377ebd234c55ad |