pkgsrc-Changes archive

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

CVS commit: pkgsrc/devel



Module Name:    pkgsrc
Committed By:   adam
Date:           Sun Oct  7 08:13:09 UTC 2018

Modified Files:
        pkgsrc/devel: Makefile
Added Files:
        pkgsrc/devel/py-test-randomly: DESCR Makefile PLIST distinfo

Log Message:
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.


To generate a diff of this commit:
cvs rdiff -u -r1.2736 -r1.2737 pkgsrc/devel/Makefile
cvs rdiff -u -r0 -r1.1 pkgsrc/devel/py-test-randomly/DESCR \
    pkgsrc/devel/py-test-randomly/Makefile \
    pkgsrc/devel/py-test-randomly/PLIST \
    pkgsrc/devel/py-test-randomly/distinfo

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: pkgsrc/devel/Makefile
diff -u pkgsrc/devel/Makefile:1.2736 pkgsrc/devel/Makefile:1.2737
--- pkgsrc/devel/Makefile:1.2736        Sun Sep 23 18:17:04 2018
+++ pkgsrc/devel/Makefile       Sun Oct  7 08:13:09 2018
@@ -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-isort
 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

Added files:

Index: pkgsrc/devel/py-test-randomly/DESCR
diff -u /dev/null pkgsrc/devel/py-test-randomly/DESCR:1.1
--- /dev/null   Sun Oct  7 08:13:09 2018
+++ pkgsrc/devel/py-test-randomly/DESCR Sun Oct  7 08:13:09 2018
@@ -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.
Index: pkgsrc/devel/py-test-randomly/Makefile
diff -u /dev/null pkgsrc/devel/py-test-randomly/Makefile:1.1
--- /dev/null   Sun Oct  7 08:13:09 2018
+++ pkgsrc/devel/py-test-randomly/Makefile      Sun Oct  7 08:13:09 2018
@@ -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"
Index: pkgsrc/devel/py-test-randomly/PLIST
diff -u /dev/null pkgsrc/devel/py-test-randomly/PLIST:1.1
--- /dev/null   Sun Oct  7 08:13:09 2018
+++ pkgsrc/devel/py-test-randomly/PLIST Sun Oct  7 08:13:09 2018
@@ -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
Index: pkgsrc/devel/py-test-randomly/distinfo
diff -u /dev/null pkgsrc/devel/py-test-randomly/distinfo:1.1
--- /dev/null   Sun Oct  7 08:13:09 2018
+++ pkgsrc/devel/py-test-randomly/distinfo      Sun Oct  7 08:13:09 2018
@@ -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