Accepting request 676166 from devel:languages:python:pytest
- Make sure we execute tests OBS-URL: https://build.opensuse.org/request/show/676166 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-pytest-randomly?expand=0&rev=2
This commit is contained in:
commit
6b653eefe0
@ -1,3 +1,8 @@
|
||||
-------------------------------------------------------------------
|
||||
Thu Feb 14 15:24:04 UTC 2019 - Tomáš Chvátal <tchvatal@suse.com>
|
||||
|
||||
- Make sure we execute tests
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Mon Jan 21 03:52:33 UTC 2019 - Todd R <toddrme2178@gmail.com>
|
||||
|
||||
|
@ -25,13 +25,16 @@ License: BSD-3-Clause
|
||||
Group: Development/Languages/Python
|
||||
URL: https://github.com/adamchainz/pytest-randomly
|
||||
Source: https://files.pythonhosted.org/packages/source/p/pytest-randomly/pytest-randomly-%{version}.tar.gz
|
||||
BuildRequires: %{python_module devel}
|
||||
BuildRequires: %{python_module setuptools}
|
||||
BuildRequires: fdupes
|
||||
BuildRequires: python-rpm-macros
|
||||
Requires: python-Faker
|
||||
Requires: python-pytest
|
||||
BuildArch: noarch
|
||||
# SECTION test requirements
|
||||
BuildRequires: %{python_module Faker}
|
||||
BuildRequires: %{python_module factory_boy}
|
||||
BuildRequires: %{python_module numpy}
|
||||
BuildRequires: %{python_module pytest}
|
||||
# /SECTION
|
||||
%python_subpackages
|
||||
@ -40,7 +43,6 @@ BuildRequires: %{python_module pytest}
|
||||
Pytest plugin to randomly order tests and control random.seed.
|
||||
|
||||
Features:
|
||||
|
||||
* Randomly shuffles the order of test items. This is done first at
|
||||
the level of modules, then at the level of test classes (if you
|
||||
have them), then at the order of functions. This also works with
|
||||
@ -67,9 +69,8 @@ Features:
|
||||
%python_install
|
||||
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
||||
|
||||
# Tests require a full terminal
|
||||
# %%check
|
||||
# %%python_expand pytest-%%{$python_bin_suffix}
|
||||
%check
|
||||
%python_expand PYTHONPATH=%{buildroot}%{$python_sitelib} py.test-%{$python_bin_suffix} -v
|
||||
|
||||
%files %{python_files}
|
||||
%doc AUTHORS.rst README.rst
|
||||
|
Loading…
x
Reference in New Issue
Block a user