testfixtures


Nametestfixtures JSON
Version 8.3.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_time2024-06-07 18:12:27
maintainerNone
docs_urlNone
authorChris Withers
requires_python>=3.7
licenseMIT
keywords
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage
            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": null,
    "docs_url": null,
    "requires_python": ">=3.7",
    "maintainer_email": null,
    "keywords": null,
    "author": "Chris Withers",
    "author_email": "chris@simplistix.co.uk",
    "download_url": "https://files.pythonhosted.org/packages/3b/25/d7e9d05f87e2ab84657a0dfb1f24fc295d542ac2eb221531d976ea4aa1ff/testfixtures-8.3.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.3.0",
    "project_urls": {
        "Homepage": "https://github.com/Simplistix/testfixtures"
    },
    "split_keywords": [],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "1a4e699671ba484b94bda0959b281ff59b24f728263befd13e060fa038ce3bc8",
                "md5": "96b2fb7886f99c0b7b5f0a7463017366",
                "sha256": "3d1e0e0005c4d6ac2a2ab27916704c6471047f0d2f78f2e54adf20abdacc7b10"
            },
            "downloads": -1,
            "filename": "testfixtures-8.3.0-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "96b2fb7886f99c0b7b5f0a7463017366",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.7",
            "size": 105085,
            "upload_time": "2024-06-07T18:12:23",
            "upload_time_iso_8601": "2024-06-07T18:12:23.298943Z",
            "url": "https://files.pythonhosted.org/packages/1a/4e/699671ba484b94bda0959b281ff59b24f728263befd13e060fa038ce3bc8/testfixtures-8.3.0-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "3b25d7e9d05f87e2ab84657a0dfb1f24fc295d542ac2eb221531d976ea4aa1ff",
                "md5": "2fb494de4ba08d85e7b68f90cb296698",
                "sha256": "d4c0b84af2f267610f908009b50d6f983a4e58ade22c67bab6787b5a402d59c0"
            },
            "downloads": -1,
            "filename": "testfixtures-8.3.0.tar.gz",
            "has_sig": false,
            "md5_digest": "2fb494de4ba08d85e7b68f90cb296698",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.7",
            "size": 137420,
            "upload_time": "2024-06-07T18:12:27",
            "upload_time_iso_8601": "2024-06-07T18:12:27.484259Z",
            "url": "https://files.pythonhosted.org/packages/3b/25/d7e9d05f87e2ab84657a0dfb1f24fc295d542ac2eb221531d976ea4aa1ff/testfixtures-8.3.0.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-06-07 18:12:27",
    "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: 0.32605s