14
0
Files
python-testtools/python-testtools.spec
Sascha Peilicke 6380ce2dd4 - Update to version 0.9.24:
* testtools.run discover will now sort the tests it discovered. This is a 
    workaround for http://bugs.python.org/issue16709. Non-standard test suites
    are preserved, and their sort_tests() method called (if they have such an
    attribute). testtools.testsuite.sorted_tests(suite, True) can be used by
    such suites to do a local sort.
  * ThreadsafeForwardingResult now defines a stub progress method, which
    fixes testr run of streams containing progress markers (by discarding the 
    progress data).
- Changes from version 0.9.23:
  * run.TestToolsTestRunner now accepts the verbosity, buffer and failfast
    arguments the upstream python TestProgram code wants to give it, making it
    possible to support them in a compatible fashion. (Robert Collins)
  * testtools.run now supports the -f or --failfast parameter.
    Previously it was advertised in the help but ignored.
  * AnyMatch added, a new matcher that matches when any item in a collection
    matches the given matcher.
  * Spelling corrections to documentation.
  * TestProgram now has a sane default for its testRunner argument.
  * The test suite passes on Python 3 again.
- Changes from version 0.9.22:
  * content_from_file and content_from_stream now accept seek_offset and
    seek_whence parameters allowing them to be used to grab less than the full
    stream, or to be used with StringIO streams.
  * DirContains correctly exposed, after being accidentally hidden in the
    - MatchesDict, match every key in a dictionary with a key in a
    - ContainsDict, every key in a dictionary of matchers must be
    - ContainedByDict, every key in a dictionary must be found in
  testtools.matchers package and was thus completely broken.  This release
  * The testtools.matchers package has been split up.  No change to the

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-testtools?expand=0&rev=9
2013-01-14 12:38:44 +00:00

61 lines
2.0 KiB
RPMSpec

#
# spec file for package python-testtools
#
# Copyright (c) 2013 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
Name: python-testtools
Version: 0.9.24
Release: 0
Summary: Extensions to the Python Standard Library Unit Testing Framework
License: MIT
Group: Development/Languages/Python
Url: https://launchpad.net/testtools
Source: testtools-%{version}.tar.gz
BuildRequires: python-Sphinx
BuildRequires: python-devel
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%if 0%{?suse_version} && 0%{?suse_version} <= 1110
%{!?python_sitelib: %global python_sitelib %(python -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
%else
BuildArch: noarch
%endif
%description
testtools is a set of extensions to the Python standard library's unit testing
framework. These extensions have been derived from many years of experience
with unit testing in Python and come from many different sources. testtools
also ports recent unittest changes all the way back to Python 2.4.
%prep
%setup -q -n testtools-%{version}
%build
python setup.py build
cd doc && make html && rm _build/html/.buildinfo # Build HTML documentation
%install
python setup.py install --prefix=%{_prefix} --root=%{buildroot}
%check
python setup.py test
%files
%defattr(-,root,root,-)
%doc LICENSE NEWS README doc/_build/html
%{python_sitelib}/testtools*
%changelog