pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/devel py-test-randomly: added version 1.2.3



details:   https://anonhg.NetBSD.org/pkgsrc/rev/1fc8812fc8c8
branches:  trunk
changeset: 386057:1fc8812fc8c8
user:      adam <adam%pkgsrc.org@localhost>
date:      Sun Oct 07 08:13:09 2018 +0000

description:
py-test-randomly: added version 1.2.3

Pytest plugin to randomly order tests and control random.seed.

* 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 a 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.
* If factory boy is installed, its random state is reset at the start of every
  test. This allows for repeatable use of its random 'fuzzy' features.
* If 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.

diffstat:

 devel/Makefile                  |   3 ++-
 devel/py-test-randomly/DESCR    |  13 +++++++++++++
 devel/py-test-randomly/Makefile |  21 +++++++++++++++++++++
 devel/py-test-randomly/PLIST    |  11 +++++++++++
 devel/py-test-randomly/distinfo |   6 ++++++
 5 files changed, 53 insertions(+), 1 deletions(-)

diffs (84 lines):

diff -r 175646682a84 -r 1fc8812fc8c8 devel/Makefile
--- a/devel/Makefile    Sun Oct 07 07:36:20 2018 +0000
+++ b/devel/Makefile    Sun Oct 07 08:13:09 2018 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.2736 2018/09/23 18:17:04 taca Exp $
+# $NetBSD: Makefile,v 1.2737 2018/10/07 08:13:09 adam Exp $
 #
 
 COMMENT=       Development utilities
@@ -2282,6 +2282,7 @@
 SUBDIR+=       py-test-localserver
 SUBDIR+=       py-test-mock
 SUBDIR+=       py-test-pythonpath
+SUBDIR+=       py-test-randomly
 SUBDIR+=       py-test-relaxed
 SUBDIR+=       py-test-runner
 SUBDIR+=       py-test-shutil
diff -r 175646682a84 -r 1fc8812fc8c8 devel/py-test-randomly/DESCR
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/py-test-randomly/DESCR      Sun Oct 07 08:13:09 2018 +0000
@@ -0,0 +1,13 @@
+Pytest plugin to randomly order tests and control random.seed.
+
+* 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 a 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.
+* If factory boy is installed, its random state is reset at the start of every
+  test. This allows for repeatable use of its random 'fuzzy' features.
+* If 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.
diff -r 175646682a84 -r 1fc8812fc8c8 devel/py-test-randomly/Makefile
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/py-test-randomly/Makefile   Sun Oct 07 08:13:09 2018 +0000
@@ -0,0 +1,21 @@
+# $NetBSD: Makefile,v 1.1 2018/10/07 08:13:09 adam Exp $
+
+DISTNAME=      pytest-randomly-1.2.3
+PKGNAME=       ${PYPKGPREFIX}-${DISTNAME:S/py//}
+CATEGORIES=    devel python
+MASTER_SITES=  ${MASTER_SITE_PYPI:=p/pytest-randomly/}
+
+MAINTAINER=    pkgsrc-users%NetBSD.org@localhost
+HOMEPAGE=      https://github.com/pytest-dev/pytest-randomly
+COMMENT=       Pytest plugin to randomly order tests and control random.seed
+LICENSE=       modified-bsd
+
+DEPENDS+=      ${PYPKGPREFIX}-test-[0-9]*:../../devel/py-test
+
+USE_LANGUAGES= # none
+
+do-test:
+       cd ${WRKSRC} && pytest-${PYVERSSUFFIX} tests
+
+.include "../../lang/python/egg.mk"
+.include "../../mk/bsd.pkg.mk"
diff -r 175646682a84 -r 1fc8812fc8c8 devel/py-test-randomly/PLIST
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/py-test-randomly/PLIST      Sun Oct 07 08:13:09 2018 +0000
@@ -0,0 +1,11 @@
+@comment $NetBSD: PLIST,v 1.1 2018/10/07 08:13:09 adam Exp $
+${PYSITELIB}/${EGG_INFODIR}/PKG-INFO
+${PYSITELIB}/${EGG_INFODIR}/SOURCES.txt
+${PYSITELIB}/${EGG_INFODIR}/dependency_links.txt
+${PYSITELIB}/${EGG_INFODIR}/entry_points.txt
+${PYSITELIB}/${EGG_INFODIR}/not-zip-safe
+${PYSITELIB}/${EGG_INFODIR}/requires.txt
+${PYSITELIB}/${EGG_INFODIR}/top_level.txt
+${PYSITELIB}/pytest_randomly.py
+${PYSITELIB}/pytest_randomly.pyc
+${PYSITELIB}/pytest_randomly.pyo
diff -r 175646682a84 -r 1fc8812fc8c8 devel/py-test-randomly/distinfo
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/py-test-randomly/distinfo   Sun Oct 07 08:13:09 2018 +0000
@@ -0,0 +1,6 @@
+$NetBSD: distinfo,v 1.1 2018/10/07 08:13:09 adam Exp $
+
+SHA1 (pytest-randomly-1.2.3.tar.gz) = f991c5f2a580f215552eee04960ab03eff1376b8
+RMD160 (pytest-randomly-1.2.3.tar.gz) = 36a7a6046cad1879d3b7e88dc10ce7a92337cc27
+SHA512 (pytest-randomly-1.2.3.tar.gz) = a22fa6b435824fa54c8f48feb7ec0cb1c8a3350ad7a5174367a297f0ce1d31d76a9f97b84176714c37b807f0377a0ba3a159471eb86af33b3960c34d0efa944b
+Size (pytest-randomly-1.2.3.tar.gz) = 8297 bytes



Home | Main Index | Thread Index | Old Index