{ "info": { "author": "Stephen Moore", "author_email": "stephen@delfick.com", "bugtrack_url": null, "classifiers": [], "description": "Nose Focus\n==========\n\nThis provides a nice little decorator and a nose-tests switch to make nose only\nrun the tests that you are focusing on right now.\n\n.. image:: https://travis-ci.org/delfick/nose-focus.png?branch=master\n :target: https://travis-ci.org/delfick/nose-focus\n\nUsage\n-----\n\nJust use the focus decorator in your tests:\n\n.. code-block:: python\n\n from nose_focus import focus\n\n @focus\n def test_my_amazing_feature():\n assert_is_awesome(my_feature)\n\nOr set it on your classes:\n\n.. code-block:: python\n\n from nose_focus import focus\n\n @focus\n class MyTests(TestCase):\n [...]\n\nOr if you also want to focus on subclasses:\n\n.. code-block:: python\n\n @focus_all\n class MyTests(TestCase):\n [..]\n\n class OtherTests(MyTests):\n # Also part of the test because it's parent class has focus_all\n [..]\n\nOr at the module level, set ``nose_focus`` to ``True``\n\n.. code-block:: python\n\n nose_focus = True\n\n def test_my_other_amazing_feature():\n assert_great_things()\n\nAnd use the switch when you run your tests:\n\n.. code-block:: bash\n\n nosetests --with-focus\n\nAnd the plugin will skip all the tests that we aren't focusing on or set to be\nignored.\n\nYou may also use nose_focus to run all your tests except those that are ignored.\n\n.. code-block:: python\n\n from nose_focus import focus_ignore\n\n @focus_ignore\n def test_that_is_ignored():\n [..]\n\n def test_that_is_not_ignored():\n [..]\n\nAnd use the ``--without-ignored`` to make it run all tests except those that\nare ignored:\n\n.. code-block:: bash\n\n nosetests --without-ignored\n\nApi\n---\n\nnose_focus.focus(func)\n Sets ``nose_focus`` to ``True`` on ``func``\n\nnose_focus.focus_all(kls)\n Sets ``nose_focus_all`` to ``True`` on ``kls``. The plugin looks for this\n attribute in the lineage of base classes for each method when determining\n to skip them or not.\n\nnose_focus.focus_ignore(thing)\n Sets ``nose_focus_ignore`` to ``True`` on ``thing``. The plugin will look\n for this on each method and the lineage of base classes and will ignore the\n method if it finds it.\n\n--with-focus nosetests switch\n Enables the plugin making it only run those tests that are set to focus\n and are not set to be ignored\n\n--without-ignored nosetests switch\n Makes the plugin run all tests except those that are set to be ignored\n\nHow it works\n------------\n\nThe plugin uses several ``want*`` hooks on a nose plugin to only let\nthrough methods that we want to focus on.\n\nA method is ``focused`` if it or it's parent class has ``nose_focus`` set to\na Truthy value or if any class in the lineage of parent classes has\n``nose_focus_all`` set to a Truthy value and nothing in the lineage\nhas ``nose_focus_ignore`` set to a Truthy value.\n\nInstallation\n------------\n\nUse pip!:\n\n.. code-block:: bash\n\n pip install nose-focus\n\nOr if you're developing it:\n\n.. code-block:: bash\n\n pip install -e .\n pip install -e \".[tests]\"\n\nTests\n-----\n\nTo run the tests in this project, just use the helpful script:\n\n.. code-block:: bash\n\n ./test.sh\n\nOr run tox:\n\n.. code-block:: bash\n\n tox\n\n", "description_content_type": null, "docs_url": null, "download_url": "UNKNOWN", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "http://nose_focus.readthedocs.org", "keywords": "nose tests focus", "license": "WTFPL", "maintainer": null, "maintainer_email": null, "name": "nose_focus", "package_url": "https://pypi.org/project/nose_focus/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/nose_focus/", "project_urls": { "Download": "UNKNOWN", "Homepage": "http://nose_focus.readthedocs.org" }, "release_url": "https://pypi.org/project/nose_focus/0.1.3/", "requires_dist": null, "requires_python": null, "summary": "Decorator and plugin to make nose focus on specific tests", "version": "0.1.3" }, "last_serial": 2237054, "releases": { "0.1": [ { "comment_text": "", "digests": { "md5": "15d734ec55cd199a6464986545efe979", "sha256": "7ce8587f0dfde41e36607a503fd54d2b5d1bfe7bd12f70ee5e9ba6d0a0370ddb" }, "downloads": -1, "filename": "nose_focus-0.1.tar.gz", "has_sig": false, "md5_digest": "15d734ec55cd199a6464986545efe979", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4008, "upload_time": "2014-05-25T14:02:09", "url": "https://files.pythonhosted.org/packages/2a/fd/94fbd4ffe751dc1b90360701e0275c9694135292289af2da91e9504afa93/nose_focus-0.1.tar.gz" } ], "0.1.1": [ { "comment_text": "", "digests": { "md5": "dc1ae951631dcf02b5f8ce08f90bfe92", "sha256": "4f9c36f32dfe7d9f9d0d78361d09f11a47e0d812e19edc95f38bc96ece3b7314" }, "downloads": -1, "filename": "nose_focus-0.1.1.tar.gz", "has_sig": false, "md5_digest": "dc1ae951631dcf02b5f8ce08f90bfe92", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4069, "upload_time": "2014-06-09T14:49:27", "url": "https://files.pythonhosted.org/packages/31/e0/b9ae49785e55c986cb7a6069ed17028ab2cae1ea8a6943a112d0ee9623be/nose_focus-0.1.1.tar.gz" } ], "0.1.2": [ { "comment_text": "", "digests": { "md5": "0e11e3280135472434736f65f1a38173", "sha256": "095d86807e17cf93efe97da602150e9e3f409add948da3aa654b4a0a7f7c618a" }, "downloads": -1, "filename": "nose_focus-0.1.2.tar.gz", "has_sig": false, "md5_digest": "0e11e3280135472434736f65f1a38173", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4325, "upload_time": "2015-05-09T08:46:41", "url": "https://files.pythonhosted.org/packages/75/ee/4393f78b13645e50e711254bf94701621a8f5434aaa71b82e18e1b7fa0bc/nose_focus-0.1.2.tar.gz" } ], "0.1.3": [ { "comment_text": "", "digests": { "md5": "f19901e757bf4e7f550db062168c66e7", "sha256": "b002f10b7249adeb602d794b0f8f5c8d15897fbe74fb888b337c2664e0df4871" }, "downloads": -1, "filename": "nose_focus-0.1.3.tar.gz", "has_sig": false, "md5_digest": "f19901e757bf4e7f550db062168c66e7", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4385, "upload_time": "2016-07-22T04:47:51", "url": "https://files.pythonhosted.org/packages/28/0d/fbd82086127ff79dcb781edf50d8abd93757ce8e74c8a87dcd10f775d13a/nose_focus-0.1.3.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "f19901e757bf4e7f550db062168c66e7", "sha256": "b002f10b7249adeb602d794b0f8f5c8d15897fbe74fb888b337c2664e0df4871" }, "downloads": -1, "filename": "nose_focus-0.1.3.tar.gz", "has_sig": false, "md5_digest": "f19901e757bf4e7f550db062168c66e7", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4385, "upload_time": "2016-07-22T04:47:51", "url": "https://files.pythonhosted.org/packages/28/0d/fbd82086127ff79dcb781edf50d8abd93757ce8e74c8a87dcd10f775d13a/nose_focus-0.1.3.tar.gz" } ] }