- Write up the tests syntax to match up rest python packages
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-rebulk?expand=0&rev=7
This commit is contained in:
committed by
Git OBS Bridge
parent
7d20fdf763
commit
3f2ced3da4
@@ -53,6 +53,8 @@ done
|
||||
for i in {'default_rules_module','__init__','rebulk_rules_module','rules_module','test_chain','test_debug','test_introspector','test_loose','test_match','test_pattern','test_processors','test_rebulk','test_rules','test_toposort','test_validators'}; do
|
||||
sed -i -e "1d" "rebulk/test/$i.py"
|
||||
done
|
||||
# remove debug test that will always fail in OBS
|
||||
rm rebulk/test/test_debug.py
|
||||
|
||||
%build
|
||||
%python_build
|
||||
@@ -61,14 +63,11 @@ done
|
||||
%python_install
|
||||
%python_expand %fdupes -s %{buildroot}%{$python_sitelib}
|
||||
|
||||
%if 0%{?suse_version} > 1315
|
||||
%check
|
||||
%{python_expand pushd %{buildroot}%{$python_sitelib}/rebulk
|
||||
$python %{_bindir}/py.test --ignore test/test_debug.py
|
||||
rm -rf .pytest_cache
|
||||
popd
|
||||
export PYTHONDONTWRITEBYTECODE=1
|
||||
%{python_expand PYTHONPATH=%{buildroot}%{$python_sitelib}
|
||||
py.test-%{$python_version} rebulk/test/
|
||||
}
|
||||
%endif
|
||||
|
||||
%files %{python_files}
|
||||
%doc README.rst
|
||||
|
||||
Reference in New Issue
Block a user