{ "info": { "author": "Abdeali JK", "author_email": "abdealikothari@gmail.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 4 - Beta", "Environment :: Plugins", "Intended Audience :: Developers", "License :: OSI Approved :: MIT License", "Operating System :: MacOS :: MacOS X", "Operating System :: Microsoft :: Windows", "Operating System :: POSIX", "Programming Language :: Python", "Programming Language :: Python :: 2.6", "Programming Language :: Python :: 2.7", "Programming Language :: Python :: 3.2", "Programming Language :: Python :: 3.3", "Programming Language :: Python :: 3.4", "Topic :: Software Development :: Libraries", "Topic :: Software Development :: Testing", "Topic :: Utilities" ], "description": ".. image:: https://travis-ci.org/AbdealiJK/pytest-attrib.svg?branch=master\n :target: https://travis-ci.org/AbdealiJK/pytest-attrib\n\n.. image:: https://ci.appveyor.com/api/projects/status/1q5qdliai6hu4hrv/branch/master?svg=true\n :target: https://ci.appveyor.com/project/AbdealiJK/pytest-attrib\n\npytest-attrib\n=============\n\nThe `pytest-attrib`_ plugin extends py.test with the ability to select tests\nbased on a criteria rather than just the filename or pytest.marks. For\nexample, you might want to run only tests that need internet connectivity,\nor tests that are slow.\n\nThe `pytest.mark `__ plugin already\nprovides a featrure to mark tests and run only the marked tests. This plugin\nalso allows to run expressions on the attributes of the class, and does not\nrequire the pytest.mark decorator.\n\nIt offers features similar to the nose plugin\n`nose-attrib `__.\n\nInstallation\n------------\n\nInstall the plugin with::\n\n pip install pytest-attrib\n\nUsage examples\n--------------\n\nTo use the plugin, the ``-a`` CLI argument has been provided. Consider a\nproject with the test file::\n\n import unittest\n\n class MyTestCase(unittest.TestCase):\n def test_function(self):\n assert 1 == 1\n\n class MySlowTestCase(unittest.TestCase):\n slow = True\n\n def test_slow_function(self):\n import time\n time.sleep(5)\n assert 1 == 1\n\nUsing pytest-attrib, only the slow tests can be run using::\n\n $ py.test -a slow\n\nOr run only the fast tests using::\n\n $ py.test -a \"not slow\"\n\nThe expression given in the ``-a`` argument can be even more complex, for\nexample::\n\n $ py.test -a \"slow and requires_internet\"\n $ py.test -a \"slow and not requires_internet\"\n\nIt can also do conditional arguments like::\n\n $ py.test -a \"speed=='slow' and requires_internet\"\n\nLICENSE\n-------\n\n.. image:: https://img.shields.io/github/license/AbdealiJK/pytest-attrib.svg\n :target: https://opensource.org/licenses/MIT\n\nThis code falls under the\n`MIT License `__.\nPlease note that some files or content may be copied from other places\nand have their own licenses. Dependencies that are being used to generate\nthe databases also have their own licenses.", "description_content_type": null, "docs_url": null, "download_url": "UNKNOWN", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "http://pypi.python.org/pypi/pytest-attrib/", "keywords": null, "license": "MIT License", "maintainer": null, "maintainer_email": null, "name": "pytest-attrib", "package_url": "https://pypi.org/project/pytest-attrib/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/pytest-attrib/", "project_urls": { "Download": "UNKNOWN", "Homepage": "http://pypi.python.org/pypi/pytest-attrib/" }, "release_url": "https://pypi.org/project/pytest-attrib/0.1.3/", "requires_dist": null, "requires_python": null, "summary": "pytest plugin to select tests based on attributes similar to the nose-attrib plugin", "version": "0.1.3" }, "last_serial": 2130958, "releases": { "0.1": [ { "comment_text": "built for Linux-3.19.0-25-generic-i686-with-glibc2.4", "digests": { "md5": "6ea8d030dfe71aa3501fa257fe2ba4e3", "sha256": "23e2353f000d533a7aa10a03796bc778fec88c9c1d94d4a35bf11c9f25dc9a77" }, "downloads": -1, "filename": "pytest-attrib-0.1.linux-i686.tar.gz", "has_sig": false, "md5_digest": "6ea8d030dfe71aa3501fa257fe2ba4e3", "packagetype": "bdist_dumb", "python_version": "any", "requires_python": null, "size": 3651, "upload_time": "2016-05-20T06:44:33", "url": "https://files.pythonhosted.org/packages/80/9d/a75c40d223e43880a3d585927eddf46bc43d3ce0b8f61578f99576e874ce/pytest-attrib-0.1.linux-i686.tar.gz" }, { "comment_text": "", "digests": { "md5": "e0232991ed4dc0b9450926781e061148", "sha256": "811875b0bf97b66db31c1184fa726c86ad9a564dedfd04e6a946a60b3800cb11" }, "downloads": -1, "filename": "pytest-attrib-0.1.tar.gz", "has_sig": false, "md5_digest": "e0232991ed4dc0b9450926781e061148", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3244, "upload_time": "2016-05-20T06:44:13", "url": "https://files.pythonhosted.org/packages/58/03/8e856ca015e85955f87f03fe827557095acde8c2a3dd774ef4aeb676ec95/pytest-attrib-0.1.tar.gz" } ], "0.1.1": [ { "comment_text": "", "digests": { "md5": "65ed2fcdd8c0308f27cd76ae8d4d56c3", "sha256": "2cc3ba706bac21158a3a4d98ec655ca301e030cb5f6544a198313792b5bbe0f2" }, "downloads": -1, "filename": "pytest-attrib-0.1.1.tar.gz", "has_sig": false, "md5_digest": "65ed2fcdd8c0308f27cd76ae8d4d56c3", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3202, "upload_time": "2016-05-20T06:52:45", "url": "https://files.pythonhosted.org/packages/22/4a/934b600d13580f2d0b68675e9631d67d2a21c871a802add2c9c5251d183d/pytest-attrib-0.1.1.tar.gz" } ], "0.1.2": [ { "comment_text": "", "digests": { "md5": "a6491e71dc7a1fcffbd3251fdbd21d6c", "sha256": "124ee7aef7cd19a27b6a7d0f2bc41749ed51566b46c88f484b320ce26a09469a" }, "downloads": -1, "filename": "pytest-attrib-0.1.2.tar.gz", "has_sig": false, "md5_digest": "a6491e71dc7a1fcffbd3251fdbd21d6c", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3346, "upload_time": "2016-05-23T14:05:20", "url": "https://files.pythonhosted.org/packages/18/59/8fbfd0abfca324334637e6905775bd6ea7fb50192b1b0f72c532f4aa00fc/pytest-attrib-0.1.2.tar.gz" } ], "0.1.3": [ { "comment_text": "", "digests": { "md5": "042dbc14e7c02246fe4b352a62056d86", "sha256": "cf5e9cc35c5ba8f060b4413ae7491ba535b6b173f631ece40b007f53e153b7e4" }, "downloads": -1, "filename": "pytest-attrib-0.1.3.tar.gz", "has_sig": false, "md5_digest": "042dbc14e7c02246fe4b352a62056d86", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4210, "upload_time": "2016-05-24T11:22:56", "url": "https://files.pythonhosted.org/packages/73/86/fa57c3f4b9d574eda056186c7915055e868c83823ca7a3103d8c38d5be11/pytest-attrib-0.1.3.tar.gz" } ], "0.1.3.dev0": [ { "comment_text": "", "digests": { "md5": "c44db52e95626e5727c6687ee227701c", "sha256": "338a059c6831596711da4006dd4e50d6f5c87c3c7aa012801d0f726fa2104207" }, "downloads": -1, "filename": "pytest-attrib-0.1.3.dev0.tar.gz", "has_sig": false, "md5_digest": "c44db52e95626e5727c6687ee227701c", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4227, "upload_time": "2016-05-24T10:43:54", "url": "https://files.pythonhosted.org/packages/6a/99/0242a63253c72226064f69392014db0fffb921016356bbb668a9e6b6dc69/pytest-attrib-0.1.3.dev0.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "042dbc14e7c02246fe4b352a62056d86", "sha256": "cf5e9cc35c5ba8f060b4413ae7491ba535b6b173f631ece40b007f53e153b7e4" }, "downloads": -1, "filename": "pytest-attrib-0.1.3.tar.gz", "has_sig": false, "md5_digest": "042dbc14e7c02246fe4b352a62056d86", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4210, "upload_time": "2016-05-24T11:22:56", "url": "https://files.pythonhosted.org/packages/73/86/fa57c3f4b9d574eda056186c7915055e868c83823ca7a3103d8c38d5be11/pytest-attrib-0.1.3.tar.gz" } ] }