commit 3c1001fb2c8ab92dc62206c45c922213fa25775db7811bd529c9656c6dcc2d72 Author: Adrian Schröter Date: Fri May 3 22:30:51 2024 +0200 Sync from SUSE:SLFO:Main python-pytest-subtests revision 6bbf87383d627b6ad33e2804a9623545 diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -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 diff --git a/pytest-subtests-0.11.0.tar.gz b/pytest-subtests-0.11.0.tar.gz new file mode 100644 index 0000000..20abcd8 --- /dev/null +++ b/pytest-subtests-0.11.0.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:51865c88457545f51fb72011942f0a3c6901ee9e24cbfb6d1b9dc1348bafbe37 +size 12763 diff --git a/python-pytest-subtests.changes b/python-pytest-subtests.changes new file mode 100644 index 0000000..1713513 --- /dev/null +++ b/python-pytest-subtests.changes @@ -0,0 +1,77 @@ +------------------------------------------------------------------- +Wed May 31 19:44:46 UTC 2023 - Dirk Müller + +- 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 + +- add sle15_python_module_pythons (jsc#PED-68) + +------------------------------------------------------------------- +Mon Mar 27 07:22:47 UTC 2023 - Dirk Müller + +- 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 + +- 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 + +- Update to 0.5.0 + * Add support for pytest.mark.xfail + +------------------------------------------------------------------- +Sat Mar 20 20:03:28 UTC 2021 - Ben Greiner + +- 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 + +- Update to 0.3.2 + * Fix pytest 6.0 support. + +------------------------------------------------------------------- +Tue Jun 9 07:43:33 UTC 2020 - Tomáš Chvátal + +- Update to 0.3.1: + * Fix pytest 5.4 support. + +------------------------------------------------------------------- +Thu Feb 20 07:12:11 UTC 2020 - Tomáš Chvátal + +- 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 + +- Initial spec for v0.2.1 diff --git a/python-pytest-subtests.spec b/python-pytest-subtests.spec new file mode 100644 index 0000000..1a0a534 --- /dev/null +++ b/python-pytest-subtests.spec @@ -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