Accepting request 989963 from home:mcepl:branches:devel:languages:python

- Add BR of wcag-contrast-ratio to enable more tests.

OBS-URL: https://build.opensuse.org/request/show/989963
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-Pygments?expand=0&rev=85
This commit is contained in:
Matej Cepl 2022-07-18 13:12:36 +00:00 committed by Git OBS Bridge
parent fb5373309a
commit 7a6601f27e
2 changed files with 7 additions and 1 deletions

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Mon Jul 18 12:58:46 UTC 2022 - Matej Cepl <mcepl@suse.com>
- Add BR of wcag-contrast-ratio to enable more tests.
-------------------------------------------------------------------
Mon Jul 18 12:11:36 UTC 2022 - Matej Cepl <mcepl@suse.com>

View File

@ -37,6 +37,7 @@ BuildRequires: %{python_module base >= 3.5}
BuildRequires: %{python_module lxml}
BuildRequires: %{python_module pytest >= 7}
BuildRequires: %{python_module setuptools}
BuildRequires: %{python_module wcag-contrast-ratio}
BuildRequires: fdupes
BuildRequires: python-rpm-macros >= 20210929
# Preferred for plugin loading, see https://pygments.org/docs/plugins/
@ -84,7 +85,7 @@ install -Dm0644 doc/pygmentize.1 %{buildroot}%{_mandir}/man1/pygmentize.1
%check
# skip test that requires wcag-contrast-ratio Python package
%pytest --ignore tests/contrast/test_contrasts.py
%pytest
%pre
# If libalternatives is used: Removing old update-alternatives entries.