{ "info": { "author": "Dave Anderson", "author_email": "dave@dvndrsn.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 2 - Pre-Alpha", "Intended Audience :: Developers", "License :: OSI Approved :: MIT License", "Natural Language :: English", "Programming Language :: Python :: 2", "Programming Language :: Python :: 2.7", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.4", "Programming Language :: Python :: 3.5", "Programming Language :: Python :: 3.6", "Programming Language :: Python :: 3.7" ], "description": "======\nAllows\n======\n\n\n.. image:: https://img.shields.io/pypi/v/allows.svg\n :target: https://pypi.python.org/pypi/allows\n\n.. image:: https://img.shields.io/travis/dvndrsn/allows.svg\n :target: https://travis-ci.org/dvndrsn/allows\n\n.. image:: https://readthedocs.org/projects/allows/badge/?version=latest\n :target: https://allows.readthedocs.io/en/latest/?badge=latest\n :alt: Documentation Status\n\n\n.. image:: https://pyup.io/repos/github/dvndrsn/allows/shield.svg\n :target: https://pyup.io/repos/github/dvndrsn/allows/\n :alt: Updates\n\n\n\nEasier mock configuration and assertions in Python using R-spec_-like grammar!\n\n.. code:: python\n\n allow(my_mock).to(return_value('hi').on_method('wave'))\n allow(my_mock).to(return_value('bye').on_method('wave').when_called_with('see ya'))\n\n assert my_mock.wave() == 'hi'\n assert my_mock.wave('see ya') == 'bye'\n\nThis library is built to wrap and configure Mock, MagicMock and other objects from the built in `unittest.mock`_ available in Python 3.3+.\n\n.. _unittest.mock: https://docs.python.org/3/library/unittest.mock.html\n\n* Free software: MIT license\n* Documentation: https://allows.readthedocs.io.\n\n\nFeatures\n--------\n\n* R-spec_-like grammar for specifing Mock behavior\n* Compatible with all Python standard library `unittest.mock`_ Mock (MagicMock, Patch, etc.)\n* Stand alone SideEffect builder to model and combine complex side effects\n\n.. _R-spec: https://rspec.info/documentation/3.8/rspec-mocks/\n\nCredits\n-------\n\nThis package was created with Cookiecutter_ and the `audreyr/cookiecutter-pypackage`_ project template.\n\n.. _Cookiecutter: https://github.com/audreyr/cookiecutter\n.. _`audreyr/cookiecutter-pypackage`: https://github.com/audreyr/cookiecutter-pypackage\n\n\n=======\nHistory\n=======\n\n0.1.0 (2019-05-11)\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/dvndrsn/allows", "keywords": "allows", "license": "MIT license", "maintainer": "", "maintainer_email": "", "name": "allows", "package_url": "https://pypi.org/project/allows/", "platform": "", "project_url": "https://pypi.org/project/allows/", "project_urls": { "Homepage": "https://github.com/dvndrsn/allows" }, "release_url": "https://pypi.org/project/allows/0.1.0/", "requires_dist": null, "requires_python": "", "summary": "Easier mock configuration and assertions in Python", "version": "0.1.0" }, "last_serial": 5346926, "releases": { "0.1.0": [ { "comment_text": "", "digests": { "md5": "7b8fee35f9873af034e67a0c7a11bde0", "sha256": "7be292796170c837bc3bd0945bdc3d2caf8db30898781b28808592efbcd4bff5" }, "downloads": -1, "filename": "allows-0.1.0-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "7b8fee35f9873af034e67a0c7a11bde0", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 7117, "upload_time": "2019-06-01T17:34:21", "url": "https://files.pythonhosted.org/packages/b2/18/d5900a1330be599d4a95e450e62f7841691f72350395dd6fa275e1f96ad7/allows-0.1.0-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "d8f2d71a19fb7f025acadcc7419c99d4", "sha256": "9fda563ebb4fd9a4c8e9b5e3343ff4261665dc489a1558f995859c7b1c4452dd" }, "downloads": -1, "filename": "allows-0.1.0.tar.gz", "has_sig": false, "md5_digest": "d8f2d71a19fb7f025acadcc7419c99d4", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 11893, "upload_time": "2019-06-01T17:34:23", "url": "https://files.pythonhosted.org/packages/d4/75/37ecf93443dd9c00c6f3f6fa621eb9d6db7c3d6a8955a2d97e3016f919ea/allows-0.1.0.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "7b8fee35f9873af034e67a0c7a11bde0", "sha256": "7be292796170c837bc3bd0945bdc3d2caf8db30898781b28808592efbcd4bff5" }, "downloads": -1, "filename": "allows-0.1.0-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "7b8fee35f9873af034e67a0c7a11bde0", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 7117, "upload_time": "2019-06-01T17:34:21", "url": "https://files.pythonhosted.org/packages/b2/18/d5900a1330be599d4a95e450e62f7841691f72350395dd6fa275e1f96ad7/allows-0.1.0-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "d8f2d71a19fb7f025acadcc7419c99d4", "sha256": "9fda563ebb4fd9a4c8e9b5e3343ff4261665dc489a1558f995859c7b1c4452dd" }, "downloads": -1, "filename": "allows-0.1.0.tar.gz", "has_sig": false, "md5_digest": "d8f2d71a19fb7f025acadcc7419c99d4", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 11893, "upload_time": "2019-06-01T17:34:23", "url": "https://files.pythonhosted.org/packages/d4/75/37ecf93443dd9c00c6f3f6fa621eb9d6db7c3d6a8955a2d97e3016f919ea/allows-0.1.0.tar.gz" } ] }