Skip to main content
https://dev.azure.com/astropy-project/pytest-filter-subpackage/_apis/build/status/astropy.pytest-filter-subpackage?branchName=main

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.

Release files for pytest-filter-subpackage 0.2.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for pytest-filter-subpackage 0.2.0
File Size Uploaded
pytest-filter-subpackage-0.2.0.tar.gz 8.1 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for pytest-filter-subpackage 0.2.0
File Interpreter ABI Platform
pytest_filter_subpackage-0.2.0-py2.py3-none-any.whl Python 2, Python 3 none any Details

Total release size: 13.6 kB

Release files / pytest-filter-subpackage-0.2.0.tar.gz

Download URL pytest-filter-subpackage-0.2.0.tar.gz
Size 8.1 kB
Tags Source
SHA-256 checksum
How to use checksums
3f468f1b36518128869b95deab661ba45ed6293854329fef14da4c8cac78af56
BLAKE2b-256 checksum
How to use checksums
82f310d46a1dcd2245854db8654a27e48da727411e88ed4afa7fc24331ff217c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.11.8

Release files / pytest_filter_subpackage-0.2.0-py2.py3-none-any.whl

Download URL pytest_filter_subpackage-0.2.0-py2.py3-none-any.whl
Size 5.5 kB
Tags Python 2 Python 3
SHA-256 checksum
How to use checksums
b4a8c21b52110c3fefe949229c387c18be081132138ca3acc4953869a459b3f6
BLAKE2b-256 checksum
How to use checksums
acf82ed436b6ef3fb46743ba6e562c5421493d695c6534f051420ef2b5a99258
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.11.8

Release history Release notifications | RSS feed

This release

0.2.0 This release

2 release files

0.1.2

2 release files

0.1.1

2 release files

0.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page