{ "info": { "author": "Jeremy Arr", "author_email": "jeremyarr@gmail.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 2 - Pre-Alpha", "Intended Audience :: Developers", "License :: OSI Approved :: MIT License", "Programming Language :: Python :: 3.6" ], "description": ".. image:: https://cdn.rawgit.com/jeremyarr/younit/2275cf7a/docs/_static/logo_full.png\n\n.. image:: https://tactile.com.au/jenkins/buildStatus/icon?job=younit1\n :target: https://github.com/jeremyarr/younit\n\n.. image:: https://img.shields.io/pypi/l/younit.svg\n :target: https://pypi.python.org/pypi/younit\n\n.. image:: https://tactile.com.au/badge-server/coverage/younit1\n :target: https://github.com/jeremyarr/younit\n\n.. image:: https://img.shields.io/pypi/pyversions/younit.svg\n :target: https://pypi.python.org/pypi/younit\n\n.. image:: https://img.shields.io/pypi/status/younit.svg\n :target: https://pypi.python.org/pypi/younit\n\n.. image:: https://img.shields.io/pypi/implementation/younit.svg\n :target: https://pypi.python.org/pypi/younit\n\n\n`younit `_ is a collection of helpers for the `unittest `_ module.\n\nHelpers\n---------\n\n========================================== =======================================================\nI want to Helpers to Use\n========================================== =======================================================\nTest coroutines @asyncio_test\nMock out coroutines AsyncMock(), \n @asyncio_test \nPrint the name of a test before running it @test_name\nFail a test if it hangs @set_test_hang_alarm, @clear_test_hang_alarm, or\n @test_hang_alarm\nClose all threads associated with a test @close_all_threads\n========================================== =======================================================\n\nGet It Now\n-----------\n\n.. code-block:: bash\n\n $ pip install younit\n\nExamples\n--------------\n\nTesting and mocking coroutines:\n\n.. code-block:: python\n\n class MyTestCase(unittest.TestCase):\n async def async_setUp(self):\n pass\n\n async def async_tearDown(self):\n pass\n\n @asyncio_test\n async def test_this(self):\n x = AsyncMock()\n await x()\n x.mock.assert_called_once()\n\n\nSetting up test hang alarms:\n\n.. code-block:: python\n\n class MyTestCase(unittest.TestCase):\n @set_test_hang_alarm\n def setUp(self):\n pass\n\n @clear_test_hang_alarm\n def tearDown(self):\n pass\n\n\n\nMore at https://younit.readthedocs.io\n-------------------------------------\n\nProject Links\n-------------\n\n- Docs: https://younit.readthedocs.io/\n- Changelog: https://younit.readthedocs.io/en/latest/changelog.html\n- PyPI: https://pypi.python.org/pypi/younit\n- Issues: https://github.com/jeremyarr/younit/issues\n\nLicense\n-------\n\nMIT licensed. See the bundled `LICENSE `_ file for more details.\n~\n\nChangelog\n---------\n\n0.1.0 (2017-07-21)\n*********************************\n\n- Initial release\n\n", "description_content_type": null, "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/jeremyarr/younit", "keywords": "asyncio,unittest,mock,testing", "license": "MIT", "maintainer": "", "maintainer_email": "", "name": "younit", "package_url": "https://pypi.org/project/younit/", "platform": "", "project_url": "https://pypi.org/project/younit/", "project_urls": { "Homepage": "https://github.com/jeremyarr/younit" }, "release_url": "https://pypi.org/project/younit/0.1.0/", "requires_dist": null, "requires_python": "", "summary": "a collection of helpers for the unittest module", "version": "0.1.0" }, "last_serial": 3038511, "releases": { "0.1.0": [ { "comment_text": "", "digests": { "md5": "609085845843e0ff35b15c5e99f40e3e", "sha256": "1875cebc212f34d09ee4fad93b576702ffab343a88be1e6a707450d64daf819b" }, "downloads": -1, "filename": "younit-0.1.0-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "609085845843e0ff35b15c5e99f40e3e", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 5763, "upload_time": "2017-07-21T05:59:40", "url": "https://files.pythonhosted.org/packages/e7/ad/4273d1381b9a8fdb7f76a2f562018ed1bbf0b28f6b5a9f26942d14b95b2f/younit-0.1.0-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "62f3419bdd25a734bc617887694579f2", "sha256": "4c5cae8add531fe6480efc0528a673ed7da7558267f60a13b4f625f778748e8e" }, "downloads": -1, "filename": "younit-0.1.0.tar.gz", "has_sig": false, "md5_digest": "62f3419bdd25a734bc617887694579f2", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4820, "upload_time": "2017-07-21T05:59:42", "url": "https://files.pythonhosted.org/packages/4a/d4/aa2d57ac1277c6446d11b04bb612b680cb5a11086dbd8e25c890128fe692/younit-0.1.0.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "609085845843e0ff35b15c5e99f40e3e", "sha256": "1875cebc212f34d09ee4fad93b576702ffab343a88be1e6a707450d64daf819b" }, "downloads": -1, "filename": "younit-0.1.0-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "609085845843e0ff35b15c5e99f40e3e", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 5763, "upload_time": "2017-07-21T05:59:40", "url": "https://files.pythonhosted.org/packages/e7/ad/4273d1381b9a8fdb7f76a2f562018ed1bbf0b28f6b5a9f26942d14b95b2f/younit-0.1.0-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "62f3419bdd25a734bc617887694579f2", "sha256": "4c5cae8add531fe6480efc0528a673ed7da7558267f60a13b4f625f778748e8e" }, "downloads": -1, "filename": "younit-0.1.0.tar.gz", "has_sig": false, "md5_digest": "62f3419bdd25a734bc617887694579f2", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4820, "upload_time": "2017-07-21T05:59:42", "url": "https://files.pythonhosted.org/packages/4a/d4/aa2d57ac1277c6446d11b04bb612b680cb5a11086dbd8e25c890128fe692/younit-0.1.0.tar.gz" } ] }