2011-04-16 18:52:38 +00:00
|
|
|
#
|
2021-10-16 19:31:23 +00:00
|
|
|
# spec file
|
2011-04-16 18:52:38 +00:00
|
|
|
#
|
2022-11-11 13:47:06 +00:00
|
|
|
# Copyright (c) 2022 SUSE LLC
|
2011-04-16 18:52:38 +00:00
|
|
|
#
|
|
|
|
# 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.
|
- 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
|
|
|
|
2019-10-14 14:47:25 +00:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2011-04-16 18:52:38 +00:00
|
|
|
#
|
|
|
|
|
- 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
|
|
|
|
2020-06-11 12:11:48 +00:00
|
|
|
%global flavor @BUILD_FLAVOR@%{nil}
|
|
|
|
%if "%{flavor}" == "test"
|
|
|
|
%define psuffix -test
|
|
|
|
%bcond_without test
|
|
|
|
%else
|
|
|
|
%define psuffix %{nil}
|
|
|
|
%bcond_with test
|
|
|
|
%endif
|
|
|
|
Name: python-testtools%{psuffix}
|
2021-10-16 19:31:23 +00:00
|
|
|
Version: 2.5.0
|
2011-04-16 18:52:38 +00:00
|
|
|
Release: 0
|
- Update to 0.9.12:
- Changes:
* ``AfterPreproccessing`` renamed to ``AfterPreprocessing``, which is a
more correct spelling. Old name preserved for backwards compatibility,
but is now deprecated. Please stop using it. (Jonathan Lange, #813460)
* ``assertThat`` raises ``MismatchError`` instead of
``TestCase.failureException``. ``MismatchError`` is a subclass of
``AssertionError``, so in most cases this change will not matter.
However, if ``self.failureException`` has been set to a non-default
value, then mismatches will become test errors rather than test
failures.
* ``gather_details`` takes two dicts, rather than two detailed objects.
(Jonathan Lange, #801027)
* ``MatchesRegex`` mismatch now says "<value> does not match /<regex>/"
rather than "<regex> did not match <value>". The regular expression
contains fewer backslashes too. (Jonathan Lange, #818079)
* Tests that run with ``AsynchronousDeferredRunTest`` now have the
``reactor`` attribute set to the running reactor. (Jonathan Lange,
#720749)
- Improvements:
* All public matchers are now in ``testtools.matchers.__all__``. (Jonathan
Lange, #784859)
* ``assertThat`` can actually display mismatches and matchers that contain
extended unicode characters. (Jonathan Lange, Martin [gz], #804127)
* ``assertThat`` output is much less verbose, displaying only what the
mismatch tells us to display. Old-style verbose output can be had by
passing ``verbose=True`` to assertThat. (Jonathan Lange, #675323,
#593190)
* ``assertThat`` accepts a message which will be used to annotate the
matcher. This can be given as a third parameter or as a keyword
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-testtools?expand=0&rev=2
2011-12-11 21:15:04 +00:00
|
|
|
Summary: Extensions to the Python Standard Library Unit Testing Framework
|
- 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
|
|
|
License: MIT
|
2011-04-16 18:52:38 +00:00
|
|
|
Group: Development/Languages/Python
|
2018-08-10 11:27:57 +00:00
|
|
|
URL: https://github.com/testing-cabal/testtools
|
2022-11-21 14:19:57 +00:00
|
|
|
Source0: https://files.pythonhosted.org/packages/source/t/testtools/testtools-%{version}.tar.gz
|
|
|
|
Source99: python-testtools.rpmlintrc
|
2017-05-22 06:29:53 +00:00
|
|
|
BuildRequires: %{python_module pbr}
|
|
|
|
BuildRequires: %{python_module setuptools}
|
|
|
|
BuildRequires: fdupes
|
|
|
|
BuildRequires: python-rpm-macros
|
2016-08-31 06:45:12 +00:00
|
|
|
Requires: python-extras >= 1.0.0
|
2017-04-07 16:25:47 +00:00
|
|
|
Requires: python-pbr >= 0.11
|
2013-05-06 15:11:20 +00:00
|
|
|
Requires: python-python-mimeparse
|
2017-04-07 16:25:47 +00:00
|
|
|
Requires: python-traceback2
|
2018-08-10 11:27:57 +00:00
|
|
|
BuildArch: noarch
|
2020-06-11 12:11:48 +00:00
|
|
|
%if %{with test}
|
|
|
|
BuildRequires: %{python_module extras >= 1.0.0}
|
|
|
|
BuildRequires: %{python_module python-mimeparse}
|
|
|
|
BuildRequires: %{python_module testscenarios}
|
|
|
|
BuildRequires: %{python_module traceback2}
|
|
|
|
%endif
|
2017-04-14 16:46:59 +00:00
|
|
|
Recommends: python-fixtures >= 1.3.0
|
2017-04-07 16:25:47 +00:00
|
|
|
%python_subpackages
|
2011-04-16 18:52:38 +00:00
|
|
|
|
|
|
|
%description
|
2013-06-25 11:32:51 +00:00
|
|
|
testtools is a set of extensions to the Python standard library's unit tests
|
2011-04-16 18:52:38 +00:00
|
|
|
framework. These extensions have been derived from many years of experience
|
2013-06-25 11:32:51 +00:00
|
|
|
with unit tests in Python and come from many different sources. testtools
|
2011-04-16 18:52:38 +00:00
|
|
|
also ports recent unittest changes all the way back to Python 2.4.
|
|
|
|
|
|
|
|
%prep
|
2012-12-06 11:02:18 +00:00
|
|
|
%setup -q -n testtools-%{version}
|
2018-11-15 11:40:30 +00:00
|
|
|
|
2020-06-11 12:11:48 +00:00
|
|
|
%if !%{with test}
|
2011-04-16 18:52:38 +00:00
|
|
|
%build
|
2017-04-07 16:25:47 +00:00
|
|
|
%python_build
|
2020-06-11 12:11:48 +00:00
|
|
|
%endif
|
2011-04-16 18:52:38 +00:00
|
|
|
|
2020-06-11 12:11:48 +00:00
|
|
|
%if !%{with test}
|
2011-04-16 18:52:38 +00:00
|
|
|
%install
|
2017-04-07 16:25:47 +00:00
|
|
|
%python_install
|
2019-10-14 14:47:25 +00:00
|
|
|
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
2020-06-11 12:11:48 +00:00
|
|
|
%endif
|
|
|
|
|
|
|
|
%if %{with test}
|
|
|
|
%check
|
|
|
|
%python_exec -m testtools.run testtools.tests.test_suite
|
|
|
|
%endif
|
2011-04-16 18:52:38 +00:00
|
|
|
|
2020-06-11 12:11:48 +00:00
|
|
|
%if !%{with test}
|
2017-04-07 16:25:47 +00:00
|
|
|
%files %{python_files}
|
2018-08-10 11:27:57 +00:00
|
|
|
%license LICENSE
|
|
|
|
%doc NEWS README.rst
|
2013-06-21 09:34:48 +00:00
|
|
|
%{python_sitelib}/testtools
|
2017-04-12 14:49:51 +00:00
|
|
|
%{python_sitelib}/testtools-%{version}-py*.egg-info
|
2020-06-11 12:11:48 +00:00
|
|
|
%endif
|
2011-04-16 18:52:38 +00:00
|
|
|
|
- Update to 0.9.12:
- Changes:
* ``AfterPreproccessing`` renamed to ``AfterPreprocessing``, which is a
more correct spelling. Old name preserved for backwards compatibility,
but is now deprecated. Please stop using it. (Jonathan Lange, #813460)
* ``assertThat`` raises ``MismatchError`` instead of
``TestCase.failureException``. ``MismatchError`` is a subclass of
``AssertionError``, so in most cases this change will not matter.
However, if ``self.failureException`` has been set to a non-default
value, then mismatches will become test errors rather than test
failures.
* ``gather_details`` takes two dicts, rather than two detailed objects.
(Jonathan Lange, #801027)
* ``MatchesRegex`` mismatch now says "<value> does not match /<regex>/"
rather than "<regex> did not match <value>". The regular expression
contains fewer backslashes too. (Jonathan Lange, #818079)
* Tests that run with ``AsynchronousDeferredRunTest`` now have the
``reactor`` attribute set to the running reactor. (Jonathan Lange,
#720749)
- Improvements:
* All public matchers are now in ``testtools.matchers.__all__``. (Jonathan
Lange, #784859)
* ``assertThat`` can actually display mismatches and matchers that contain
extended unicode characters. (Jonathan Lange, Martin [gz], #804127)
* ``assertThat`` output is much less verbose, displaying only what the
mismatch tells us to display. Old-style verbose output can be had by
passing ``verbose=True`` to assertThat. (Jonathan Lange, #675323,
#593190)
* ``assertThat`` accepts a message which will be used to annotate the
matcher. This can be given as a third parameter or as a keyword
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-testtools?expand=0&rev=2
2011-12-11 21:15:04 +00:00
|
|
|
%changelog
|