python-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
suit some people while others will suit other styles. This library
contains common test fixtures the author found himself
repeating from package to package and so decided to extract them into
their own library and give them some tests of their own!
- Developed at devel:languages:python
- Sources inherited from project openSUSE:Factory
-
7
derived packages
- Download package
-
Checkout Package
osc -A https://api.opensuse.org checkout openSUSE:Backports:SLE-15-SP4:FactoryCandidates/python-testfixtures && cd $_
- Create Badge
Refresh
Refresh
Source Files
Filename | Size | Changed |
---|---|---|
_multibuild | 0000000053 53 Bytes | |
python-testfixtures.changes | 0000015507 15.1 KB | |
python-testfixtures.spec | 0000003057 2.99 KB | |
testfixtures-8.2.0.tar.gz | 0000136662 133 KB |
Revision 27 (latest revision is 29)
Ana Guerrero (anag+factory)
accepted
request 1172638
from
Steve Kowalik (StevenK)
(revision 27)
- Update to 8.2.0: * The strict option is now correctly respected when comparing nested objects. * When comparing datetime.datetime or datetime.time instances, if the fold is the only thing that's different, it's now shown in the output. * A more detailed exception is now raised when resolving a replacement doesn't give what's expected. * Replacement of methods on instances is now prevented when strict=True. * An exception is now raised when mocking and the original is not in the __dict__ of its containing objects. * Fix bug where replacement of methods on subclasses failed when using Replacer.on_class. * Implement strict comparison as an option for datetime.datetime and datetime.time. * Retire zope.component helpers. * Support bytes in popen.MockPopen commands. * Allow TempDirectory instances to be traversed as pathlib.Path objects. * Use the system default encoding where possible in TempDirectory. * Add TempDirectory option to manage current working directory. * Allow string class attributes to be replaced with Replacer and friends. * Fix nasty bug meaning some Replacer.on_class and Replacer.in_module replacements weren't restored. * Allow an alternative separator to be used for traversal during replacement with Replacer and friends. * Officially support Python 3.12. * Drop support Python 3.6. - Add multibuild to break a cycle. - Drop patch path-comparsion-312.patch, included upstream.
Comments 0