pkgsrc-Changes archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
CVS commit: pkgsrc/devel/py-test-snapshot
Module Name: pkgsrc
Committed By: wiz
Date: Mon Jul 29 07:07:10 UTC 2024
Added Files:
pkgsrc/devel/py-test-snapshot: DESCR Makefile PLIST distinfo
Log Message:
devel/py-test-snapshot: import py-pytest-snapshot-0.9.0
A plugin for snapshot testing with pytest.
This library was inspired by jest's snapshot testing. Snapshot
testing can be used to test that the value of an expression does
not change unexpectedly. The added benefits of snapshot testing
are that
* They are easy to create.
* They are easy to update when the expected value of a test
changes.
Instead of manually updating tests when the expected value of an
expression changes, the developer simply needs to
* run pytest --snapshot-update to update the snapshot tests
* verify that the snapshot files contain the new expected results
* commit the snapshot changes to version control
To generate a diff of this commit:
cvs rdiff -u -r0 -r1.1 pkgsrc/devel/py-test-snapshot/DESCR \
pkgsrc/devel/py-test-snapshot/Makefile \
pkgsrc/devel/py-test-snapshot/PLIST \
pkgsrc/devel/py-test-snapshot/distinfo
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Added files:
Index: pkgsrc/devel/py-test-snapshot/DESCR
diff -u /dev/null pkgsrc/devel/py-test-snapshot/DESCR:1.1
--- /dev/null Mon Jul 29 07:07:10 2024
+++ pkgsrc/devel/py-test-snapshot/DESCR Mon Jul 29 07:07:10 2024
@@ -0,0 +1,17 @@
+A plugin for snapshot testing with pytest.
+
+This library was inspired by jest's snapshot testing. Snapshot
+testing can be used to test that the value of an expression does
+not change unexpectedly. The added benefits of snapshot testing
+are that
+
+* They are easy to create.
+* They are easy to update when the expected value of a test
+ changes.
+
+Instead of manually updating tests when the expected value of an
+expression changes, the developer simply needs to
+
+* run pytest --snapshot-update to update the snapshot tests
+* verify that the snapshot files contain the new expected results
+* commit the snapshot changes to version control
Index: pkgsrc/devel/py-test-snapshot/Makefile
diff -u /dev/null pkgsrc/devel/py-test-snapshot/Makefile:1.1
--- /dev/null Mon Jul 29 07:07:10 2024
+++ pkgsrc/devel/py-test-snapshot/Makefile Mon Jul 29 07:07:10 2024
@@ -0,0 +1,24 @@
+# $NetBSD: Makefile,v 1.1 2024/07/29 07:07:10 wiz Exp $
+
+DISTNAME= pytest-snapshot-0.9.0
+PKGNAME= ${PYPKGPREFIX}-${DISTNAME}
+CATEGORIES= devel python
+MASTER_SITES= ${MASTER_SITE_PYPI:=p/pytest-snapshot/}
+
+MAINTAINER= pkgsrc-users%NetBSD.org@localhost
+HOMEPAGE= https://github.com/joseph-roitman/pytest-snapshot
+COMMENT= Plugin for snapshot testing with pytest
+LICENSE= mit
+
+TOOL_DEPENDS+= ${PYPKGPREFIX}-setuptools-[0-9]*:../../devel/py-setuptools
+TOOL_DEPENDS+= ${PYPKGPREFIX}-setuptools_scm-[0-9]*:../../devel/py-setuptools_scm
+TOOL_DEPENDS+= ${PYPKGPREFIX}-wheel-[0-9]*:../../devel/py-wheel
+
+USE_LANGUAGES= # none
+
+PYTHON_VERSIONS_INCOMPATIBLE= 27
+
+# 5 failed, 102 passed, 1 xfailed
+
+.include "../../lang/python/wheel.mk"
+.include "../../mk/bsd.pkg.mk"
Index: pkgsrc/devel/py-test-snapshot/PLIST
diff -u /dev/null pkgsrc/devel/py-test-snapshot/PLIST:1.1
--- /dev/null Mon Jul 29 07:07:10 2024
+++ pkgsrc/devel/py-test-snapshot/PLIST Mon Jul 29 07:07:10 2024
@@ -0,0 +1,19 @@
+@comment $NetBSD: PLIST,v 1.1 2024/07/29 07:07:10 wiz Exp $
+${PYSITELIB}/${WHEEL_INFODIR}/LICENSE
+${PYSITELIB}/${WHEEL_INFODIR}/METADATA
+${PYSITELIB}/${WHEEL_INFODIR}/RECORD
+${PYSITELIB}/${WHEEL_INFODIR}/WHEEL
+${PYSITELIB}/${WHEEL_INFODIR}/entry_points.txt
+${PYSITELIB}/${WHEEL_INFODIR}/top_level.txt
+${PYSITELIB}/pytest_snapshot/__init__.py
+${PYSITELIB}/pytest_snapshot/__init__.pyc
+${PYSITELIB}/pytest_snapshot/__init__.pyo
+${PYSITELIB}/pytest_snapshot/_utils.py
+${PYSITELIB}/pytest_snapshot/_utils.pyc
+${PYSITELIB}/pytest_snapshot/_utils.pyo
+${PYSITELIB}/pytest_snapshot/_version.py
+${PYSITELIB}/pytest_snapshot/_version.pyc
+${PYSITELIB}/pytest_snapshot/_version.pyo
+${PYSITELIB}/pytest_snapshot/plugin.py
+${PYSITELIB}/pytest_snapshot/plugin.pyc
+${PYSITELIB}/pytest_snapshot/plugin.pyo
Index: pkgsrc/devel/py-test-snapshot/distinfo
diff -u /dev/null pkgsrc/devel/py-test-snapshot/distinfo:1.1
--- /dev/null Mon Jul 29 07:07:10 2024
+++ pkgsrc/devel/py-test-snapshot/distinfo Mon Jul 29 07:07:10 2024
@@ -0,0 +1,5 @@
+$NetBSD: distinfo,v 1.1 2024/07/29 07:07:10 wiz Exp $
+
+BLAKE2s (pytest-snapshot-0.9.0.tar.gz) = 2c1d18f9e8e4bd15f0e305d6e8c3a78a774a73dcd4a6228c79b3bfc681149125
+SHA512 (pytest-snapshot-0.9.0.tar.gz) = ad0ce310ea8927dfac1ae07bae0bfb6651cfe4cb9e0ec17475923eaee4a64cac99ca24840da3831dfc24a514cde09cd9433fa896316646ba40078b46d8f079db
+Size (pytest-snapshot-0.9.0.tar.gz) = 19877 bytes
Home |
Main Index |
Thread Index |
Old Index