15
0

Accepting request 827064 from home:jayvdb:py-submit

Replace nose with pytest

OBS-URL: https://build.opensuse.org/request/show/827064
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-msoffcrypto-tool?expand=0&rev=10
This commit is contained in:
2020-08-16 17:53:32 +00:00
committed by Git OBS Bridge
parent cf01e408bd
commit f72032de0b
2 changed files with 8 additions and 2 deletions

View File

@@ -37,8 +37,8 @@ BuildArch: noarch
# SECTION test requirements
BuildRequires: %{python_module coverage}
BuildRequires: %{python_module cryptography >= 2.3}
BuildRequires: %{python_module nose}
BuildRequires: %{python_module olefile >= 0.45}
BuildRequires: %{python_module pytest}
# /SECTION
%python_subpackages
@@ -60,7 +60,8 @@ wc -c msoffcrypto/method/xor_obfuscation.py | sed -n '/^0/{s/^0\s//;p}' | xargs
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%check
%python_exec -m nose --with-doctest
# pytest creates an illegitimate doctest case for __main__ which then fails
%pytest --doctest-modules -k 'not __main__'
%post
%python_install_alternative msoffcrypto-tool