python-testtools/python-testtools.spec

87 lines
2.5 KiB
RPMSpec
Raw Normal View History

#
# spec file
#
# Copyright (c) 2022 SUSE LLC
#
# 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
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
- 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
%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}
Version: 2.5.0
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
Group: Development/Languages/Python
URL: https://github.com/testing-cabal/testtools
Source: https://files.pythonhosted.org/packages/source/t/testtools/testtools-%{version}.tar.gz
BuildRequires: %{python_module pbr}
BuildRequires: %{python_module setuptools}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
Requires: python-extras >= 1.0.0
Requires: python-pbr >= 0.11
Requires: python-python-mimeparse
Requires: python-traceback2
BuildArch: noarch
%if %{with test}
BuildRequires: %{python_module extras >= 1.0.0}
BuildRequires: %{python_module python-mimeparse}
BuildRequires: %{python_module testscenarios}
BuildRequires: %{python_module traceback2}
%endif
Recommends: python-fixtures >= 1.3.0
%python_subpackages
%description
testtools is a set of extensions to the Python standard library's unit tests
framework. These extensions have been derived from many years of experience
with unit tests 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}
%if !%{with test}
%build
%python_build
%endif
%if !%{with test}
%install
%python_install
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%endif
%if %{with test}
%check
%python_exec -m testtools.run testtools.tests.test_suite
%endif
%if !%{with test}
%files %{python_files}
%license LICENSE
%doc NEWS README.rst
%{python_sitelib}/testtools
%{python_sitelib}/testtools-%{version}-py*.egg-info
%endif
- 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