==============
pytest-astropy
==============
.. image:: https://zenodo.org/badge/104255122.svg
:target: https://zenodo.org/badge/latestdoi/104255122
:alt: 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 ``-n hugemem``.
.. _astropy: https://docs.astropy.org/en/latest/
.. _affiliated packages: https://astropy.org/affiliated
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-openfiles`_, a ``pytest`` plugin for detecting file handles that were
inadvertently left open at the end of unit tests.
* `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.
.. _pytest: https://doc.pytest.org
.. _pytest-astropy-header: https://github.com/astropy/pytest-astropy-header
.. _pytest-remotedata: https://github.com/astropy/pytest-remotedata
.. _pytest-doctestplus: https://github.com/astropy/pytest-doctestplus
.. _pytest-openfiles: https://github.com/astropy/pytest-openfiles
.. _pytest-arraydiff: https://github.com/astropy/pytest-arraydiff
.. _pytest-filter-subpackage: https://github.com/astropy/pytest-filter-subpackage
.. _pytest-mock: https://github.com/pytest-dev/pytest-mock
.. _pytest-cov: https://github.com/pytest-dev/pytest-cov
.. _hypothesis: https://hypothesis.readthedocs.io
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`_.
.. _github: https://github.com/astropy/pytest-astropy
License
-------
This package is licensed under a 3-clause BSD style license - see the
``LICENSE.rst`` file.
Raw data
{
"_id": null,
"home_page": "https://github.com/astropy/pytest-astropy",
"name": "pytest-astropy",
"maintainer": "",
"docs_url": null,
"requires_python": ">=3.7",
"maintainer_email": "",
"keywords": "pytest,remotedata,openfiles,doctestplus,hypothesis,property-based testing",
"author": "The Astropy Developers",
"author_email": "astropy.team@gmail.com",
"download_url": "https://files.pythonhosted.org/packages/7c/ff/7eaad84f83383efef7b86883228334273bf6ab6c286b2f6c086140189976/pytest-astropy-0.10.0.tar.gz",
"platform": null,
"description": "==============\npytest-astropy\n==============\n\n.. image:: https://zenodo.org/badge/104255122.svg\n :target: https://zenodo.org/badge/latestdoi/104255122\n :alt: Zenodo DOI\n\nThis is a meta-package that pulls in the dependencies that are used by\n`astropy`_ and some `affiliated packages`_ for testing. It can also be used for\ntesting packages that are not affiliated with the Astropy project.\n\nThis package also provides pytest markers for cpu and memory intensive tests\n(``pytest.mark.slow`` and ``pytest.mark.hugemem``). Tests marked with those\nmarkers are not run by default, can be run with the other tests with\n``--run-slow`` and ``--run-hugemem``, and can be run separately with ``-m slow``\nand ``-n hugemem``.\n\n.. _astropy: https://docs.astropy.org/en/latest/\n.. _affiliated packages: https://astropy.org/affiliated\n\nDependencies\n------------\n\nThe following dependencies are installed by this package:\n\n* The `pytest`_ testing framework for Python.\n* `pytest-astropy-header`_, a ``pytest`` plugin used for custom test header.\n* `pytest-remotedata`_, a ``pytest`` plugin used for controlling access to data\n files hosted online.\n* `pytest-doctestplus`_, a ``pytest`` plugin that provides advanced features\n for testing example code in documentation.\n* `pytest-openfiles`_, a ``pytest`` plugin for detecting file handles that were\n inadvertently left open at the end of unit tests.\n* `pytest-arraydiff`_, a ``pytest`` plugin that enables the generation and\n comparison of data arrays produced during unit tests.\n* `pytest-filter-subpackage`_, a ``pytest`` plugin that adds a ``-P`` option to\n pytest to filter by sub-package.\n* `pytest-mock`_, a thin-wrapper around the mock package for easier use\n with ``pytest``.\n* `pytest-cov`_, a ``pytest`` plugin to measure test coverage.\n* `hypothesis`_, a Python library for property based testing.\n\n.. _pytest: https://doc.pytest.org\n.. _pytest-astropy-header: https://github.com/astropy/pytest-astropy-header\n.. _pytest-remotedata: https://github.com/astropy/pytest-remotedata\n.. _pytest-doctestplus: https://github.com/astropy/pytest-doctestplus\n.. _pytest-openfiles: https://github.com/astropy/pytest-openfiles\n.. _pytest-arraydiff: https://github.com/astropy/pytest-arraydiff\n.. _pytest-filter-subpackage: https://github.com/astropy/pytest-filter-subpackage\n.. _pytest-mock: https://github.com/pytest-dev/pytest-mock\n.. _pytest-cov: https://github.com/pytest-dev/pytest-cov\n.. _hypothesis: https://hypothesis.readthedocs.io\n\nInstallation\n------------\n\nThe ``pytest-astropy`` plugin can be installed using ``pip``::\n\n $ pip install pytest-astropy\n\nIt is also possible to install the latest development version from the source\nrepository::\n\n $ git clone https://github.com/astropy/pytest-astropy\n $ cd pytest-astropy\n $ python ./setup.py install\n\nIn either case, the plugin will automatically be registered for use with\n``pytest``.\n\nDevelopment Status\n------------------\n\nQuestions, bug reports, and feature requests can be submitted on `github`_.\n\n.. _github: https://github.com/astropy/pytest-astropy\n\nLicense\n-------\nThis package is licensed under a 3-clause BSD style license - see the\n``LICENSE.rst`` file.\n\n\n",
"bugtrack_url": null,
"license": "BSD",
"summary": "Meta-package containing dependencies for testing",
"version": "0.10.0",
"split_keywords": [
"pytest",
"remotedata",
"openfiles",
"doctestplus",
"hypothesis",
"property-based testing"
],
"urls": [
{
"comment_text": "",
"digests": {
"md5": "139997c45ab71c2d7e3daea23f6d807f",
"sha256": "0b046ddeaa9e61356bd121d91f86e8b745f00b8f7cec41fc9d9502770bf17926"
},
"downloads": -1,
"filename": "pytest_astropy-0.10.0-py3-none-any.whl",
"has_sig": false,
"md5_digest": "139997c45ab71c2d7e3daea23f6d807f",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">=3.7",
"size": 5061,
"upload_time": "2022-04-12T19:38:52",
"upload_time_iso_8601": "2022-04-12T19:38:52.070173Z",
"url": "https://files.pythonhosted.org/packages/da/e0/fd2bab9dcf0a2e8103a76b4b365cd75b92937fbc39c64aeed7db1bc8fa3f/pytest_astropy-0.10.0-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"md5": "23eafccddbeffaef5c0701e42f8fb048",
"sha256": "85e3c66ceede4ce668f473b3cf377fcb2aa3c48e24f28aaa377ae86004cce211"
},
"downloads": -1,
"filename": "pytest-astropy-0.10.0.tar.gz",
"has_sig": false,
"md5_digest": "23eafccddbeffaef5c0701e42f8fb048",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.7",
"size": 6076,
"upload_time": "2022-04-12T19:38:53",
"upload_time_iso_8601": "2022-04-12T19:38:53.184111Z",
"url": "https://files.pythonhosted.org/packages/7c/ff/7eaad84f83383efef7b86883228334273bf6ab6c286b2f6c086140189976/pytest-astropy-0.10.0.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2022-04-12 19:38:53",
"github": true,
"gitlab": false,
"bitbucket": false,
"github_user": "astropy",
"github_project": "pytest-astropy",
"travis_ci": false,
"coveralls": false,
"github_actions": true,
"lcname": "pytest-astropy"
}