pytest-astropy 0.11.0


pip install pytest-astropy

  Latest version

Released: Sep 26, 2023

Project Links

Meta
Author: The Astropy Developers
Requires Python: >=3.7

Classifiers

Development Status
  • 5 - Production/Stable

Framework
  • Pytest
  • Hypothesis

Intended Audience
  • Developers

License
  • OSI Approved :: BSD License

Operating System
  • OS Independent

Programming Language
  • Python
  • Python :: 3
  • Python :: 3 :: Only
  • Python :: 3.7
  • Python :: 3.8
  • Python :: Implementation :: CPython

Topic
  • Software Development :: Testing
  • Utilities
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.

Wheel compatibility matrix

Platform Python 3
any

Files in release

Extras: None
Dependencies:
pytest (>=4.6)
pytest-doctestplus (>=1.0.0)
pytest-remotedata (>=0.4.1)
pytest-astropy-header (>=0.2.2)
pytest-arraydiff (>=0.5)
pytest-filter-subpackage (>=0.1.2)
pytest-cov (>=2.3.1)
pytest-mock (>=2.0)
attrs (>=19.2.0)
hypothesis (>=5.1)