This release is a pre-release and may not be stable for production use.
TestFixtures
TestFixtures is a collection of helpers and mock objects that are useful when writing unit tests or doc tests.
If you’re wondering why “yet another mock object library”, testing is often described as an art form and as such some styles of library will suite some people while others will suite other styles. This library contains common test fixtures the author found himself repeating from package to packages and so decided to extract them into their own library and give them some tests of their own!
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.
Mocking out objects and methods
Easy to use ways of stubbing out objects, classes or individual methods for both doc tests and unit tests. Special helpers are provided for testing with dates and times.
Testing logging
Helpers for capturing logging output in both doc tests and unit tests.
Testing with files and directories
Support for creating and checking files and directories in sandboxes for both doc tests and unit tests.
Testing exceptions
Easy to use ways of checking that a certain exception is raised, even down the to the parameters the exception is raised with.
Metadata
Release files for testfixtures 1.8.0dev-r4464
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| testfixtures-1.8.0dev-r4464.tar.gz | 46.5 kB | Without provenance | Details for testfixtures-1.8.0dev-r4464.tar.gz |
Release files / testfixtures-1.8.0dev-r4464.tar.gz
| Download URL | testfixtures-1.8.0dev-r4464.tar.gz |
|---|---|
| Size | 46.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
d8d97e57b57a3a916cd2e4bc8e59f65085827e5077b506399058a6083bbea144
|
|
BLAKE2b-256 checksum How to use checksums |
dda9c8ed018ca6fe9a176192947ec6369037ce31caeb143b2147750bc7e29838
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for testfixtures 1.8.0dev-r4464
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.