{ "info": { "author": "AWeber Communications", "author_email": "api@aweber.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 5 - Production/Stable", "Intended Audience :: Developers", "License :: OSI Approved :: BSD License", "Natural Language :: English", "Operating System :: OS Independent", "Programming Language :: Python :: 2", "Programming Language :: Python :: 2.6", "Programming Language :: Python :: 2.7", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.2", "Programming Language :: Python :: 3.3", "Programming Language :: Python :: 3.4", "Programming Language :: Python :: Implementation :: CPython" ], "description": "|BuildStatus| |CoverageStatus| |Downloads| |License| |Docs|\n\n.. |BuildStatus| image:: https://travis-ci.org/aweber/test-helpers.svg\n :target: https://travis-ci.org/aweber/test-helpers\n.. |CoverageStatus| image:: https://coveralls.io/repos/aweber/test-helpers/badge.png\n :target: https://coveralls.io/r/aweber/test-helpers\n.. |Downloads| image:: https://pypip.in/download/test-helpers/badge.svg\n :target: https://pypi.python.org/pypi/test-helpers/\n.. |License| image:: https://pypip.in/license/test-helpers/badge.svg\n :target: https://pypi.python.org/pypi/test-helpers/\n.. |Docs| image:: https://readthedocs.org/projects/test-helpers/badge/?version=latest\n :target: http://test-helpers.readthedocs.org/en/latest/\n\nTest Helpers\n============\n\nThe Test Helpers library aims to make `Arrange-Act-Assert`_, class-based tests easier\nto write. The helpers in this module make patching easier, ease Python 3 compatibility,\nand gently guide users towards the AAA style of testing. Additional helpers are included\nfor situations likely to be encountered in the web-app world.\n\n\nExamples\n--------\n\nThe library is designed to be simple and modular. By using mixins to extend\nthe test cases functionality we can write more expressive tests in fewer lines\nof code.\n\nCreating Patches::\n\n >>> from test_helpers import mixins, bases\n >>> class WhenFooingBar(mixins.PatchMixin, bases.BaseTest):\n ...\n ... patch_prefix = 'module.submodule'\n ...\n ... @classmethod\n ... def configure(cls):\n ... cls.foo = cls.create_patch('foo', return_value=True)\n ...\n ... @classmethod\n ... def execute(cls):\n ... function_under_test()\n ...\n ... def should_have_called_foo(cls):\n ... self.foo.assert_called_once_with()\n\n\nTornado-related Extensions\n--------------------------\n\nThe Test Helpers library includes a number of helpers specific to testing\nTornado-based applications. Before you can use any of the Tornado helpers,\nyou must either:\n\n1. install Tornado as a dependency *OR*\n2. include a dependency on ``test_helpers[tornado]`` in your pip requirements\n\nDependent Data Service Helpers\n------------------------------\n\nThe Test Helpers library includes classes that facilitate initializing and\ncleaning up dependent data service resources. Provided with connection\nconfiguration to existing service instances, each class can generate name-spaced\nworkspaces and tear down any created workspaces at the end of each test run.\n\nCurrently included:\n\n- MongoDB\n- PostgreSQL\n- RabbitMQ\n\nSupported Python Versions\n--------------------------\n\nThe Test Helpers library is built and tested against python 2.7, 3.3, 3.4, and 3.5.\nYou may need to grab other versions of the interpreter with your preferred package\nmanager (MacPorts, Apt, Yum, etc)\n\n``sudo port install python27 python33``\n\n\nRunning Tests\n-------------\n\nTo run the all of the tests across the supported versions of Python via\n``tox`` run the following commands in your terminal::\n\n $ virtualenv env\n $ env/bin/pip install -r dev-requirements.txt\n $ env/bin/detox\n\n\nDeveloping The Test Helpers library\n-----------------------------------\n\nClone the repo and start hacking::\n\n $ virtualenv env\n $ env/bin/pip install -r dev-requirements.txt\n\nAuthors\n-------\n`Dan Tracy`_, `John Brodie`_, `Dave Shawley`_ at `AWeber Communications`_\n\n.. _Arrange-Act-Assert: http://c2.com/cgi/wiki?ArrangeActAssert\n.. _John Brodie: http://brodie.me\n.. _AWeber Communications: http://www.aweber.com\n.. _Dan Tracy: https://github.com/djt5019\n.. _Dave Shawley: https://github.com/dave-shawley\n\n\n", "description_content_type": null, "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "", "keywords": "", "license": "", "maintainer": "", "maintainer_email": "", "name": "test-helpers", "package_url": "https://pypi.org/project/test-helpers/", "platform": "", "project_url": "https://pypi.org/project/test-helpers/", "project_urls": null, "release_url": "https://pypi.org/project/test-helpers/1.6.0/", "requires_dist": [ "six (<2.0.0,>=1.7.2)", "pymongo (<2.8,>=2.7); extra == 'mongo'", "psycopg2 (<3.0,>=2.5); extra == 'postgres'", "requests (>=2.3); extra == 'rabbit'", "tornado (>=3.1); extra == 'tornado'" ], "requires_python": "", "summary": "A collection of test helpers to facilitate AAA testing.", "version": "1.6.0" }, "last_serial": 3398964, "releases": { "1.0.0": [ { "comment_text": "", "digests": { "md5": "6a9dc7bd831fb8a1da6a6d9eec877596", "sha256": "e3f746cdb1a974e7bfffcc90fcee7290ca6d1206ff7dd5446753cfda942040b2" }, "downloads": -1, "filename": "test-helpers-1.0.0.tar.gz", "has_sig": false, "md5_digest": "6a9dc7bd831fb8a1da6a6d9eec877596", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 10393, "upload_time": "2014-10-14T17:05:23", "url": "https://files.pythonhosted.org/packages/85/fe/8f4cc0d9f118df83f4b2a211b0b63b91f767da7aa8075e5e398d6d47a16b/test-helpers-1.0.0.tar.gz" } ], "1.5.0": [ { "comment_text": "", "digests": { "md5": "56cad9babfdbc63df94a3fe4c6590d35", "sha256": "0947feea72b8ce287db7da9dc56dcff045488f9a58f55617c55a103c8841a456" }, "downloads": -1, "filename": "test-helpers-1.5.0.tar.gz", "has_sig": false, "md5_digest": "56cad9babfdbc63df94a3fe4c6590d35", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 15526, "upload_time": "2014-10-15T18:05:55", "url": "https://files.pythonhosted.org/packages/1f/30/82a8d587f39f870d9a28b40eec57fcc33773fa865243f0334dc435ea5470/test-helpers-1.5.0.tar.gz" } ], "1.5.1": [ { "comment_text": "", "digests": { "md5": "be079740731b45453278baed52c61924", "sha256": "00b2c63f1bdd1ebbbd98a1dc34f8b1d64c7da4aacce0523f8d1525efc3bb2372" }, "downloads": -1, "filename": "test-helpers-1.5.1.tar.gz", "has_sig": false, "md5_digest": "be079740731b45453278baed52c61924", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 15717, "upload_time": "2014-10-17T19:33:27", "url": "https://files.pythonhosted.org/packages/a3/b5/ec7abe2eb71fba51ac30225216d66c32294ccd4259eae52a23ae0e86dbf4/test-helpers-1.5.1.tar.gz" } ], "1.5.3": [ { "comment_text": "", "digests": { "md5": "f7de6d90956f214da2171f66b395aa2c", "sha256": "b723cb706ad98dc520e05c728ba73c374768349383b33367467bf95f21df0647" }, "downloads": -1, "filename": "test_helpers-1.5.3-py2-none-any.whl", "has_sig": false, "md5_digest": "f7de6d90956f214da2171f66b395aa2c", "packagetype": "bdist_wheel", "python_version": "py2", "requires_python": null, "size": 19515, "upload_time": "2015-01-06T19:46:41", "url": "https://files.pythonhosted.org/packages/52/3b/2266860c3ede99996f1f3e63ec0596d313c1c2d5d34fd93bc33cbc728d5c/test_helpers-1.5.3-py2-none-any.whl" }, { "comment_text": "", "digests": { "md5": "b68431db10f57f6419c42ce0b55f5f62", "sha256": "50be1fab59164c1096119c07fb6c751e6e4e4f6a19f44fb6159b889679352808" }, "downloads": -1, "filename": "test-helpers-1.5.3.tar.gz", "has_sig": false, "md5_digest": "b68431db10f57f6419c42ce0b55f5f62", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 21560, "upload_time": "2015-01-06T19:46:39", "url": "https://files.pythonhosted.org/packages/ad/88/71de30a708bd94218c9e39bffddd3e438b50b0b65dda7694084855c04b9d/test-helpers-1.5.3.tar.gz" } ], "1.5.4": [ { "comment_text": "", "digests": { "md5": "31f43d05a6eabeac3890a7dd64ccb19c", "sha256": "c2d94e85eef766d232ff4d2b71321b62727630e5d35a4987c0d0b1528d75a50c" }, "downloads": -1, "filename": "test-helpers-1.5.4.tar.gz", "has_sig": false, "md5_digest": "31f43d05a6eabeac3890a7dd64ccb19c", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 26016, "upload_time": "2015-01-21T20:30:38", "url": "https://files.pythonhosted.org/packages/d0/27/93913f1d9a82347126ff709a2295a384b12c5eb41988c011ece7f181ad1e/test-helpers-1.5.4.tar.gz" } ], "1.6.0": [ { "comment_text": "", "digests": { "md5": "d0ae5d31077f236eabe30df601d17e0a", "sha256": "b9cfdc0ec5f6d0cc8cff16f6c58ee238dab6ce44d450a6829bc516af6b6b0211" }, "downloads": -1, "filename": "test_helpers-1.6.0-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "d0ae5d31077f236eabe30df601d17e0a", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 19618, "upload_time": "2017-12-07T21:49:42", "url": "https://files.pythonhosted.org/packages/e5/8a/7dfb4f1c34b5871ceebdcc771fe96961e31403cad564fdf12b6da752431a/test_helpers-1.6.0-py2.py3-none-any.whl" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "d0ae5d31077f236eabe30df601d17e0a", "sha256": "b9cfdc0ec5f6d0cc8cff16f6c58ee238dab6ce44d450a6829bc516af6b6b0211" }, "downloads": -1, "filename": "test_helpers-1.6.0-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "d0ae5d31077f236eabe30df601d17e0a", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 19618, "upload_time": "2017-12-07T21:49:42", "url": "https://files.pythonhosted.org/packages/e5/8a/7dfb4f1c34b5871ceebdcc771fe96961e31403cad564fdf12b6da752431a/test_helpers-1.6.0-py2.py3-none-any.whl" } ] }