{ "info": { "author": "Adam Johnson", "author_email": "me@adamj.eu", "bugtrack_url": null, "classifiers": [ "Development Status :: 7 - Inactive", "Intended Audience :: Developers", "License :: OSI Approved :: BSD License", "Natural Language :: English", "Programming Language :: Python :: 2", "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" ], "description": "=============\nnose-randomly\n=============\n\n.. image:: https://img.shields.io/travis/adamchainz/nose-randomly.svg\n :target: https://travis-ci.org/adamchainz/nose-randomly\n\n.. image:: https://img.shields.io/pypi/v/nose-randomly.svg\n :target: https://pypi.python.org/pypi/nose-randomly\n\n.. figure:: https://raw.githubusercontent.com/adamchainz/nose-randomly/master/logo.png\n :scale: 50%\n :alt: Randomness power.\n\n----\n\n**Unmaintained:** I'm no longer maintaining this package because I haven't used\nnose for some time, and nose itself has not seen a release since 2015, nor a\ncommit since 2016 (nearly 3 years at time of writing). If you want to continue\nmaintenance please contact me.\n\n----\n\nNose plugin to randomly order tests and control ``random.seed``. (Also\navailable `for pytest `_).\n\nFeatures\n--------\n\nAll of these features are on by default but can be disabled with flags.\n\n* Randomly shuffles the submodules, ``TestCase`` classes + test functions when\n loading a module of tests.\n* Randomly shuffles the test functions inside a ``TestCase`` when loading it.\n* Resets ``random.seed()`` at the start of every test case and test to a fixed\n number - this defaults to ``time.time()`` from the start of your test run,\n but you can pass in ``--randomly-seed`` to repeat a randomness-induced\n failure.\n* If\n `factory boy `_\n is installed, its random state is reset at the start of every test. This\n allows for repeatable use of its random 'fuzzy' features.\n* If `faker `_ is installed, its\n random state is reset at the start of every test. This is also for repeatable\n fuzzy data in tests - factory boy uses faker for lots of data.\n\nAbout\n-----\n\nRandomness in testing can be quite powerful to discover hidden flaws in the\ntests themselves, as well as giving a little more coverage to your system.\n\nBy randomly ordering the tests, the risk of surprising inter-test dependencies\nis reduced - a technique used in many places, for example Google's C++ test\nrunner `googletest\n`_.\n\nBy resetting the random seed to a repeatable number for each test, tests can\ncreate data based on random numbers and yet remain repeatable, for example\nfactory boy's fuzzy values. This is good for ensuring that tests specify the\ndata they need and that the tested system is not affected by any data that is\nfilled in randomly due to not being specified.\n\nRequirements\n------------\n\nTested with:\n\n* Python 2.7, 3.6\n* The latest version of Nose\n\nUsage\n-----\n\nInstall from pip with:\n\n.. code-block:: bash\n\n pip install nose-randomly\n\nNose will automatically find the plugin.\n\nTo activate it on your test run, use the ``--with-randomly`` flag, for example:\n\n.. code-block:: bash\n\n nosetests -v --with-randomly\n\nThe output will start with an extra line that tells you the random seed that is\nbeing used:\n\n.. code-block:: bash\n\n Using --randomly-seed=1234\n test_D (abcd_tests.Tests) ... ok\n ...\n\nIf the tests then fail due to ordering or randomly created data, you can then\nrestart them with that seed:\n\n.. code-block:: bash\n\n nosetests -v --with-randomly --randomly-seed=1234\n\nYou can disable behaviours you don't like with the following flags:\n\n* ``--randomly-dont-shuffle-modules`` - turn off the shuffling of the contents\n of modules\n* ``--randomly-dont-shuffle-cases`` - turn off the shuffling of test functions\n inside ``TestCase`` classes\n* ``--randomly-dont-reset-seed`` - turn off the reset of ``random.seed()`` at\n the start of every test\n\n\nBackground\n----------\n\n`nose` has an `unmerged pull request\n`_ from 2009 to add\nrandom ordering functionality. This is available in plugin format in the\n`nose-randomize `_ package. It\nworks quite well but I found that since it replaces all of the test loading\nmachinery inside `nose`, it can interact badly with other plugins. This plugin\nwas developed as a thinner layer to achieve the same thing, plus the random\nseed resetting which was not available before.\n\n\nLicense\n-------\n\n* BSD licensed, see LICENSE file\n* Logo by Christian Mohr from the Noun Project\n (`link `_).\n\n\n\n\nHistory\n-------\n\nPending release\n---------------\n\n1.2.6 (2019-02-07)\n------------------\n\n* Update PyPI development status as inactive. This package is no longer\n maintained, see README.rst.\n* Dropped Python 2.6 compatibility, as upstream dependency NumPy did.\n\n1.2.5 (2016-10-28)\n------------------\n\n* Set a high plugin score to ensure that ``nose-randomly`` is loaded before\n other plugins. This fixes a bug where randomization would disapper when using\n the ``doctests`` plugin that is included with Nose.\n\n1.2.4 (2016-10-27)\n------------------\n\n* Reset the random state for NumPy too.\n\n1.2.3 (2016-08-19)\n------------------\n\n* Fixed output so the random seed is always output when the plugin is enabled,\n not just when resetting ``random.seed()`` at the start of tests. Thanks\n @amygdalama.\n\n1.2.2 (2016-07-06)\n------------------\n\n* Fixed to work with ``python setup.py nosetests`` on Python 2 due to issue\n with ``unicode`` not working with ``distutils.fancy_getopt``.\n\n1.2.1 (2016-06-01)\n------------------\n\n* Support test generators.\n\n1.2.0 (2015-12-10)\n------------------\n\n* Reset the random state for Faker (pip package ``fake-factory``) too\n\n1.1.0 (2015-08-27)\n------------------\n\n* Reset the random seed at the start of nose test contexts (TestCases\n etc.) too\n* Slight performance improvement by always using ``random.setstate()`` for\n reseeding\n\n1.0.0 (2015-07-23)\n------------------\n\n* First release on PyPI.\n\n\n", "description_content_type": "", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/adamchainz/nose-randomly", "keywords": "nose,random,randomize,randomise,randomly", "license": "BSD", "maintainer": "", "maintainer_email": "", "name": "nose-randomly", "package_url": "https://pypi.org/project/nose-randomly/", "platform": "", "project_url": "https://pypi.org/project/nose-randomly/", "project_urls": { "Homepage": "https://github.com/adamchainz/nose-randomly" }, "release_url": "https://pypi.org/project/nose-randomly/1.2.6/", "requires_dist": [ "nose" ], "requires_python": ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*", "summary": "Nose plugin to randomly order tests and control random.seed.", "version": "1.2.6" }, "last_serial": 4792835, "releases": { "1.0.0": [ { "comment_text": "", "digests": { "md5": "f35fc65fc6f941dec3dad7bad529aa96", "sha256": "2496faf9ee652b19827df07df695c01d17ce29f3440a07d64bfffeddcc440bb7" }, "downloads": -1, "filename": "nose_randomly-1.0.0-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "f35fc65fc6f941dec3dad7bad529aa96", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 7477, "upload_time": "2015-07-24T14:49:12", "url": "https://files.pythonhosted.org/packages/68/42/3f632820aad4e74e27bc540b787b954f188b5fe75fed9abf45d76e01a3dc/nose_randomly-1.0.0-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "268d8ae29f8dfaa1223742f720b5fc61", "sha256": "d73819af8d9664ef46822b3471c9f27887f70262f38272cf53277971a8e8d39e" }, "downloads": -1, "filename": "nose-randomly-1.0.0.tar.gz", "has_sig": false, "md5_digest": "268d8ae29f8dfaa1223742f720b5fc61", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 7808, "upload_time": "2015-07-24T14:49:08", "url": "https://files.pythonhosted.org/packages/52/d0/4a4dc0c9f180252298f0848c8ce19dc30233376804acac5c848efca85b51/nose-randomly-1.0.0.tar.gz" } ], "1.1.0": [ { "comment_text": "", "digests": { "md5": "331ef3dfe2d30cbe616121a51b777b16", "sha256": "49ff3c87f7d2d12174e9024dd1a5f427c071a412ac2cd376f1ef20996f13cd50" }, "downloads": -1, "filename": "nose_randomly-1.1.0-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "331ef3dfe2d30cbe616121a51b777b16", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 7740, "upload_time": "2015-08-27T13:10:57", "url": "https://files.pythonhosted.org/packages/da/10/92003b5d960e117b2758fa29ec064f75c9892dfe7344f36a9405b74f0fe9/nose_randomly-1.1.0-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "1cbcc8da11499ed2c1142c0fb9c950f9", "sha256": "2991a275d581b4e94031949bd7b2a0cd6580ee2eba0f4ba5bf5a09694fcee16c" }, "downloads": -1, "filename": "nose-randomly-1.1.0.tar.gz", "has_sig": false, "md5_digest": "1cbcc8da11499ed2c1142c0fb9c950f9", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 8243, "upload_time": "2015-08-27T13:10:53", "url": "https://files.pythonhosted.org/packages/a9/84/f55ffb86823d1e860f7941ff337574d954af020f673648ce6f4166767f4e/nose-randomly-1.1.0.tar.gz" } ], "1.2.0": [ { "comment_text": "", "digests": { "md5": "5863c6fd5e15dfea412ebbbda8bde314", "sha256": "e5c64f247a658a68035b12ca75bf2c4a56567a8d91a1195bce00516958a53390" }, "downloads": -1, "filename": "nose_randomly-1.2.0-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "5863c6fd5e15dfea412ebbbda8bde314", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 7967, "upload_time": "2015-12-10T14:00:46", "url": "https://files.pythonhosted.org/packages/53/4c/fcd3d01e0729ee0730866586d7031f8c0ab12bb25e10183d98dbdf1886d3/nose_randomly-1.2.0-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "a244638ce0b681343854933d8e753ad7", "sha256": "1382f30fa48f496e9d0fb8d2399b3c0e551f62189d844e4664eff70d777e2f9e" }, "downloads": -1, "filename": "nose-randomly-1.2.0.tar.gz", "has_sig": false, "md5_digest": "a244638ce0b681343854933d8e753ad7", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 8441, "upload_time": "2015-12-10T14:00:33", "url": "https://files.pythonhosted.org/packages/e2/3f/f27249fd3de9707cd2832ef3c28e55dbe17d40df26245459316c611a193a/nose-randomly-1.2.0.tar.gz" } ], "1.2.1": [ { "comment_text": "", "digests": { "md5": "ec81ef7cee6f4d2fa0c8d6c316b4e37f", "sha256": "4760967d68b6d285c65b78687c01e1970ddb6a70e0f07a3476db8556b3b3f7fe" }, "downloads": -1, "filename": "nose_randomly-1.2.1-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "ec81ef7cee6f4d2fa0c8d6c316b4e37f", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 8547, "upload_time": "2016-06-01T10:06:37", "url": "https://files.pythonhosted.org/packages/f5/cd/28a73fa3ebcce4f6f74209869f0792dc9d9b4833f704464e339bc259e766/nose_randomly-1.2.1-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "27e456a8bca7638a5e6ba92c8c338bd6", "sha256": "2428b43e9df39a6e9a58d9bd9e261e6b51494892c704256bf8c63017bddd845c" }, "downloads": -1, "filename": "nose-randomly-1.2.1.tar.gz", "has_sig": false, "md5_digest": "27e456a8bca7638a5e6ba92c8c338bd6", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 8928, "upload_time": "2016-06-01T10:06:48", "url": "https://files.pythonhosted.org/packages/24/8c/d6d0d9e3a3c082e9ce7c266d31ccde91d96c1c14cd50df7f6f5cb0335dce/nose-randomly-1.2.1.tar.gz" } ], "1.2.2": [ { "comment_text": "", "digests": { "md5": "388d9155ddb369522de443b7cabf645a", "sha256": "f14b3d4143d648718e97506269947aeffc6620bdaf9040761df0d15ee8f6e9f3" }, "downloads": -1, "filename": "nose_randomly-1.2.2-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "388d9155ddb369522de443b7cabf645a", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 8698, "upload_time": "2016-07-06T15:23:34", "url": "https://files.pythonhosted.org/packages/94/9d/1902eec3715515040e3a24bcd3821b819b577c1871e018a7dd133c6bf8e5/nose_randomly-1.2.2-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "51eeeb6ed2a25084cf79de560902bae7", "sha256": "fac68cfdee41dc57a78a57be53c5d62be8eecd076f8a0c579dd5539898868143" }, "downloads": -1, "filename": "nose-randomly-1.2.2.tar.gz", "has_sig": false, "md5_digest": "51eeeb6ed2a25084cf79de560902bae7", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 9430, "upload_time": "2016-07-06T15:23:39", "url": "https://files.pythonhosted.org/packages/73/16/42f53088d5f301657dc0ed3696c0b659135a2914827d1903b892dc997bfc/nose-randomly-1.2.2.tar.gz" } ], "1.2.3": [ { "comment_text": "", "digests": { "md5": "1091d15ade481a9c621ea70d9998d401", "sha256": "a67d23c7591c71f502b336232442a536f6b71abb7b5179c32984256bbcfc6021" }, "downloads": -1, "filename": "nose_randomly-1.2.3-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "1091d15ade481a9c621ea70d9998d401", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 8824, "upload_time": "2016-08-19T16:00:55", "url": "https://files.pythonhosted.org/packages/f4/cf/61a787bfed54256175b7d9632cd630516f3f48a7df680f784e92630397b2/nose_randomly-1.2.3-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "e43f211b705b8289d68432de075acd50", "sha256": "ccac8c3c3647b3262553f66a8869b3e03231aedb9a6df8f300c3a38478cef18f" }, "downloads": -1, "filename": "nose-randomly-1.2.3.tar.gz", "has_sig": false, "md5_digest": "e43f211b705b8289d68432de075acd50", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 9513, "upload_time": "2016-08-19T16:00:58", "url": "https://files.pythonhosted.org/packages/4d/4c/e306711b5c88aac9e633049ac2dbc244037e0e1958907d6517d746556fea/nose-randomly-1.2.3.tar.gz" } ], "1.2.4": [ { "comment_text": "", "digests": { "md5": "56e6a87773585ccc7444c8d87545ff79", "sha256": "03cd8196058df3fd65abac1981019d85998f0a073813c17cd82e664f55a33ea5" }, "downloads": -1, "filename": "nose_randomly-1.2.4-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "56e6a87773585ccc7444c8d87545ff79", "packagetype": "bdist_wheel", "python_version": "2.7", "requires_python": null, "size": 8974, "upload_time": "2016-10-27T19:19:19", "url": "https://files.pythonhosted.org/packages/f6/fc/ae344c377508440b46b67cd51add0a170b7b3c306c9ef8295695b99b45e9/nose_randomly-1.2.4-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "4a5d7e036fb2310eecc8cc45908f5555", "sha256": "87f47b29697e5d3e3fee63d316ee986965c0d2503ad47e265841d7d93b086f9d" }, "downloads": -1, "filename": "nose-randomly-1.2.4.tar.gz", "has_sig": false, "md5_digest": "4a5d7e036fb2310eecc8cc45908f5555", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 9835, "upload_time": "2016-10-27T19:19:16", "url": "https://files.pythonhosted.org/packages/3f/54/81a121a591e9bbe7ceb531239fba68ef218714895349f79d1676c7455763/nose-randomly-1.2.4.tar.gz" } ], "1.2.5": [ { "comment_text": "", "digests": { "md5": "52d11af148c28fe2cea9e26ce4da8da8", "sha256": "8d904e750faac27597df3bb189ed9ba1ae6a824ff80f4876ab18259190aef344" }, "downloads": -1, "filename": "nose_randomly-1.2.5-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "52d11af148c28fe2cea9e26ce4da8da8", "packagetype": "bdist_wheel", "python_version": "2.7", "requires_python": null, "size": 11128, "upload_time": "2016-10-28T12:38:05", "url": "https://files.pythonhosted.org/packages/f6/55/32f534511164dbbbe8b79898355c31eb668a82e95b536c2ae40e853e9771/nose_randomly-1.2.5-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "099ec98c122c24463f3915cb913dfea7", "sha256": "361f4c2fbb090ec2bc8e5e4151e21409a09ac13f364e3448247cc01f326d89b3" }, "downloads": -1, "filename": "nose-randomly-1.2.5.tar.gz", "has_sig": false, "md5_digest": "099ec98c122c24463f3915cb913dfea7", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 9605, "upload_time": "2016-10-28T12:38:02", "url": "https://files.pythonhosted.org/packages/d7/c9/19b106a93fd15658061e3b047589002732dbc8cbeb5758fbf2b392fc2acb/nose-randomly-1.2.5.tar.gz" } ], "1.2.6": [ { "comment_text": "", "digests": { "md5": "3049d081ce280e0b2a633c80aef6671f", "sha256": "257a10813e85fd28bba97f830ed1ba68f564d5a0653add08f5a2e4b8711fa740" }, "downloads": -1, "filename": "nose_randomly-1.2.6-py2.py3-none-any.whl", "has_sig": true, "md5_digest": "3049d081ce280e0b2a633c80aef6671f", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*", "size": 6932, "upload_time": "2019-02-07T20:17:02", "url": "https://files.pythonhosted.org/packages/d5/aa/7f7ef8e0690331a0c26e2cd089cb769ac6e02970ee3bf921d1b96b4999e7/nose_randomly-1.2.6-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "e358c97da4be4514b8505c27ca8e8a5d", "sha256": "7e483a3d79e13ae760d6ade57ae07ae45bb4b223b61a805e958b4c077116c67c" }, "downloads": -1, "filename": "nose-randomly-1.2.6.tar.gz", "has_sig": true, "md5_digest": "e358c97da4be4514b8505c27ca8e8a5d", "packagetype": "sdist", "python_version": "source", "requires_python": ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*", "size": 9706, "upload_time": "2019-02-07T20:17:04", "url": "https://files.pythonhosted.org/packages/64/16/9d04cfec78f92544bc14bf9d54584a7b18ed71ce5da18d965438bbd6ef28/nose-randomly-1.2.6.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "3049d081ce280e0b2a633c80aef6671f", "sha256": "257a10813e85fd28bba97f830ed1ba68f564d5a0653add08f5a2e4b8711fa740" }, "downloads": -1, "filename": "nose_randomly-1.2.6-py2.py3-none-any.whl", "has_sig": true, "md5_digest": "3049d081ce280e0b2a633c80aef6671f", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*", "size": 6932, "upload_time": "2019-02-07T20:17:02", "url": "https://files.pythonhosted.org/packages/d5/aa/7f7ef8e0690331a0c26e2cd089cb769ac6e02970ee3bf921d1b96b4999e7/nose_randomly-1.2.6-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "e358c97da4be4514b8505c27ca8e8a5d", "sha256": "7e483a3d79e13ae760d6ade57ae07ae45bb4b223b61a805e958b4c077116c67c" }, "downloads": -1, "filename": "nose-randomly-1.2.6.tar.gz", "has_sig": true, "md5_digest": "e358c97da4be4514b8505c27ca8e8a5d", "packagetype": "sdist", "python_version": "source", "requires_python": ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*", "size": 9706, "upload_time": "2019-02-07T20:17:04", "url": "https://files.pythonhosted.org/packages/64/16/9d04cfec78f92544bc14bf9d54584a7b18ed71ce5da18d965438bbd6ef28/nose-randomly-1.2.6.tar.gz" } ] }