Accepting request 1225816 from devel:languages:python
- add pytest8.patch OBS-URL: https://build.opensuse.org/request/show/1225816 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-pydicom-data?expand=0&rev=3
This commit is contained in:
commit
1fc8adeadf
12
pytest8.patch
Normal file
12
pytest8.patch
Normal file
@ -0,0 +1,12 @@
|
|||||||
|
--- a/data_store/tests/test_utils.py
|
||||||
|
+++ b/data_store/tests/test_utils.py
|
||||||
|
@@ -10,7 +10,7 @@
|
||||||
|
|
||||||
|
class TestDataStore:
|
||||||
|
"""Test the interface for the data sources"""
|
||||||
|
- def setup(self):
|
||||||
|
+ def setup_method(self):
|
||||||
|
self.data_path = Path(__file__).resolve().parent.parent / "data"
|
||||||
|
self.fname = "693_UNCI.dcm"
|
||||||
|
|
||||||
|
Nur in b/pydicom-data-1.0.0: .pytest_cache.
|
@ -1,3 +1,8 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Fri Nov 22 12:21:03 UTC 2024 - Dirk Müller <dmueller@suse.com>
|
||||||
|
|
||||||
|
- add pytest8.patch
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Tue Jan 16 10:04:00 UTC 2024 - Axel Braun <axel.braun@gmx.de>
|
Tue Jan 16 10:04:00 UTC 2024 - Axel Braun <axel.braun@gmx.de>
|
||||||
|
|
||||||
|
@ -24,6 +24,7 @@ Summary: Test files for pydicom
|
|||||||
License: MIT
|
License: MIT
|
||||||
URL: https://github.com/pydicom/pydicom-data/
|
URL: https://github.com/pydicom/pydicom-data/
|
||||||
Source: https://files.pythonhosted.org/packages/source/p/pydicom-data/pydicom-data-%{version}.tar.gz
|
Source: https://files.pythonhosted.org/packages/source/p/pydicom-data/pydicom-data-%{version}.tar.gz
|
||||||
|
Patch1: pytest8.patch
|
||||||
BuildRequires: %{python_module pip}
|
BuildRequires: %{python_module pip}
|
||||||
BuildRequires: %{python_module pytest}
|
BuildRequires: %{python_module pytest}
|
||||||
BuildRequires: %{python_module setuptools}
|
BuildRequires: %{python_module setuptools}
|
||||||
@ -37,7 +38,7 @@ BuildArch: noarch
|
|||||||
Test files used by pydicom and other packages by the same organisation.
|
Test files used by pydicom and other packages by the same organisation.
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q -n pydicom-data-%{version}
|
%autosetup -p1 -n pydicom-data-%{version}
|
||||||
|
|
||||||
%build
|
%build
|
||||||
%pyproject_wheel
|
%pyproject_wheel
|
||||||
@ -47,7 +48,7 @@ Test files used by pydicom and other packages by the same organisation.
|
|||||||
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
||||||
|
|
||||||
%check
|
%check
|
||||||
%pytest -rs
|
%pytest
|
||||||
|
|
||||||
%files %{python_files}
|
%files %{python_files}
|
||||||
%{python_sitelib}/data_store
|
%{python_sitelib}/data_store
|
||||||
|
Loading…
Reference in New Issue
Block a user