- Make sure we execute tests
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:pytest/python-pytest-randomly?expand=0&rev=3
This commit is contained in:
parent
00c46becf9
commit
30d3fe70d5
@ -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,12 +43,11 @@ 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
|
||||
things like doctests.
|
||||
* Resets random.seed() at the start of every test case and test to
|
||||
* Resets random.seed() at the start of every test case and test to
|
||||
fixed number - this defaults to time.time() from the start of
|
||||
your test run, but you can pass in --randomly-seed to repeat a
|
||||
randomness-induced failure.
|
||||
@ -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