testfixtures


Nametestfixtures JSON
Version 9.1.0 PyPI version JSON
download
home_pagehttps://github.com/Simplistix/testfixtures
SummaryA collection of helpers and mock objects for unit tests and doc tests.
upload_time2025-07-08 19:30:55
maintainerNone
docs_urlNone
authorChris Withers
requires_python>=3.11
licenseMIT
keywords
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage
            Testfixtures
============

|Docs|_ |PyPI|_  |Git|_ |CircleCI|_

.. |Docs| image:: https://readthedocs.org/projects/testfixtures/badge/?version=latest
.. _Docs: http://testfixtures.readthedocs.org/en/latest/

.. |PyPI| image:: https://badge.fury.io/py/testfixtures.svg
.. _PyPI: https://pypi.org/project/testfixtures/

.. |Git| image:: https://badge.fury.io/gh/simplistix%2Ftestfixtures.svg
.. _Git: https://github.com/simplistix/testfixtures

.. |CircleCI| image:: https://circleci.com/gh/simplistix/testfixtures/tree/master.svg?style=shield
.. _CircleCI: https://circleci.com/gh/simplistix/testfixtures/tree/master

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": null,
    "docs_url": null,
    "requires_python": ">=3.11",
    "maintainer_email": null,
    "keywords": null,
    "author": "Chris Withers",
    "author_email": "chris@simplistix.co.uk",
    "download_url": "https://files.pythonhosted.org/packages/76/37/1084db985a7bda417f012570f369d18a6b4afbc59bc423908d0219c38188/testfixtures-9.1.0.tar.gz",
    "platform": null,
    "description": "Testfixtures\n============\n\n|Docs|_ |PyPI|_  |Git|_ |CircleCI|_\n\n.. |Docs| image:: https://readthedocs.org/projects/testfixtures/badge/?version=latest\n.. _Docs: http://testfixtures.readthedocs.org/en/latest/\n\n.. |PyPI| image:: https://badge.fury.io/py/testfixtures.svg\n.. _PyPI: https://pypi.org/project/testfixtures/\n\n.. |Git| image:: https://badge.fury.io/gh/simplistix%2Ftestfixtures.svg\n.. _Git: https://github.com/simplistix/testfixtures\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\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": "9.1.0",
    "project_urls": {
        "Homepage": "https://github.com/Simplistix/testfixtures"
    },
    "split_keywords": [],
    "urls": [
        {
            "comment_text": null,
            "digests": {
                "blake2b_256": "f3b6c60e4a39c6bc717e7c08d1428e2bf53e735bbb020563c91d7f272aa552b1",
                "md5": "d8c14f5cadbc47bf803e892e99b092eb",
                "sha256": "2f4786194cd92b0b2f2f2d29f72346bdd0191baae58532532b7bfcaecd59ba02"
            },
            "downloads": -1,
            "filename": "testfixtures-9.1.0-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "d8c14f5cadbc47bf803e892e99b092eb",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.11",
            "size": 106258,
            "upload_time": "2025-07-08T19:30:53",
            "upload_time_iso_8601": "2025-07-08T19:30:53.614554Z",
            "url": "https://files.pythonhosted.org/packages/f3/b6/c60e4a39c6bc717e7c08d1428e2bf53e735bbb020563c91d7f272aa552b1/testfixtures-9.1.0-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": null,
            "digests": {
                "blake2b_256": "76371084db985a7bda417f012570f369d18a6b4afbc59bc423908d0219c38188",
                "md5": "47a6be41dc5754459f723b5e4d208231",
                "sha256": "517e9cf353942723533ae1100ca45dd27fe0785c3ad2765075f5cb1cbce01482"
            },
            "downloads": -1,
            "filename": "testfixtures-9.1.0.tar.gz",
            "has_sig": false,
            "md5_digest": "47a6be41dc5754459f723b5e4d208231",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.11",
            "size": 88605,
            "upload_time": "2025-07-08T19:30:55",
            "upload_time_iso_8601": "2025-07-08T19:30:55.157292Z",
            "url": "https://files.pythonhosted.org/packages/76/37/1084db985a7bda417f012570f369d18a6b4afbc59bc423908d0219c38188/testfixtures-9.1.0.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2025-07-08 19:30:55",
    "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"
}
        
Elapsed time: 1.56905s