Sisyphus repositório
Última atualização: 24 setembro 2021 | SRPMs: 17350 | Visitas: 21951435
en ru br
ALT Linux repositórios

Group :: Desenvolvimento/Python
RPM: python3-module-pytest-randomly

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs e FR  Repocop 

%define _unpackaged_files_terminate_build 1
%define oname pytest-randomly

%def_with check

Name: python3-module-%oname
Version: 3.7.0
Release: alt1

Summary: Pytest plugin to randomly order tests and control random.seed
License: MIT
Group: Development/Python
# Source-git:

Source: %name-%version.tar
Patch: %name-%version-alt.patch

BuildRequires(pre): rpm-build-python3

%if_with check
BuildRequires: python3(appdirs)
BuildRequires: python3(entrypoints)
BuildRequires: python3(factory)
BuildRequires: python3(faker)
BuildRequires: python3(numpy)
BuildRequires: python3(pytest)
BuildRequires: python3(pytest_xdist)
BuildRequires: python3(tox)
BuildRequires: python3(tox_console_scripts)

BuildArch: noarch

# PyPi name

%py3_provides pytest-randomly

Randomness in testing can be quite powerful to discover hidden flaws in the
tests themselves, as well as giving a little more coverage to your system.

By randomly ordering the tests, the risk of surprising inter-test dependencies
is reduced - a technique used in many places.

By resetting the random seed to a repeatable number for each test, tests can
create data based on random numbers and yet remain repeatable, for example
factory boy's fuzzy values. This is good for ensuring that tests specify the
data they need and that the tested system is not affected by any data that is
filled in randomly due to not being specified.

%patch -p1



export TOXENV=py3
tox.py3 --sitepackages --console-scripts -vvr -- -vra

%doc README.rst


Todas as alterações você pod ver aqui

projeto & código: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
mantenedor atual: Michael Shigorin
mantenedor da tradução: Fernando Martini aka fmartini © 2009