forked from pool/python-pytest-tldr
- Add patch support-pytest-cov-6.patch:
* Support pytest output change. OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:pytest/python-pytest-tldr?expand=0&rev=16
This commit is contained in:
@@ -1,3 +1,9 @@
|
||||
-------------------------------------------------------------------
|
||||
Fri Jul 4 05:41:05 UTC 2025 - Steve Kowalik <steven.kowalik@suse.com>
|
||||
|
||||
- Add patch support-pytest-cov-6.patch:
|
||||
* Support pytest output change.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Wed May 7 06:59:51 UTC 2025 - Steve Kowalik <steven.kowalik@suse.com>
|
||||
|
||||
|
||||
@@ -23,6 +23,7 @@ Summary: A pytest plugin that limits the output to just the things you ne
|
||||
License: BSD-3-Clause
|
||||
URL: https://github.com/freakboy3742/pytest-tldr
|
||||
Source: https://files.pythonhosted.org/packages/source/p/pytest-tldr/pytest-tldr-%{version}.tar.gz
|
||||
Patch0: support-pytest-cov-6.patch
|
||||
BuildRequires: %{python_module pip}
|
||||
BuildRequires: %{python_module pytest >= 3.5.0}
|
||||
BuildRequires: %{python_module pytest-cov}
|
||||
@@ -38,7 +39,7 @@ BuildArch: noarch
|
||||
A pytest plugin that limits the output to just the things you need.
|
||||
|
||||
%prep
|
||||
%setup -q -n pytest-tldr-%{version}
|
||||
%autosetup -p1 -n pytest-tldr-%{version}
|
||||
|
||||
%build
|
||||
%pyproject_wheel
|
||||
@@ -53,7 +54,7 @@ A pytest plugin that limits the output to just the things you need.
|
||||
%files %{python_files}
|
||||
%doc README.rst
|
||||
%license LICENSE
|
||||
%pycache_only %{python_sitelib}/__pycache__/*.pyc
|
||||
%pycache_only %{python_sitelib}/__pycache__/pytest_tldr.*.pyc
|
||||
%{python_sitelib}/pytest_tldr.py
|
||||
%{python_sitelib}/pytest_tldr-%{version}.dist-info
|
||||
|
||||
|
||||
13
support-pytest-cov-6.patch
Normal file
13
support-pytest-cov-6.patch
Normal file
@@ -0,0 +1,13 @@
|
||||
Index: pytest-tldr-0.2.5/tests/test_plugins.py
|
||||
===================================================================
|
||||
--- pytest-tldr-0.2.5.orig/tests/test_plugins.py
|
||||
+++ pytest-tldr-0.2.5/tests/test_plugins.py
|
||||
@@ -10,7 +10,7 @@ def test_coverage(testdir):
|
||||
result.stdout.fnmatch_lines(
|
||||
[
|
||||
"test_coverage.py::test_coverage ... ok",
|
||||
- "*----- coverage: platform *-----",
|
||||
+ "*_____ coverage: platform *_____",
|
||||
"Name Stmts Miss Cover",
|
||||
"--------------------------------------",
|
||||
"test_coverage.py 2 0 100%",
|
||||
Reference in New Issue
Block a user