forked from pool/python-pytest-sugar
This commit is contained in:
committed by
Git OBS Bridge
parent
108b76c7e8
commit
015aeef5d7
@@ -26,8 +26,7 @@ Group: Development/Languages/Python
|
|||||||
URL: https://github.com/Frozenball/pytest-sugar
|
URL: https://github.com/Frozenball/pytest-sugar
|
||||||
Source: https://files.pythonhosted.org/packages/source/p/pytest-sugar/pytest-sugar-%{version}.tar.gz
|
Source: https://files.pythonhosted.org/packages/source/p/pytest-sugar/pytest-sugar-%{version}.tar.gz
|
||||||
Patch0: pytest4.patch
|
Patch0: pytest4.patch
|
||||||
# https://github.com/Frozenball/pytest-sugar/issues/180
|
BuildRequires: %{python_module pytest}
|
||||||
BuildRequires: %{python_module pytest < 5.0}
|
|
||||||
BuildRequires: %{python_module setuptools}
|
BuildRequires: %{python_module setuptools}
|
||||||
BuildRequires: %{python_module termcolor}
|
BuildRequires: %{python_module termcolor}
|
||||||
BuildRequires: fdupes
|
BuildRequires: fdupes
|
||||||
@@ -52,7 +51,9 @@ pytest-sugar is a plugin for py.test that shows failures and errors instantly an
|
|||||||
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
||||||
|
|
||||||
%check
|
%check
|
||||||
%python_expand PYTHONPATH=%{buildroot}%{$python_sitelib} py.test-%{$python_bin_suffix}
|
# test_item_count_after_pytest_collection_modifyitems - https://github.com/Frozenball/pytest-sugar/issues/180
|
||||||
|
# test_doctest - same as above
|
||||||
|
%pytest -k 'not test_item_count_after_pytest_collection_modifyitems and not test_doctest'
|
||||||
|
|
||||||
%files %{python_files}
|
%files %{python_files}
|
||||||
%license LICENSE
|
%license LICENSE
|
||||||
|
|||||||
Reference in New Issue
Block a user