14
0

- Update to 0.9.14:

* Our sister project, `subunit <https://launchpad.net/subunit>`_, was using
    a private API that was deleted in the 0.9.13 release. This release
    restores that API in order to smooth out the upgrade path.
    If you don't use subunit, then this release won't matter very much to you.
- 0.9.13
  - Changes
    * ``MatchesAll`` now takes an ``first_only`` keyword argument that changes
      how mismatches are displayed. If you were previously passing matchers to
      ``MatchesAll`` with keyword arguments, then this change might affect
      your test results. (Jonathan Lange)
  - Improvements
    * Actually hide all of the testtools stack for assertion failures. The
      previous release promised clean stack, but now we actually provide it.
      (Jonathan Lange, #854769)
    * ``assertRaises`` now includes the ``repr`` of the callable that failed
      to raise properly. (Jonathan Lange, #881052)
    * Asynchronous tests no longer hang when run with trial.
      (Jonathan Lange, #926189)
    * ``Content`` objects now have an ``as_text`` method to convert their
      contents to Unicode text.  (Jonathan Lange)
    * Failed equality assertions now line up. (Jonathan Lange, #879339)
    * ``FullStackRunTest`` no longer aborts the test run if a test raises an
      error.  (Jonathan Lange)
    * ``MatchesAll`` and ``MatchesListwise`` both take a ``first_only``
      keyword argument.  If True, they will report only on the first mismatch
      they find, and not continue looking for other possible mismatches.
      (Jonathan Lange)
    * New helper, ``Nullary`` that turns callables with arguments into ones
      that don't take arguments.  (Jonathan Lange)

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-testtools?expand=0&rev=3
This commit is contained in:
2012-02-21 19:46:39 +00:00
committed by Git OBS Bridge
parent 463b4f3d46
commit eaa8a7b308
4 changed files with 62 additions and 4 deletions

View File

@@ -1,3 +1,60 @@
-------------------------------------------------------------------
Tue Feb 21 19:39:22 UTC 2012 - jfunk@funktronics.ca
- Update to 0.9.14:
* Our sister project, `subunit <https://launchpad.net/subunit>`_, was using
a private API that was deleted in the 0.9.13 release. This release
restores that API in order to smooth out the upgrade path.
If you don't use subunit, then this release won't matter very much to you.
- 0.9.13
- Changes
* ``MatchesAll`` now takes an ``first_only`` keyword argument that changes
how mismatches are displayed. If you were previously passing matchers to
``MatchesAll`` with keyword arguments, then this change might affect
your test results. (Jonathan Lange)
- Improvements
* Actually hide all of the testtools stack for assertion failures. The
previous release promised clean stack, but now we actually provide it.
(Jonathan Lange, #854769)
* ``assertRaises`` now includes the ``repr`` of the callable that failed
to raise properly. (Jonathan Lange, #881052)
* Asynchronous tests no longer hang when run with trial.
(Jonathan Lange, #926189)
* ``Content`` objects now have an ``as_text`` method to convert their
contents to Unicode text. (Jonathan Lange)
* Failed equality assertions now line up. (Jonathan Lange, #879339)
* ``FullStackRunTest`` no longer aborts the test run if a test raises an
error. (Jonathan Lange)
* ``MatchesAll`` and ``MatchesListwise`` both take a ``first_only``
keyword argument. If True, they will report only on the first mismatch
they find, and not continue looking for other possible mismatches.
(Jonathan Lange)
* New helper, ``Nullary`` that turns callables with arguments into ones
that don't take arguments. (Jonathan Lange)
* New matchers:
* ``DirContains`` matches the contents of a directory.
(Jonathan Lange, James Westby)
* ``DirExists`` matches if a directory exists.
(Jonathan Lange, James Westby)
* ``FileContains`` matches the contents of a file.
(Jonathan Lange, James Westby)
* ``FileExists`` matches if a file exists.
(Jonathan Lange, James Westby)
* ``HasPermissions`` matches the permissions of a file. (Jonathan Lange)
* ``MatchesPredicate`` matches if a predicate is true. (Jonathan Lange)
* ``PathExists`` matches if a path exists. (Jonathan Lange, James
Westby)
* ``SamePath`` matches if two paths are the same. (Jonathan Lange)
* ``TarballContains`` matches the contents of a tarball. (Jonathan
Lange)
* ``MultiTestResult`` supports the ``tags`` method.
(Graham Binns, Francesco Banconi, #914279)
* ``ThreadsafeForwardingResult`` supports the ``tags`` method.
(Graham Binns, Francesco Banconi, #914279)
* ``ThreadsafeForwardingResult`` no longer includes semaphore acquisition
time in the test duration (for implicitly timed test runs).
(Robert Collins, #914362)
------------------------------------------------------------------- -------------------------------------------------------------------
Sun Dec 11 20:52:09 UTC 2011 - jfunk@funktronics.ca Sun Dec 11 20:52:09 UTC 2011 - jfunk@funktronics.ca

View File

@@ -21,7 +21,7 @@
%define mod_name testtools %define mod_name testtools
Name: python-%{mod_name} Name: python-%{mod_name}
Version: 0.9.12 Version: 0.9.14
Release: 0 Release: 0
License: MIT License: MIT
Summary: Extensions to the Python Standard Library Unit Testing Framework Summary: Extensions to the Python Standard Library Unit Testing Framework
@@ -45,6 +45,7 @@ also ports recent unittest changes all the way back to Python 2.4.
%prep %prep
%setup -q -n %{mod_name}-%{version} %setup -q -n %{mod_name}-%{version}
find -type f -name "*~" | xargs rm -f
%build %build
export CFLAGS="%{optflags}" export CFLAGS="%{optflags}"

View File

@@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:7b82c52889182f4ab7524b9db89ac552e1927677d861c60da9ad7ad5a38b48f8
size 124672

3
testtools-0.9.14.tar.gz Normal file
View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:8fbe8736822caa3f95a3c65cf4df9e6d68aab5edd6f0adf3eebd0072d1a012cc
size 146103