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 |
---|---|---|
python-testfixtures.changes | 0000011858 11.6 KB | |
python-testfixtures.spec | 0000002896 2.83 KB | |
testfixtures-7.0.0.tar.gz | 0000126163 123 KB |
Revision 22 (latest revision is 29)
Fabian Vogt (favogt_factory)
accepted
request 1008127
from
Daniel Garcia (dgarcia)
(revision 22)
- Remove testfixtures-sybil3-py310.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