Accepting request 928999 from home:pgajdos:python

- %check: use %pyunittest rpm macro

OBS-URL: https://build.opensuse.org/request/show/928999
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-UkPostcodeParser?expand=0&rev=5
This commit is contained in:
Dirk Mueller 2021-11-06 10:37:12 +00:00 committed by Git OBS Bridge
parent e349d48cfd
commit 6a1e69cafe
2 changed files with 7 additions and 2 deletions

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Wed Nov 3 11:34:19 UTC 2021 - pgajdos@suse.com
- %check: use %pyunittest rpm macro
-------------------------------------------------------------------
Mon Feb 18 00:42:49 UTC 2019 - John Vandenberg <jayvdb@gmail.com>

View File

@ -1,7 +1,7 @@
#
# spec file for package python-UkPostcodeParser
#
# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
# Copyright (c) 2021 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@ -49,7 +49,7 @@ United Kingdom Postcode parser.
%check
# no tests as it is ko for 2 years https://github.com/hamstah/ukpostcodeparser/issues/8
sed -i 's/test_\(091\|097\|098\|125\|131\)/_test_\1/' ukpostcodeparser/test/parser.py
%python_exec setup.py test
%pyunittest ukpostcodeparser.test.parser
%files %{python_files}
%license LICENSE