Skip to main content

Pytest plugin for filtering based on sub-packages

Project description

https://dev.azure.com/astropy-project/pytest-filter-subpackage/_apis/build/status/astropy.pytest-filter-subpackage?branchName=master

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

pytest-filter-subpackage-0.1.1.tar.gz (6.5 kB view details)

Uploaded Source

Built Distribution

pytest_filter_subpackage-0.1.1-py2.py3-none-any.whl (5.1 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file pytest-filter-subpackage-0.1.1.tar.gz.

File metadata

  • Download URL: pytest-filter-subpackage-0.1.1.tar.gz
  • Upload date:
  • Size: 6.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/42.0.2 requests-toolbelt/0.9.1 tqdm/4.39.0 CPython/3.8.0

File hashes

Hashes for pytest-filter-subpackage-0.1.1.tar.gz
Algorithm Hash digest
SHA256 b7d8fc3a42989b652032e6b0998a87dd00d43bf2b013ba5d2e86f930da149ae8
MD5 319b19ffc7e9de77f54febf1b1718074
BLAKE2b-256 33724efb1b7b06ca9ebfc547df289c50ca60443203766c467307a8315ecee44c

See more details on using hashes here.

File details

Details for the file pytest_filter_subpackage-0.1.1-py2.py3-none-any.whl.

File metadata

  • Download URL: pytest_filter_subpackage-0.1.1-py2.py3-none-any.whl
  • Upload date:
  • Size: 5.1 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/42.0.2 requests-toolbelt/0.9.1 tqdm/4.39.0 CPython/3.8.0

File hashes

Hashes for pytest_filter_subpackage-0.1.1-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 75c49105ec3d7850606d63ef1d583427140d2b71c39540633cb22dffd8da1ddb
MD5 73bfb4565b090ace73029e8908d83407
BLAKE2b-256 a70fa9625b73f6dde09bf766123bf9e98b97018a8cc36d564553ec6484b5349a

See more details on using hashes here.

Supported by

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