{ "info": { "author": "Pete Fein", "author_email": "pete@wearpants.org", "bugtrack_url": null, "classifiers": [ "Development Status :: 5 - Production/Stable", "Intended Audience :: Developers", "License :: OSI Approved :: BSD License", "Programming Language :: Python :: 2", "Programming Language :: Python :: 3" ], "description": "fakesleep\n=========\n\nfakesleep is a simple module for tests that use `time.sleep()`. Sleeping in\ntests is generally considered bad (as it makes tests run slow). Using\nsleep with `time.time()` can lead to spurious failures, as clock\nprecision / interpeter overhead can cause small differences in reported\ntimes.\n\nBut sometimes, you need `sleep()`.\n\nfakesleep provides a fake implementation of `time.sleep()` that doesn't\nactually sleep. It also guarrantees \"correct\" results for calls to\n`time.time()` and other time functions. Note that `datetime` functions are\n**not** faked.\n\nTo install, simply call `fakesleep.monkey_patch()`. To restore the real versions, call `fakesleep.monkey_restore()`.\n\n:author: Pete Fein \n:license: BSD\n:versions: Python 2.7 & 3\n:source: https://github.com/wearpants/fakesleep", "description_content_type": null, "docs_url": null, "download_url": "UNKNOWN", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "http://github.com/wearpants/fakesleep", "keywords": null, "license": "BSD", "maintainer": null, "maintainer_email": null, "name": "fakesleep", "package_url": "https://pypi.org/project/fakesleep/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/fakesleep/", "project_urls": { "Download": "UNKNOWN", "Homepage": "http://github.com/wearpants/fakesleep" }, "release_url": "https://pypi.org/project/fakesleep/0.1/", "requires_dist": null, "requires_python": null, "summary": "fake time.sleep() for use in tests", "version": "0.1" }, "last_serial": 855789, "releases": { "0.1": [ { "comment_text": "", "digests": { "md5": "1f18e03697894ec8fc3b1712341229f6", "sha256": "c577e2183207bf5f509b4f06100cd4722660300f9953e396d730727937bdfc41" }, "downloads": -1, "filename": "fakesleep-0.1.tar.gz", "has_sig": true, "md5_digest": "1f18e03697894ec8fc3b1712341229f6", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 8194, "upload_time": "2013-09-03T15:02:51", "url": "https://files.pythonhosted.org/packages/df/91/e0036831c41ceb08a7c7887b9da348acf66b85d00d91227dab18bb51f56a/fakesleep-0.1.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "1f18e03697894ec8fc3b1712341229f6", "sha256": "c577e2183207bf5f509b4f06100cd4722660300f9953e396d730727937bdfc41" }, "downloads": -1, "filename": "fakesleep-0.1.tar.gz", "has_sig": true, "md5_digest": "1f18e03697894ec8fc3b1712341229f6", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 8194, "upload_time": "2013-09-03T15:02:51", "url": "https://files.pythonhosted.org/packages/df/91/e0036831c41ceb08a7c7887b9da348acf66b85d00d91227dab18bb51f56a/fakesleep-0.1.tar.gz" } ] }