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3
4.3.2
4.3.0
4.2.0
4.14.3
4.14.2
4.14.1
4.14.0
4.13.5
4.13.4
4.13.3
4.13.1
4.13.0
4.12.0
4.11.0
4.10.1
4.10.0
4.1.2
4.1.1
4.1.0
4.0.2
4.0.1
4.0.0
3.0.2
3.0.1
3.0.0
2.3.5
2.3.4
2.3.3
2.3.2
2.3.1
2.3.0
2.2.0
2.1.0
2.0.1
2.0.0
11.0.0
10.0.0
1.9.2
1.9.1
1.9.0
1.8.0dev-r4464
1.8.0
1.7.0
1.6.3
1.6.2
1.6.1
1.6.0
1.5.4
1.5.3
1.5.2
1.5.1
1.5.0
1.4.0
1.3.1
1.3.0
1.2.0
1.12.0
1.11.3
1.11.2
1.11.1
1.11.0
1.10.0
1.1.0
1.0.0
توضیحات
A collection of helpers and mock objects for unit tests and doc tests.
| ویژگی | مقدار |
|---|---|
| سیستم عامل | - |
| نام فایل | testfixtures-9.2.0 |
| نام | testfixtures |
| نسخه کتابخانه | 9.2.0 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | - |
| ایمیل نویسنده | Chris Withers <chris@simplistix.co.uk> |
| آدرس صفحه اصلی | - |
| آدرس اینترنتی | https://pypi.org/project/testfixtures/ |
| مجوز | MIT |
Testfixtures
============
|Docs|_ |PyPI|_ |Git|_
.. |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://github.com/simplistix/testfixtures/actions/workflows/ci.yml/badge.svg
.. _Git: https://github.com/simplistix/testfixtures
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.
نیازمندی
| مقدار | نام |
|---|---|
| ython_versio | django>=4; |
| ython_versio | django>=5.1.3; |
| xtr | mock>=4.0.3; |
| xtr | sybil>=6.0.3; |
| xtr | tomlkit>=0.10.0; |
| xtr | twisted>=22.1; |
| xtr | pyyaml>=6.0.3; |
زبان مورد نیاز
| مقدار | نام |
|---|---|
| >=3.11 | Python |
نحوه نصب
نصب پکیج whl testfixtures-9.2.0:
pip install testfixtures-9.2.0.whl
نصب پکیج tar.gz testfixtures-9.2.0:
pip install testfixtures-9.2.0.tar.gz