[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH 14/20] gnu: Add python-nose-randomly
From: |
Muriithi Frederick Muriuki |
Subject: |
[PATCH 14/20] gnu: Add python-nose-randomly |
Date: |
Fri, 14 Apr 2017 13:13:14 +0300 |
* gnu/packages/python.scm (python-nose-randomly): New variable.
---
gnu/packages/python.scm | 38 ++++++++++++++++++++++++++++++++++++++
1 file changed, 38 insertions(+)
diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm
index 7aba1ca..37b736e 100644
--- a/gnu/packages/python.scm
+++ b/gnu/packages/python.scm
@@ -14311,3 +14311,41 @@ and correct.")
(define-public python2-rednose-0.4.3
(package-with-python2 python-rednose-0.4.3))
+
+(define-public python-nose-randomly
+ (package
+ (name "python-nose-randomly")
+ (version "1.2.0")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (pypi-uri "nose-randomly" version))
+ (sha256
+ (base32
+ "17iggrvhvxzgci34x14x31i1ym8f7jdkklmq1yfnwjcglh7z70hk"))))
+ (build-system python-build-system)
+ (propagated-inputs
+ `(("python-nose" ,python-nose)))
+ (home-page
+ "https://github.com/adamchainz/nose-randomly")
+ (synopsis
+ "Nose plugin to randomly order tests and control random.seed")
+ (description
+ "Nose plugin to randomly order tests and control random.seed. It has the
following
+features:
address@hidden @bullet
address@hidden Randomly shuffles the submodules, @code{TestCase} classes + test
functions when
+loading a module of tests.
address@hidden Randomly shuffles the test functions inside a @code{TestCase}
when loading it.
address@hidden Resets @code{random.seed()} at the start of every test case and
test to a fixed
+number - this defaults to @code{time.time()} from the start of your test run,
but you can
+pass in @code{--randomly-seed} to repeat a randomness-induced failure.
address@hidden If @code{factory boy} is installed, its random state is reset at
the start of every
+test. This allows for repeatable use of its random @code{fuzzy} features.
address@hidden If @code{faker} is installed, its random state is reset at the
start of every test.
+This is also for repeatable fuzzy data in tests - factory boy uses faker for
lots of data.
address@hidden itemize")
+ (license license:bsd-3)))
+
+(define-public python2-nose-randomly
+ (package-with-python2 python-nose-randomly))
--
2.10.2
- Re: [PATCH 05/20] gnu: Add python-sphinx-1.3.3, (continued)
- [PATCH 06/20] gnu: Add python-coverage-4.0.3, Muriithi Frederick Muriuki, 2017/04/14
- [PATCH 07/20] gnu: Add python-urllib3-1.12, Muriithi Frederick Muriuki, 2017/04/14
- [PATCH 08/20] gnu: Add python-sure, Muriithi Frederick Muriuki, 2017/04/14
- [PATCH 09/20] gnu: Add python-couleur, Muriithi Frederick Muriuki, 2017/04/14
- [PATCH 10/20] gnu: Add python-misaka, Muriithi Frederick Muriuki, 2017/04/14
- [PATCH 11/20] gnu: Add python-steadymark, Muriithi Frederick Muriuki, 2017/04/14
- [PATCH 12/20] gnu: Add python-requests-2.8.1, Muriithi Frederick Muriuki, 2017/04/14
- [PATCH 13/20] gnu: Add python-rednose-0.4.3, Muriithi Frederick Muriuki, 2017/04/14
- [PATCH 14/20] gnu: Add python-nose-randomly,
Muriithi Frederick Muriuki <=
- [PATCH 15/20] gnu: Add python-pbr-2.0.0, Muriithi Frederick Muriuki, 2017/04/14
- [PATCH 16/20] gnu: Add python-mock-1.3.0, Muriithi Frederick Muriuki, 2017/04/14
- [PATCH 17/20] gnu: Add python-httpretty, Muriithi Frederick Muriuki, 2017/04/14
- [PATCH 18/20] gnu: Add python-pyyaml-3.11, Muriithi Frederick Muriuki, 2017/04/14
- [PATCH 19/20] gnu: Add python-requests-2.10.0, Muriithi Frederick Muriuki, 2017/04/14
- [PATCH 20/20] gnu: Add python-xenon, Muriithi Frederick Muriuki, 2017/04/14
- Re: [PATCH 01/20] gnu: Add python-radon, ng0, 2017/04/14