{ "info": { "author": "Tomasz Kontusz", "author_email": "tomasz.kontusz@gmail.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 4 - Beta", "Framework :: Pytest", "Intended Audience :: Developers", "License :: OSI Approved :: MIT License", "Operating System :: OS Independent", "Programming Language :: Python", "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 :: Implementation :: CPython", "Programming Language :: Python :: Implementation :: PyPy", "Topic :: Software Development :: Testing" ], "description": "================\npytest-freezegun\n================\n\n.. image:: https://travis-ci.org/ktosiek/pytest-freezegun.svg?branch=master\n :target: https://travis-ci.org/ktosiek/pytest-freezegun\n :alt: See Build Status on Travis CI\n\n.. image:: https://ci.appveyor.com/api/projects/status/github/ktosiek/pytest-freezegun?branch=master&svg=true\n :target: https://ci.appveyor.com/project/ktosiek/pytest-freezegun/branch/master\n :alt: See Build Status on AppVeyor\n\nWrap tests with fixtures in freeze_time\n\n\nFeatures\n--------\n\n* Freeze time in both the test and fixtures\n* Access the freezer when you need it\n\n\nInstallation\n------------\n\nYou can install \"pytest-freezegun\" via `pip`_ from `PyPI`_::\n\n $ pip install pytest-freezegun\n\n\nUsage\n-----\n\nAll the features can be seen in this example:\n\n.. code-block:: python\n\n @pytest.fixture\n def current_date():\n return datetime.now().date()\n\n @pytest.mark.freeze_time('2017-05-21')\n def test_current_date(current_date):\n assert current_date == date(2017, 5, 21)\n\n @pytest.mark.freeze_time\n def test_changing_date(current_date, freezer):\n freezer.move_to('2017-05-20')\n assert current_date == date(2017, 5, 20)\n freezer.move_to('2017-05-21')\n assert current_date == date(2017, 5, 21)\n\n def test_not_using_marker(freezer):\n now = datetime.now()\n time.sleep(1)\n later = datetime.now()\n assert now == later\n\nContributing\n------------\nContributions are very welcome.\nTests can be run with `tox`_.\nYou can later check coverage with `coverage combine && coverage html`.\nPlease try to keep coverage at least the same before you submit a pull request.\n\nLicense\n-------\n\nDistributed under the terms of the `MIT`_ license, \"pytest-freezegun\" is free and open source software\n\n\nIssues\n------\n\nIf you encounter any problems, please `file an issue`_ along with a detailed description.\n\nCredits\n-------\n\nThis `Pytest`_ plugin was generated with `Cookiecutter`_ along with `@hackebrot`_'s `Cookiecutter-pytest-plugin`_ template.\n\n\n.. _`Cookiecutter`: https://github.com/audreyr/cookiecutter\n.. _`@hackebrot`: https://github.com/hackebrot\n.. _`MIT`: http://opensource.org/licenses/MIT\n.. _`cookiecutter-pytest-plugin`: https://github.com/pytest-dev/cookiecutter-pytest-plugin\n.. _`file an issue`: https://github.com/ktosiek/pytest-freezegun/issues\n.. _`pytest`: https://github.com/pytest-dev/pytest\n.. _`tox`: https://tox.readthedocs.io/en/latest/\n.. _`pip`: https://pypi.python.org/pypi/pip/\n.. _`PyPI`: https://pypi.python.org/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/ktosiek/pytest-freezegun", "keywords": "", "license": "MIT", "maintainer": "Tomasz Kontusz", "maintainer_email": "tomasz.kontusz@gmail.com", "name": "pytest-freezegun", "package_url": "https://pypi.org/project/pytest-freezegun/", "platform": "", "project_url": "https://pypi.org/project/pytest-freezegun/", "project_urls": { "Homepage": "https://github.com/ktosiek/pytest-freezegun" }, "release_url": "https://pypi.org/project/pytest-freezegun/0.3.0.post1/", "requires_dist": [ "freezegun (>0.3)", "pytest (>=3.0.0)" ], "requires_python": "", "summary": "Wrap tests with fixtures in freeze_time", "version": "0.3.0.post1" }, "last_serial": 4518150, "releases": { "0.1.0": [ { "comment_text": "", "digests": { "md5": "a6981be49b821864464d2e6b5db3ecaa", "sha256": "6cac13a948bfa9099f4744480c508a9a6f2a5f1c5a7cc7a86c9b7fc36475a157" }, "downloads": -1, "filename": "pytest_freezegun-0.1.0-py2-none-any.whl", "has_sig": false, "md5_digest": "a6981be49b821864464d2e6b5db3ecaa", "packagetype": "bdist_wheel", "python_version": "py2", "requires_python": null, "size": 4751, "upload_time": "2017-05-21T15:28:53", "url": "https://files.pythonhosted.org/packages/bb/3f/f25c7e7fec5ba29f8945920ece050523b30a200a7b682fda11ae70bb64ab/pytest_freezegun-0.1.0-py2-none-any.whl" }, { "comment_text": "", "digests": { "md5": "d6330ed77420764ed5e2db0c66d4fc5f", "sha256": "8ce160dbc4299f10d686239b9d4a0af509226dd8fa8fa8055f4ffc53d758fa29" }, "downloads": -1, "filename": "pytest-freezegun-0.1.0.tar.gz", "has_sig": false, "md5_digest": "d6330ed77420764ed5e2db0c66d4fc5f", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3405, "upload_time": "2017-05-21T15:28:55", "url": "https://files.pythonhosted.org/packages/44/53/14980e9ba18fbb9c3d6b43e793adfa5e61089c44479d1e5aeeb2332f6f25/pytest-freezegun-0.1.0.tar.gz" } ], "0.2.0": [ { "comment_text": "", "digests": { "md5": "9a7486976ad2ee25516241cc9fa30ee2", "sha256": "101ddc1da1b478f4b75c64a3d82184e5df3061dbc13515eeaf1305efb0d5d8f7" }, "downloads": -1, "filename": "pytest_freezegun-0.2.0-py2-none-any.whl", "has_sig": false, "md5_digest": "9a7486976ad2ee25516241cc9fa30ee2", "packagetype": "bdist_wheel", "python_version": "py2", "requires_python": null, "size": 5098, "upload_time": "2017-09-25T18:55:47", "url": "https://files.pythonhosted.org/packages/68/00/5d7cac3169841fcdee9e39d0b39c5b241f3457b662ae85616f0281f8dc9b/pytest_freezegun-0.2.0-py2-none-any.whl" }, { "comment_text": "", "digests": { "md5": "41eee769dcaa3fa9a64daf3a64161f00", "sha256": "212c471cd519dcd74dca8dbd15670ef6d630b2016f5874d4c147b7128ccf9693" }, "downloads": -1, "filename": "pytest-freezegun-0.2.0.tar.gz", "has_sig": false, "md5_digest": "41eee769dcaa3fa9a64daf3a64161f00", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3652, "upload_time": "2017-09-25T18:55:50", "url": "https://files.pythonhosted.org/packages/6d/09/e2e9a1dfacee46d56105f78e0d1bae05162bf493793e501a3d0ccb695982/pytest-freezegun-0.2.0.tar.gz" } ], "0.3.0": [ { "comment_text": "", "digests": { "md5": "b796f317aac610e8885c4db8cc1d4001", "sha256": "88bb8c2a0b3a9623dd2a565693786d6a0f87aaf929dfca2b1680b5d84abcde71" }, "downloads": -1, "filename": "pytest_freezegun-0.3.0-py3-none-any.whl", "has_sig": false, "md5_digest": "b796f317aac610e8885c4db8cc1d4001", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 4002, "upload_time": "2018-11-15T21:24:10", "url": "https://files.pythonhosted.org/packages/68/8c/c65f31ac0059ad939903131142ae64cbf47ae12756a78e851831471394e3/pytest_freezegun-0.3.0-py3-none-any.whl" } ], "0.3.0.post1": [ { "comment_text": "", "digests": { "md5": "a94a0b7815ca6ef2d29715948408887f", "sha256": "94c370a2cd3db9692962522cb74525d908e669df7cb53a448e01bb47c21a8173" }, "downloads": -1, "filename": "pytest_freezegun-0.3.0.post1-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "a94a0b7815ca6ef2d29715948408887f", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 4308, "upload_time": "2018-11-22T19:37:58", "url": "https://files.pythonhosted.org/packages/5d/41/a95042f853852718ffebcaed2791aa03ae50f9722050b5ce801df635fc5a/pytest_freezegun-0.3.0.post1-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "2bf9d50fa0c78d20c193e7ded635bc2f", "sha256": "b86b13ef75959bedf4c32f1fd81fec66fa4502d9892e0ef6ad1717a34fe1560e" }, "downloads": -1, "filename": "pytest-freezegun-0.3.0.post1.zip", "has_sig": false, "md5_digest": "2bf9d50fa0c78d20c193e7ded635bc2f", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 8259, "upload_time": "2018-11-22T19:38:00", "url": "https://files.pythonhosted.org/packages/71/b9/49668fdd9bc2fc751d3621b4230a53fa347ec8f8cdf6cc144a98a7088194/pytest-freezegun-0.3.0.post1.zip" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "a94a0b7815ca6ef2d29715948408887f", "sha256": "94c370a2cd3db9692962522cb74525d908e669df7cb53a448e01bb47c21a8173" }, "downloads": -1, "filename": "pytest_freezegun-0.3.0.post1-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "a94a0b7815ca6ef2d29715948408887f", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 4308, "upload_time": "2018-11-22T19:37:58", "url": "https://files.pythonhosted.org/packages/5d/41/a95042f853852718ffebcaed2791aa03ae50f9722050b5ce801df635fc5a/pytest_freezegun-0.3.0.post1-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "2bf9d50fa0c78d20c193e7ded635bc2f", "sha256": "b86b13ef75959bedf4c32f1fd81fec66fa4502d9892e0ef6ad1717a34fe1560e" }, "downloads": -1, "filename": "pytest-freezegun-0.3.0.post1.zip", "has_sig": false, "md5_digest": "2bf9d50fa0c78d20c193e7ded635bc2f", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 8259, "upload_time": "2018-11-22T19:38:00", "url": "https://files.pythonhosted.org/packages/71/b9/49668fdd9bc2fc751d3621b4230a53fa347ec8f8cdf6cc144a98a7088194/pytest-freezegun-0.3.0.post1.zip" } ] }