From: Muriithi Frederick Muriuki <fredmanglis@gmail.com>
To: guix-devel@gnu.org
Cc: pjotr2017@thebird.nl
Subject: [PATCH 14/20] gnu: Add python-nose-randomly
Date: Fri, 14 Apr 2017 13:13:14 +0300 [thread overview]
Message-ID: <20170414101320.11755-14-fredmanglis@gmail.com> (raw)
In-Reply-To: <20170414101320.11755-1-fredmanglis@gmail.com>
* 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:
+@itemize @bullet
+@item Randomly shuffles the submodules, @code{TestCase} classes + test functions when
+loading a module of tests.
+@item Randomly shuffles the test functions inside a @code{TestCase} when loading it.
+@item 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.
+@item 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.
+@item 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.
+@end itemize")
+ (license license:bsd-3)))
+
+(define-public python2-nose-randomly
+ (package-with-python2 python-nose-randomly))
--
2.10.2
next prev parent reply other threads:[~2017-04-14 10:13 UTC|newest]
Thread overview: 30+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-04-14 10:13 [PATCH 01/20] gnu: Add python-radon Muriithi Frederick Muriuki
2017-04-14 10:13 ` [PATCH 02/20] gnu: Add python-httpbin Muriithi Frederick Muriuki
2017-04-14 10:13 ` [PATCH 03/20] gnu: Add python-pytest-httpbin Muriithi Frederick Muriuki
2017-04-14 10:13 ` [PATCH 04/20] gnu: Add python-sphinx-rtd-theme-0.1.9 Muriithi Frederick Muriuki
2017-04-14 10:13 ` [PATCH 05/20] gnu: Add python-sphinx-1.3.3 Muriithi Frederick Muriuki
2017-04-15 17:28 ` Hartmut Goebel
2017-04-15 17:38 ` Hartmut Goebel
2017-04-17 19:15 ` Leo Famulari
2017-04-14 10:13 ` [PATCH 06/20] gnu: Add python-coverage-4.0.3 Muriithi Frederick Muriuki
2017-04-15 17:29 ` Hartmut Goebel
2017-04-14 10:13 ` [PATCH 07/20] gnu: Add python-urllib3-1.12 Muriithi Frederick Muriuki
2017-04-14 10:13 ` [PATCH 08/20] gnu: Add python-sure Muriithi Frederick Muriuki
2017-04-14 10:13 ` [PATCH 09/20] gnu: Add python-couleur Muriithi Frederick Muriuki
2017-04-14 10:13 ` [PATCH 10/20] gnu: Add python-misaka Muriithi Frederick Muriuki
2017-04-14 10:13 ` [PATCH 11/20] gnu: Add python-steadymark Muriithi Frederick Muriuki
2017-04-14 10:13 ` [PATCH 12/20] gnu: Add python-requests-2.8.1 Muriithi Frederick Muriuki
2017-04-14 10:13 ` [PATCH 13/20] gnu: Add python-rednose-0.4.3 Muriithi Frederick Muriuki
2017-04-14 10:13 ` Muriithi Frederick Muriuki [this message]
2017-04-14 10:13 ` [PATCH 15/20] gnu: Add python-pbr-2.0.0 Muriithi Frederick Muriuki
2017-04-14 10:13 ` [PATCH 16/20] gnu: Add python-mock-1.3.0 Muriithi Frederick Muriuki
2017-04-14 10:13 ` [PATCH 17/20] gnu: Add python-httpretty Muriithi Frederick Muriuki
2017-04-17 19:11 ` Leo Famulari
2017-04-14 10:13 ` [PATCH 18/20] gnu: Add python-pyyaml-3.11 Muriithi Frederick Muriuki
2017-04-14 10:13 ` [PATCH 19/20] gnu: Add python-requests-2.10.0 Muriithi Frederick Muriuki
2017-04-14 10:13 ` [PATCH 20/20] gnu: Add python-xenon Muriithi Frederick Muriuki
2017-04-14 10:36 ` [PATCH 01/20] gnu: Add python-radon ng0
[not found] ` <CALjrZwaHDnWrCNq6v2f=yV5MoMTu3=na3jmYapLsB7Go57P=uw@mail.gmail.com>
2017-04-14 11:47 ` Frederick Muriithi
2017-04-14 11:55 ` ng0
2017-04-15 17:24 ` Hartmut Goebel
2017-04-17 19:19 ` Leo Famulari
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20170414101320.11755-14-fredmanglis@gmail.com \
--to=fredmanglis@gmail.com \
--cc=guix-devel@gnu.org \
--cc=pjotr2017@thebird.nl \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/guix.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.