{ "info": { "author": "The Astropy Developers", "author_email": "astropy.team@gmail.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 3 - Alpha", "Framework :: Pytest", "Intended Audience :: Developers", "License :: OSI Approved :: BSD License", "Operating System :: OS Independent", "Programming Language :: Python", "Programming Language :: Python :: 2.7", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.3", "Programming Language :: Python :: 3.4", "Programming Language :: Python :: 3.5", "Programming Language :: Python :: 3.6", "Programming Language :: Python :: Implementation :: CPython", "Topic :: Software Development :: Testing", "Topic :: Utilities" ], "description": "=================\npytest-remotedata\n=================\n\nThis package provides a plugin for the `pytest`_ framework that allows\ndevelopers to control unit tests that require access to data from the internet.\nIt was originally part of the `astropy`_ core package, but has been moved to a\nseparate package in order to be of more general use.\n\n.. _pytest: https://pytest.org/en/latest/\n.. _astropy: https://astropy.org/en/latest/\n\n\nMotivation\n----------\n\nMany software packages provide features that require access to data from the\ninternet. These features need to be tested, but unit tests that access the\ninternet can dominate the overall runtime of a test suite.\n\nThe ``pytest-remotedata`` plugin allows developers to indicate which unit tests\nrequire access to the internet, and to control when and whether such tests\nshould execute as part of any given run of the test suite.\n\nInstallation\n------------\n\nThe ``pytest-remotedata`` plugin can be installed using ``pip``::\n\n $ pip install pytest-remotedata\n\nIt is also possible to install the latest development version from the source\nrepository::\n\n $ git clone https://github.com/astropy/pytest-remotedata\n $ cd pytest-remotedata\n $ python ./setup.py install\n\nIn either case, the plugin will automatically be registered for use with\n``pytest``.\n\nUsage\n-----\n\nInstalling this plugin makes two decorators available for use with ``pytest``:\n\n* ``remote_data`` for marking tests that require data from the internet\n* ``internet_off`` for marking tests that should run only when internet access\n is disabled\n\nThese decorators can be used to mark test functions, methods, and classes using\n``@pytest.mark``. For example, consider the following test function that\nrequires access to data from the internet:\n\n.. code-block:: python\n\n import pytest\n from urllib.request import urlopen\n\n @pytest.mark.remote_data\n def test_remote_data():\n urlopen('https://astropy.org')\n\nMarking the ``test_remote_data`` function with ``@pytest.mark.remote_data``\nindicates to ``pytest`` that this test should be run only when access to remote\ndata sources is explicitly requested.\n\nWhen this plugin is installed, the ``--remote-data`` command line option is\nadded to the ``pytest`` command line interface.\n\nThe default behavior is to skip tests that are marked with ``remote_data``.\nIf the ``--remote-data`` option is not provided to the ``pytest`` command, or\nif ``--remote-data=none`` is provided, all tests that are marked with\n``remote_data`` will be skipped. All tests that are marked with\n``internet_off`` will be executed.\n\nSometimes it is useful to check that certain tests do not unexpectedly access\nthe internet. Strict remote data access checking can be enabled by setting\n``remote_data_strict = true`` in the tested package's ``setup.cfg`` file. If\nthis option is enabled, any test that attempts to access the network but is not\nmarked with ``@pytest.mark.remote_data`` will fail.\n\n\nProviding either the ``--remote-data`` option, or ``--remote-data=any`` to the\n``pytest`` command line interface will cause all tests that are marked with\n``remote-data`` to execute. Any tests that are marked with ``internet_off``\nwill be skipped.\n\nRunning the tests with ``--remote-data=astropy`` will cause only tests that\nreceive remote data from Astropy data sources to be run. Tests with any other\ndata sources will be skipped. This is indicated in the test code by marking\ntest functions with ``@pytest.mark.remote_data(source='astropy')``.\n\nIn the future, we intend to support a configurable way to indicate specific\nremote data sources in addition to ``astropy``.\n\nDevelopment Status\n------------------\n\n.. image:: https://travis-ci.org/astropy/pytest-remotedata.svg\n :target: https://travis-ci.org/astropy/pytest-remotedata\n :alt: Travis CI Status\n\n.. image:: https://ci.appveyor.com/api/projects/status/ym7lxajcs5qwm31e/branch/master?svg=true\n :target: https://ci.appveyor.com/project/Astropy/pytest-remotedata/branch/master\n :alt: Appveyor Status\n\nQuestions, bug reports, and feature requests can be submitted on `github`_.\n\n.. _github: https://github.com/astropy/pytest-remotedata\n\nLicense\n-------\nThis plugin is licensed under a 3-clause BSD style license - see the\n``LICENSE.rst`` file.\n\n\n", "description_content_type": "", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://astropy.org", "keywords": "remote,data,pytest,py.test", "license": "BSD", "maintainer": "", "maintainer_email": "", "name": "pytest-remotedata", "package_url": "https://pypi.org/project/pytest-remotedata/", "platform": "", "project_url": "https://pypi.org/project/pytest-remotedata/", "project_urls": { "Homepage": "https://astropy.org" }, "release_url": "https://pypi.org/project/pytest-remotedata/0.3.2/", "requires_dist": [ "six", "pytest (>=3.1)" ], "requires_python": ">=2.7", "summary": "Pytest plugin for controlling remote data access.", "version": "0.3.2" }, "last_serial": 5848217, "releases": { "0.1.0": [ { "comment_text": "", "digests": { "md5": "e99272f0eaf3f7ff00229bd0c259f5a7", "sha256": "60cf4b1c5917f7f78142a96e11868e4316acc2ac1e746d4bfbb70e5d4f17125a" }, "downloads": -1, "filename": "pytest-remotedata-0.1.0.tar.gz", "has_sig": false, "md5_digest": "e99272f0eaf3f7ff00229bd0c259f5a7", "packagetype": "sdist", "python_version": "source", "requires_python": ">=2.7", "size": 6872, "upload_time": "2017-10-10T17:52:26", "url": "https://files.pythonhosted.org/packages/96/f7/33a556c65fddd3c0364b323a65e9d0637de3adcf6a1e0c5e7bf3e19f512a/pytest-remotedata-0.1.0.tar.gz" } ], "0.2.0": [ { "comment_text": "", "digests": { "md5": "963ee4151c16d2dd2679bcd97fc324ff", "sha256": "8ee2212818d89653132a7ffea0fb219eb2b00ecabc43f4d84f12e1fdf4853234" }, "downloads": -1, "filename": "pytest-remotedata-0.2.0.tar.gz", "has_sig": false, "md5_digest": "963ee4151c16d2dd2679bcd97fc324ff", "packagetype": "sdist", "python_version": "source", "requires_python": ">=2.7", "size": 9515, "upload_time": "2017-11-10T15:24:03", "url": "https://files.pythonhosted.org/packages/a2/ea/b180cae6678270c9b223b9deafeedeb5344a8b813d5af6d38bdd76066cd0/pytest-remotedata-0.2.0.tar.gz" } ], "0.2.1": [ { "comment_text": "", "digests": { "md5": "f9ba2c150c2bdb8da6d90da5f3fa447f", "sha256": "9171b8e4d39e838b71d12bbd26505ba0c5739da7edb3780ad16d52ab41637285" }, "downloads": -1, "filename": "pytest-remotedata-0.2.1.tar.gz", "has_sig": true, "md5_digest": "f9ba2c150c2bdb8da6d90da5f3fa447f", "packagetype": "sdist", "python_version": "source", "requires_python": ">=2.7", "size": 7491, "upload_time": "2018-04-20T17:42:24", "url": "https://files.pythonhosted.org/packages/03/95/b70d58ad03c67e0aee0a3c745383be03b6c49e6d3d2224b4c24394a3fc5e/pytest-remotedata-0.2.1.tar.gz" } ], "0.3.0": [ { "comment_text": "", "digests": { "md5": "afdb8454cd69dd0de69003af10759d2d", "sha256": "cb0a6e22ba07ff870edeb17d5d38c495e8f37e2db741cd15e723fb8e609909eb" }, "downloads": -1, "filename": "pytest-remotedata-0.3.0.tar.gz", "has_sig": true, "md5_digest": "afdb8454cd69dd0de69003af10759d2d", "packagetype": "sdist", "python_version": "source", "requires_python": ">=2.7", "size": 7959, "upload_time": "2018-05-29T20:32:04", "url": "https://files.pythonhosted.org/packages/99/c5/49bee2b4123c9738760ff9915970973434d8c6ad1759faa40e20bc8a2a8e/pytest-remotedata-0.3.0.tar.gz" } ], "0.3.1": [ { "comment_text": "", "digests": { "md5": "60ee683f8b576867fdefd3bd52a9fd68", "sha256": "15b75a38431da96a4da5e48b20a18e4dcc40d191abc199b17cb969f818530481" }, "downloads": -1, "filename": "pytest-remotedata-0.3.1.tar.gz", "has_sig": true, "md5_digest": "60ee683f8b576867fdefd3bd52a9fd68", "packagetype": "sdist", "python_version": "source", "requires_python": ">=2.7", "size": 10367, "upload_time": "2018-10-23T20:41:01", "url": "https://files.pythonhosted.org/packages/4e/d0/38326c8e1af493b50c140b1be7e4c27511372c1f47f0e787a64d1ec284ea/pytest-remotedata-0.3.1.tar.gz" } ], "0.3.2": [ { "comment_text": "", "digests": { "md5": "0b3bf636e7f25fcca3e0129e04ac6d2e", "sha256": "3be58f09116f3ce80cff9e5076cda528a84ae36d21ca9645abf782e112c281bc" }, "downloads": -1, "filename": "pytest_remotedata-0.3.2-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "0b3bf636e7f25fcca3e0129e04ac6d2e", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": ">=2.7", "size": 8302, "upload_time": "2019-07-20T14:19:36", "url": "https://files.pythonhosted.org/packages/33/a3/f5b4605290b9767e1b95eb55a0464a15ce10bac1ba353953dd5b73c52312/pytest_remotedata-0.3.2-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "5cd8326adbc4c438d78142dc259c54aa", "sha256": "e20c58d4b7c359c4975dc3c3d3d67be0905180d2368be0be3ae09b15a136cfc0" }, "downloads": -1, "filename": "pytest-remotedata-0.3.2.tar.gz", "has_sig": false, "md5_digest": "5cd8326adbc4c438d78142dc259c54aa", "packagetype": "sdist", "python_version": "source", "requires_python": ">=2.7", "size": 11583, "upload_time": "2019-07-20T14:19:38", "url": "https://files.pythonhosted.org/packages/54/6c/cd637f54a05139b4e64825230352e6fa4149b4c3116246a7c6f5368d72cb/pytest-remotedata-0.3.2.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "0b3bf636e7f25fcca3e0129e04ac6d2e", "sha256": "3be58f09116f3ce80cff9e5076cda528a84ae36d21ca9645abf782e112c281bc" }, "downloads": -1, "filename": "pytest_remotedata-0.3.2-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "0b3bf636e7f25fcca3e0129e04ac6d2e", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": ">=2.7", "size": 8302, "upload_time": "2019-07-20T14:19:36", "url": "https://files.pythonhosted.org/packages/33/a3/f5b4605290b9767e1b95eb55a0464a15ce10bac1ba353953dd5b73c52312/pytest_remotedata-0.3.2-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "5cd8326adbc4c438d78142dc259c54aa", "sha256": "e20c58d4b7c359c4975dc3c3d3d67be0905180d2368be0be3ae09b15a136cfc0" }, "downloads": -1, "filename": "pytest-remotedata-0.3.2.tar.gz", "has_sig": false, "md5_digest": "5cd8326adbc4c438d78142dc259c54aa", "packagetype": "sdist", "python_version": "source", "requires_python": ">=2.7", "size": 11583, "upload_time": "2019-07-20T14:19:38", "url": "https://files.pythonhosted.org/packages/54/6c/cd637f54a05139b4e64825230352e6fa4149b4c3116246a7c6f5368d72cb/pytest-remotedata-0.3.2.tar.gz" } ] }