14
0

Accepting request 1155640 from home:bmwiedemann:branches:devel:languages:python

Fix build with --nocheck

OBS-URL: https://build.opensuse.org/request/show/1155640
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pypuppetdb?expand=0&rev=16
This commit is contained in:
2024-03-07 05:54:48 +00:00
committed by Git OBS Bridge
parent 28eedd4aaf
commit 5164856708
2 changed files with 8 additions and 2 deletions

View File

@@ -51,12 +51,13 @@ More information: https://github.com/nedap/pypuppetdb
%python_install
%python_expand %fdupes %{buildroot}%{$python_sitelib}
# requirements-test.txt packages oddly
rm %{buildroot}/usr/requirements_for_tests/requirements-test.txt
%check
# https://github.com/voxpupuli/pypuppetdb/issues/227
sed -i 's:import mock:from unittest import mock:' tests/test_*.py
%pytest
# requirements-test.txt packages oddly
rm %{buildroot}/usr/requirements_for_tests/requirements-test.txt
%files %{python_files}
%doc README.md CHANGELOG.md