Sync from SUSE:SLFO:Main python-pytest-subtests revision 6bbf87383d627b6ad33e2804a9623545

This commit is contained in:
Adrian Schröter 2024-05-03 22:30:51 +02:00
commit 3c1001fb2c
4 changed files with 165 additions and 0 deletions

23
.gitattributes vendored Normal file
View File

@ -0,0 +1,23 @@
## Default LFS
*.7z filter=lfs diff=lfs merge=lfs -text
*.bsp filter=lfs diff=lfs merge=lfs -text
*.bz2 filter=lfs diff=lfs merge=lfs -text
*.gem filter=lfs diff=lfs merge=lfs -text
*.gz filter=lfs diff=lfs merge=lfs -text
*.jar filter=lfs diff=lfs merge=lfs -text
*.lz filter=lfs diff=lfs merge=lfs -text
*.lzma filter=lfs diff=lfs merge=lfs -text
*.obscpio filter=lfs diff=lfs merge=lfs -text
*.oxt filter=lfs diff=lfs merge=lfs -text
*.pdf filter=lfs diff=lfs merge=lfs -text
*.png filter=lfs diff=lfs merge=lfs -text
*.rpm filter=lfs diff=lfs merge=lfs -text
*.tbz filter=lfs diff=lfs merge=lfs -text
*.tbz2 filter=lfs diff=lfs merge=lfs -text
*.tgz filter=lfs diff=lfs merge=lfs -text
*.ttf filter=lfs diff=lfs merge=lfs -text
*.txz filter=lfs diff=lfs merge=lfs -text
*.whl filter=lfs diff=lfs merge=lfs -text
*.xz filter=lfs diff=lfs merge=lfs -text
*.zip filter=lfs diff=lfs merge=lfs -text
*.zst filter=lfs diff=lfs merge=lfs -text

BIN
pytest-subtests-0.11.0.tar.gz (Stored with Git LFS) Normal file

Binary file not shown.

View File

@ -0,0 +1,77 @@
-------------------------------------------------------------------
Wed May 31 19:44:46 UTC 2023 - Dirk Müller <dmueller@suse.com>
- update to 0.11.0:
* Logging is displayed for failing subtests (`#92`_)
* Passing subtests no longer turn the pytest output to yellow
(as if warnings have been issued)
* Now the ``msg`` contents of a subtest is displayed when
running pytest with ``-v``.
-------------------------------------------------------------------
Fri Apr 21 12:32:00 UTC 2023 - Dirk Müller <dmueller@suse.com>
- add sle15_python_module_pythons (jsc#PED-68)
-------------------------------------------------------------------
Mon Mar 27 07:22:47 UTC 2023 - Dirk Müller <dmueller@suse.com>
- update to 0.10.0:
* Added experimental support for suppressing subtest output
dots in non-verbose mode with ``--no-subtests-shortletter``
-- this allows the native pytest column calculations to not
be disrupted and minimizes unneeded output for large CI
systems.
-------------------------------------------------------------------
Tue Jan 10 04:19:50 UTC 2023 - Steve Kowalik <steven.kowalik@suse.com>
- Update to 0.9.0:
* Python 3.11 is officially supported.
* Dropped support for Python 3.6.
* Now passing subtests are shown in the test run summary at the end (for
example: 10 failed, 1 passed, 10 subtests passed in 0.10s) (#70).
* Fixed support for pytest 7.0, and pytest>=7.0 is now required.
* pytest>=6.0 is now required.
* Added official support for Python 3.10.
* Dropped support for Python 3.5.
* Users no longer need to configure a warnings filter for the internal A
private pytest class or function was used pytest warning (#52).
* Experimental: Use SUBPASS and , for passed subtests instead of general
PASSED, SUBFAIL and u for failed ones instead of FAILED (#30).
-------------------------------------------------------------------
Thu Oct 7 09:36:20 UTC 2021 - Pedro Monreal <pmonreal@suse.com>
- Update to 0.5.0
* Add support for pytest.mark.xfail
-------------------------------------------------------------------
Sat Mar 20 20:03:28 UTC 2021 - Ben Greiner <code@bnavigator.de>
- Update to 0.4.0
* Add Python 3.9 support and bump pytest requirement
* Add support for --pdb
-------------------------------------------------------------------
Thu Nov 5 15:02:17 UTC 2020 - Marketa Machova <mmachova@suse.com>
- Update to 0.3.2
* Fix pytest 6.0 support.
-------------------------------------------------------------------
Tue Jun 9 07:43:33 UTC 2020 - Tomáš Chvátal <tchvatal@suse.com>
- Update to 0.3.1:
* Fix pytest 5.4 support.
-------------------------------------------------------------------
Thu Feb 20 07:12:11 UTC 2020 - Tomáš Chvátal <tchvatal@suse.com>
- Update to 0.3.0:
* subtests now correctly captures and displays stdout/stderr (#18).
-------------------------------------------------------------------
Wed Aug 28 01:03:09 PM UTC 2019 - John Vandenberg <jayvdb@gmail.com>
- Initial spec for v0.2.1

View File

@ -0,0 +1,62 @@
#
# spec file for package python-pytest-subtests
#
# Copyright (c) 2023 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.
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
%{?sle15_python_module_pythons}
Name: python-pytest-subtests
Version: 0.11.0
Release: 0
Summary: Python unittest subTest() support and subtests fixture
License: MIT
URL: https://github.com/pytest-dev/pytest-subtests
Source: https://files.pythonhosted.org/packages/source/p/pytest-subtests/pytest-subtests-%{version}.tar.gz
BuildRequires: %{python_module pip}
BuildRequires: %{python_module setuptools_scm}
BuildRequires: %{python_module wheel}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
Requires: python-pytest >= 7.0
BuildArch: noarch
# SECTION test requirements
BuildRequires: %{python_module pytest >= 7.0}
# /SECTION
%python_subpackages
%description
Python unittest subTest() support and subtests fixture.
%prep
%setup -q -n pytest-subtests-%{version}
%build
%pyproject_wheel
%install
%pyproject_install
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%check
%pytest
%files %{python_files}
%doc CHANGELOG.rst README.rst
%license LICENSE
%{python_sitelib}/pytest_subtests.py*
%pycache_only %{python_sitelib}/__pycache__/pytest_subtests*.pyc
%{python_sitelib}/pytest_subtests-%{version}*-info
%changelog