Skip to main content

Meta-package containing dependencies for testing

Project description

Zenodo DOI

This is a meta-package that pulls in the dependencies that are used by astropy and some affiliated packages for testing. It can also be used for testing packages that are not affiliated with the Astropy project.

This package also provides pytest markers for cpu and memory intensive tests (pytest.mark.slow and pytest.mark.hugemem). Tests marked with those markers are not run by default, can be run with the other tests with --run-slow and --run-hugemem, and can be run separately with -m slow and -m hugemem.

The package also provides the short option -R for --remote-data.

Dependencies

The following dependencies are installed by this package:

  • The pytest testing framework for Python.

  • pytest-astropy-header, a pytest plugin used for custom test header.

  • pytest-remotedata, a pytest plugin used for controlling access to data files hosted online.

  • pytest-doctestplus, a pytest plugin that provides advanced features for testing example code in documentation.

  • pytest-arraydiff, a pytest plugin that enables the generation and comparison of data arrays produced during unit tests.

  • pytest-filter-subpackage, a pytest plugin that adds a -P option to pytest to filter by sub-package.

  • pytest-mock, a thin-wrapper around the mock package for easier use with pytest.

  • pytest-cov, a pytest plugin to measure test coverage.

  • hypothesis, a Python library for property based testing.

Installation

The pytest-astropy plugin can be installed using pip:

$ pip install pytest-astropy

It is also possible to install the latest development version from the source repository:

$ git clone https://github.com/astropy/pytest-astropy
$ cd pytest-astropy
$ python ./setup.py install

In either case, the plugin will automatically be registered for use with pytest.

Development Status

Questions, bug reports, and feature requests can be submitted on github.

License

This package 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-astropy-0.11.0.tar.gz (6.3 kB view details)

Uploaded Source

Built Distribution

pytest_astropy-0.11.0-py3-none-any.whl (5.2 kB view details)

Uploaded Python 3

File details

Details for the file pytest-astropy-0.11.0.tar.gz.

File metadata

  • Download URL: pytest-astropy-0.11.0.tar.gz
  • Upload date:
  • Size: 6.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.5

File hashes

Hashes for pytest-astropy-0.11.0.tar.gz
Algorithm Hash digest
SHA256 4eaeaa99ed91163ed8f9aac132c70a81f25bc4c12f3cd54dba329fc26c6739b5
MD5 51cfee1d56dbe731f1d65b752d2d567f
BLAKE2b-256 e1a8dbe3cead1ebc25b0164af7cfde4b3d1693f6ab05de156667c836732d1f4c

See more details on using hashes here.

Provenance

File details

Details for the file pytest_astropy-0.11.0-py3-none-any.whl.

File metadata

File hashes

Hashes for pytest_astropy-0.11.0-py3-none-any.whl
Algorithm Hash digest
SHA256 5b9404cfa85bd815af86da78bd7d50d451419021bff27b127418886f85ae9ffa
MD5 fd238e409e2d171f54175eb7941ceaf9
BLAKE2b-256 cf05d6e2068e99c4ca69986844d68c82c4c08379296430e355a3756c51a55f73

See more details on using hashes here.

Provenance

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