Testfixtures
============
|CircleCI|_ |Docs|_
.. |CircleCI| image:: https://circleci.com/gh/simplistix/testfixtures/tree/master.svg?style=shield
.. _CircleCI: https://circleci.com/gh/simplistix/testfixtures/tree/master
.. |Docs| image:: https://readthedocs.org/projects/testfixtures/badge/?version=latest
.. _Docs: http://testfixtures.readthedocs.org/en/latest/
Testfixtures is a collection of helpers and mock objects that are useful when
writing automated tests in Python.
The areas of testing this package can help with are listed below:
**Comparing objects and sequences**
Better feedback when the results aren't as you expected along with
support for comparison of objects that don't normally support
comparison and comparison of deeply nested datastructures.
**Mocking out objects and methods**
Easy to use ways of stubbing out objects, classes or individual
methods. Specialised helpers and mock objects are provided, including sub-processes,
dates and times.
**Testing logging**
Helpers for capturing logging and checking what has been logged is what was expected.
**Testing stream output**
Helpers for capturing stream output, such as that from print function calls or even
stuff written directly to file descriptors, and making assertions about it.
**Testing with files and directories**
Support for creating and checking both files and directories in sandboxes
including support for other common path libraries.
**Testing exceptions and warnings**
Easy to use ways of checking that a certain exception is raised,
or a warning is issued, even down the to the parameters provided.
**Testing when using django**
Helpers for comparing instances of django models.
**Testing when using Twisted**
Helpers for making assertions about logging when using Twisted.
Raw data
{
"_id": null,
"home_page": "https://github.com/Simplistix/testfixtures",
"name": "testfixtures",
"maintainer": "",
"docs_url": null,
"requires_python": ">=3.7",
"maintainer_email": "",
"keywords": "",
"author": "Chris Withers",
"author_email": "chris@simplistix.co.uk",
"download_url": "https://files.pythonhosted.org/packages/7f/9f/0b077b02d8a2f6a1499519666991c092c2a740cc4c5c986ffc35159266c8/testfixtures-8.1.0.tar.gz",
"platform": null,
"description": "Testfixtures\n============\n\n|CircleCI|_ |Docs|_\n\n.. |CircleCI| image:: https://circleci.com/gh/simplistix/testfixtures/tree/master.svg?style=shield\n.. _CircleCI: https://circleci.com/gh/simplistix/testfixtures/tree/master\n\n.. |Docs| image:: https://readthedocs.org/projects/testfixtures/badge/?version=latest\n.. _Docs: http://testfixtures.readthedocs.org/en/latest/\n\nTestfixtures is a collection of helpers and mock objects that are useful when\nwriting automated tests in Python.\n\nThe areas of testing this package can help with are listed below:\n\n**Comparing objects and sequences**\n\nBetter feedback when the results aren't as you expected along with\nsupport for comparison of objects that don't normally support\ncomparison and comparison of deeply nested datastructures.\n\n**Mocking out objects and methods**\n\nEasy to use ways of stubbing out objects, classes or individual\nmethods. Specialised helpers and mock objects are provided, including sub-processes,\ndates and times.\n\n**Testing logging**\n\nHelpers for capturing logging and checking what has been logged is what was expected.\n\n**Testing stream output**\n\nHelpers for capturing stream output, such as that from print function calls or even\nstuff written directly to file descriptors, and making assertions about it.\n\n**Testing with files and directories**\n\nSupport for creating and checking both files and directories in sandboxes\nincluding support for other common path libraries.\n\n**Testing exceptions and warnings**\n\nEasy to use ways of checking that a certain exception is raised,\nor a warning is issued, even down the to the parameters provided.\n\n**Testing when using django**\n\nHelpers for comparing instances of django models.\n\n**Testing when using Twisted**\n\nHelpers for making assertions about logging when using Twisted.\n",
"bugtrack_url": null,
"license": "MIT",
"summary": "A collection of helpers and mock objects for unit tests and doc tests.",
"version": "8.1.0",
"project_urls": {
"Homepage": "https://github.com/Simplistix/testfixtures"
},
"split_keywords": [],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "a6d366b0fa3ed67d43652f784ba87863077e4ce127e12ee65ebfdf53e0a97df6",
"md5": "dcf6e9cab45a22adb2e6c49a702a5b7a",
"sha256": "ec70aa421ed18004f0aff31fa8f319fd2322253f557796a2f754d785dc40495d"
},
"downloads": -1,
"filename": "testfixtures-8.1.0-py3-none-any.whl",
"has_sig": false,
"md5_digest": "dcf6e9cab45a22adb2e6c49a702a5b7a",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">=3.7",
"size": 102766,
"upload_time": "2024-03-01T08:19:15",
"upload_time_iso_8601": "2024-03-01T08:19:15.492730Z",
"url": "https://files.pythonhosted.org/packages/a6/d3/66b0fa3ed67d43652f784ba87863077e4ce127e12ee65ebfdf53e0a97df6/testfixtures-8.1.0-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "7f9f0b077b02d8a2f6a1499519666991c092c2a740cc4c5c986ffc35159266c8",
"md5": "8fbbf1473628f2fb955c2d5cd7eac041",
"sha256": "80848990304859c3a2b68dfe4bcaf77b6e6425a3925047bc25a52755277bfa6d"
},
"downloads": -1,
"filename": "testfixtures-8.1.0.tar.gz",
"has_sig": false,
"md5_digest": "8fbbf1473628f2fb955c2d5cd7eac041",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.7",
"size": 134639,
"upload_time": "2024-03-01T08:19:19",
"upload_time_iso_8601": "2024-03-01T08:19:19.106094Z",
"url": "https://files.pythonhosted.org/packages/7f/9f/0b077b02d8a2f6a1499519666991c092c2a740cc4c5c986ffc35159266c8/testfixtures-8.1.0.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2024-03-01 08:19:19",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "Simplistix",
"github_project": "testfixtures",
"travis_ci": false,
"coveralls": true,
"github_actions": false,
"circle": true,
"lcname": "testfixtures"
}