forked from pool/python-pytest-examples
Accepting request 1290605 from devel:languages:python:pytest
- Update to 0.0.18: * adapt tests to pytest 8.3.4 * Increase triple quote search - Drop patch newline.patch, included upstream. - Skip a broken test with pytest 8.4. - Ship README and license. OBS-URL: https://build.opensuse.org/request/show/1290605 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-pytest-examples?expand=0&rev=10
This commit is contained in:
@@ -1,28 +0,0 @@
|
||||
Index: pytest_examples-0.0.15/tests/test_run_examples.py
|
||||
===================================================================
|
||||
--- pytest_examples-0.0.15.orig/tests/test_run_examples.py
|
||||
+++ pytest_examples-0.0.15/tests/test_run_examples.py
|
||||
@@ -171,6 +171,7 @@ def test_find_run_examples(example: Code
|
||||
'@@ -4 +4 @@',
|
||||
'-x =[1,2, 3]',
|
||||
'+x = [1, 2, 3]',
|
||||
+ '',
|
||||
]
|
||||
|
||||
|
||||
@@ -205,6 +206,7 @@ def test_find_run_examples(example: Code
|
||||
'@@ -4 +4 @@',
|
||||
'-x·=[1,2,·3]',
|
||||
'+x·=·[1,·2,·3]',
|
||||
+ '',
|
||||
]
|
||||
|
||||
|
||||
@@ -251,6 +253,7 @@ def test_find_run_examples(example: Code
|
||||
'- 3',
|
||||
'-]',
|
||||
'+x = [1, 2, 3]',
|
||||
+ '',
|
||||
]
|
||||
|
||||
|
||||
BIN
pytest_examples-0.0.17.tar.gz
(Stored with Git LFS)
BIN
pytest_examples-0.0.17.tar.gz
(Stored with Git LFS)
Binary file not shown.
3
pytest_examples-0.0.18.tar.gz
Normal file
3
pytest_examples-0.0.18.tar.gz
Normal file
@@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:9a464f007f805b113677a15e2f8942ebb92d7d3eb5312e9a405d018478ec9801
|
||||
size 21237
|
||||
@@ -1,3 +1,13 @@
|
||||
-------------------------------------------------------------------
|
||||
Fri Jul 4 06:12:42 UTC 2025 - Steve Kowalik <steven.kowalik@suse.com>
|
||||
|
||||
- Update to 0.0.18:
|
||||
* adapt tests to pytest 8.3.4
|
||||
* Increase triple quote search
|
||||
- Drop patch newline.patch, included upstream.
|
||||
- Skip a broken test with pytest 8.4.
|
||||
- Ship README and license.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Mon Apr 28 16:51:32 UTC 2025 - Dirk Müller <dmueller@suse.com>
|
||||
|
||||
|
||||
@@ -18,15 +18,12 @@
|
||||
|
||||
%{?sle15_python_module_pythons}
|
||||
Name: python-pytest-examples
|
||||
Version: 0.0.17
|
||||
Version: 0.0.18
|
||||
Release: 0
|
||||
Summary: Pytest plugin for testing examples in docstrings and markdown files
|
||||
License: MIT
|
||||
URL: https://github.com/pydantic/pytest-examples
|
||||
# sdist without tests
|
||||
Source: https://files.pythonhosted.org/packages/source/p/pytest-examples/pytest_examples-%{version}.tar.gz
|
||||
# PATCH-FIX-UPSTREAM https://github.com/pydantic/pytest-examples/pull/54 adapt tests to pytest 8.3.4
|
||||
Patch: newline.patch
|
||||
BuildRequires: %{python_module black}
|
||||
BuildRequires: %{python_module hatchling}
|
||||
BuildRequires: %{python_module pip}
|
||||
@@ -61,9 +58,11 @@ It can also update code examples in place to format them and insert or update pr
|
||||
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
||||
|
||||
%check
|
||||
%pytest
|
||||
%pytest -k 'not test_run_example_ok_fail'
|
||||
|
||||
%files %{python_files}
|
||||
%license LICENSE
|
||||
%doc README.md
|
||||
%{python_sitelib}/pytest_examples
|
||||
%{python_sitelib}/pytest_examples-%{version}.dist-info
|
||||
|
||||
|
||||
Reference in New Issue
Block a user