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!
- Sources inherited from project devel:languages:python
- Devel package for openSUSE:Factory
-
4
derived packages
- Links to openSUSE:Factory / python-testfixtures
- Has a link diff
- Download package
-
Checkout Package
osc -A https://api.opensuse.org checkout home:Tomcat42/python-testfixtures && cd $_
- Create Badge
Refresh
Refresh
Source Files
Filename | Size | Changed |
---|---|---|
_link | 0000000124 124 Bytes | |
python-testfixtures.changes | 0000011858 11.6 KB | |
python-testfixtures.spec | 0000002896 2.83 KB | |
testfixtures-7.0.0.tar.gz | 0000126163 123 KB |
Revision 43 (latest revision is 55)
Daniel Garcia (dgarcia)
committed
(revision 43)
- Remove testfixtures-pr167-sybil3.patch, it's included in upstream now. - Update to 7.0.0 * Refresh documentation. * Add type annotations. * Drop support for Python 2. The minimum supported Python version is now 3.6. * Sybil 3 is now the minimum supported version if you use :class:`~.sybil.FileParser`. * Rename and refactor the date and time mocks, they are now :any:`mock_date`, :any:`mock_datetime` and :any:`mock_time`. :func:`test_date`, :func:`test_datetime` and :func:`test_time` are still present as aliases but are now deprecated. * Add :meth:`TempDirectory.as_string`, :meth:`TempDirectory.as_path` and :meth:`TempDirectory.as_local`. :meth:`TempDirectory.getpath` is now deprecated. * :class:`TempDirectory` can now be used to wrap existing directories. * Fixed a bug where :any:`OutputCapture.captured` returned bytes instead of a string with fd=True. * The deprecated strict option to :class:`Comparison` has been removed, use the partial option instead. * The deprecated :meth:`TempDirectory.check`, :meth:`TempDirectory.check_dir` and :meth:`TempDirectory.check_all` methods have been removed. - 6.18.5 (1 Mar 2022) * Fix bug in detection of Mock backport. - 6.18.4 (25 Feb 2022) * Ensure compatibility with Sybil 2 and Sybil 3 along with pytest 6 and pytest 7.
Comments 0