diff --git a/pytest-random-order-1.0.4.tar.gz b/pytest-random-order-1.0.4.tar.gz new file mode 100644 index 0000000000000000000000000000000000000000..5d917a0872f9feb3cd3140ecd40af532943a88a3 Binary files /dev/null and b/pytest-random-order-1.0.4.tar.gz differ diff --git a/python-pytest-random-order.spec b/python-pytest-random-order.spec new file mode 100644 index 0000000000000000000000000000000000000000..2b93588d7a3035ce6e3c166ea5edb72e119e6b9a --- /dev/null +++ b/python-pytest-random-order.spec @@ -0,0 +1,59 @@ +# Created by pyp2rpm-3.3.8 +%global pypi_name pytest-random-order +%global pypi_version 1.0.4 + +Name: python-%{pypi_name} +Version: %{pypi_version} +Release: 1 +Summary: Randomise the order in which pytest tests are run with some control over the randomness + +License: MIT +URL: https://github.com/jbasko/pytest-random-order +Source0: %{pypi_source} +BuildArch: noarch + +BuildRequires: python3-devel +BuildRequires: python3dist(pytest) >= 3 +BuildRequires: python3dist(setuptools) + +%description +pytest-random-order is a pytest plugin that randomises the order of tests. This +can be useful to detect a test that passes just because it happens to run after +an unrelated test that leaves the system in a favourable state. + +The plugin allows user to control the level of randomness they want to introduce +and to disable reordering on subsets of tests. Tests can be rerun in a specific +order by passing a seed value reported in a previous test run. + +%package -n python3-%{pypi_name} +Summary: %{summary} +%{?python_provide:%python_provide python3-%{pypi_name}} + +Requires: python3dist(pytest) >= 3 +Requires: python3dist(setuptools) +%description -n python3-%{pypi_name} +%{description} + +%prep +%autosetup -n %{pypi_name}-%{pypi_version} +# Remove bundled egg-info +rm -rf %{pypi_name}.egg-info + +%build +%py3_build + +%install +%py3_install + +%check +%{__python3} setup.py test + +%files -n python3-%{pypi_name} +%license LICENSE +%doc README.rst +%{python3_sitelib}/random_order +%{python3_sitelib}/pytest_random_order-%{pypi_version}-py%{python3_version}.egg-info + +%changelog +* Wed Jun 29 2022 konglidong - 1.0.4-1 +- Initial package.