From 30d3fe70d56de00c61022af0318e7b7cc3ba851b672cbcdf3ba21f3dda17a3fa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Chv=C3=A1tal?= Date: Thu, 14 Feb 2019 15:24:18 +0000 Subject: [PATCH] - Make sure we execute tests OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:pytest/python-pytest-randomly?expand=0&rev=3 --- python-pytest-randomly.changes | 5 +++++ python-pytest-randomly.spec | 13 +++++++------ 2 files changed, 12 insertions(+), 6 deletions(-) diff --git a/python-pytest-randomly.changes b/python-pytest-randomly.changes index 2459624..53127a2 100644 --- a/python-pytest-randomly.changes +++ b/python-pytest-randomly.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Thu Feb 14 15:24:04 UTC 2019 - Tomáš Chvátal + +- Make sure we execute tests + ------------------------------------------------------------------- Mon Jan 21 03:52:33 UTC 2019 - Todd R diff --git a/python-pytest-randomly.spec b/python-pytest-randomly.spec index 98af91e..62f1174 100644 --- a/python-pytest-randomly.spec +++ b/python-pytest-randomly.spec @@ -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