{ "info": { "author": "Amir Mofakhar", "author_email": "amir@mofakhar.info", "bugtrack_url": null, "classifiers": [ "License :: OSI Approved :: Apache Software License", "Operating System :: OS Independent", "Programming Language :: Python :: 2", "Programming Language :: Python :: 3" ], "description": "[![PyPI version](https://badge.fury.io/py/execution-asserts.svg)](https://badge.fury.io/py/execution-asserts)\n[![Downloads](https://pepy.tech/badge/execution-asserts)](https://pepy.tech/project/execution-asserts)\n[![Downloads](https://pepy.tech/badge/execution-asserts/month)](https://pepy.tech/project/execution-asserts)\n\n\n# execution-asserts\n\nA collection of asserts for testing performance of the methods.\n\n## List of asserts\n\n `assertMaximumExecutionTime(max_execution_time_seconds, func, *args, **kwargs)`\n\n\n `assertMaximumMemoryUsage(max_memory_usage, func, *args, **kwargs)`\n\n## How to use \n\nLook at this sample :\n\n from unittest import TestCase\n\n from execution_assets import ExecutionTest\n\n def my_method(input_parameter):\n pass\n\n\n class MyTestCase(unittest.TestCase, ExecutionTest):\n def test_execution_time(self):\n self.assertMaximumExecutionTime(0.3, my_method, 'test_value')\n\n def test_memory_usage(self):\n self.assertMaximumMemoryUsage(12, my_method, 'test_value')\n\n", "description_content_type": "text/markdown", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/pangan/execution_asserts", "keywords": "", "license": "", "maintainer": "", "maintainer_email": "", "name": "execution-asserts", "package_url": "https://pypi.org/project/execution-asserts/", "platform": "", "project_url": "https://pypi.org/project/execution-asserts/", "project_urls": { "Homepage": "https://github.com/pangan/execution_asserts" }, "release_url": "https://pypi.org/project/execution-asserts/0.0.2/", "requires_dist": [ "memory-profiler" ], "requires_python": "", "summary": "A collection of asserts for methods execution", "version": "0.0.2" }, "last_serial": 4823955, "releases": { "0.0.1": [ { "comment_text": "", "digests": { "md5": "a36612fa514a7aef573ff8c457559d9d", "sha256": "05c795c2b1ca9826f9b528ccb33230043a170732f79c80fb1e5c06fb8e690b90" }, "downloads": -1, "filename": "execution_asserts-0.0.1-py3-none-any.whl", "has_sig": false, "md5_digest": "a36612fa514a7aef573ff8c457559d9d", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 6618, "upload_time": "2019-02-14T13:59:18", "url": "https://files.pythonhosted.org/packages/d7/38/c96bc21bb8b247be958853c603ee9edc2280a4ad699a924cb71042522070/execution_asserts-0.0.1-py3-none-any.whl" } ], "0.0.2": [ { "comment_text": "", "digests": { "md5": "a6d607e87775f5a930e0212c1e8e152f", "sha256": "5c0a1c3a26eb3aaf2604d475587bc1d2b428081bb93f7b8912f7ba5e9388c89c" }, "downloads": -1, "filename": "execution_asserts-0.0.2-py3-none-any.whl", "has_sig": false, "md5_digest": "a6d607e87775f5a930e0212c1e8e152f", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 7481, "upload_time": "2019-02-15T09:59:42", "url": "https://files.pythonhosted.org/packages/5b/0a/3e5d5e93f8d4a609c0d969f216b4bf90406a67bebb57b4a2320306c55854/execution_asserts-0.0.2-py3-none-any.whl" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "a6d607e87775f5a930e0212c1e8e152f", "sha256": "5c0a1c3a26eb3aaf2604d475587bc1d2b428081bb93f7b8912f7ba5e9388c89c" }, "downloads": -1, "filename": "execution_asserts-0.0.2-py3-none-any.whl", "has_sig": false, "md5_digest": "a6d607e87775f5a930e0212c1e8e152f", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 7481, "upload_time": "2019-02-15T09:59:42", "url": "https://files.pythonhosted.org/packages/5b/0a/3e5d5e93f8d4a609c0d969f216b4bf90406a67bebb57b4a2320306c55854/execution_asserts-0.0.2-py3-none-any.whl" } ] }