SecBSD's official ports repository
This commit is contained in:
commit
2c0afcbbf3
64331 changed files with 5339189 additions and 0 deletions
25
devel/py-test-datafiles/Makefile
Normal file
25
devel/py-test-datafiles/Makefile
Normal file
|
@ -0,0 +1,25 @@
|
|||
COMMENT= create a 'tmp_path' with predefined files/directories
|
||||
|
||||
MODPY_EGG_VERSION= 3.0.0
|
||||
DISTNAME= pytest-datafiles-${MODPY_EGG_VERSION}
|
||||
PKGNAME= py-${DISTNAME:S/py//}
|
||||
|
||||
CATEGORIES= devel
|
||||
|
||||
HOMEPAGE= https://github.com/omarkohl/pytest-datafiles
|
||||
|
||||
# MIT
|
||||
PERMIT_PACKAGE = Yes
|
||||
|
||||
MASTER_SITES= https://github.com/omarkohl/pytest-datafiles/releases/download/${MODPY_EGG_VERSION}/
|
||||
|
||||
MODULES= lang/python
|
||||
|
||||
MODPY_PYBUILD= setuptools
|
||||
|
||||
FLAVORS= python3
|
||||
FLAVOR= python3
|
||||
|
||||
RUN_DEPENDS= devel/py-test${MODPY_FLAVOR}
|
||||
|
||||
.include <bsd.port.mk>
|
2
devel/py-test-datafiles/distinfo
Normal file
2
devel/py-test-datafiles/distinfo
Normal file
|
@ -0,0 +1,2 @@
|
|||
SHA256 (pytest-datafiles-3.0.0.tar.gz) = pwxMZqNtHNz8CVYH8E7uZurvP6ZMu2LWDEfOFpkB0dQ=
|
||||
SIZE (pytest-datafiles-3.0.0.tar.gz) = 8357
|
18
devel/py-test-datafiles/pkg/DESCR
Normal file
18
devel/py-test-datafiles/pkg/DESCR
Normal file
|
@ -0,0 +1,18 @@
|
|||
pytest plugin to create a tmp_path containing a preconfigured set of files
|
||||
and/or directories.
|
||||
|
||||
This plugin allows you to specify one or several files/directories that are
|
||||
copied to a temporary directory (tmp_path) before the execution of the test.
|
||||
This means the original files are not modified and every test runs on its own
|
||||
version of the same files.
|
||||
|
||||
Files/directories can be specified either as strings or as pathlib.Path objects.
|
||||
|
||||
To take advantage of the datafiles fixture in a test function, add datafiles as
|
||||
one of the test function parameters (per usual with pytest fixtures) and
|
||||
decorate the test function with
|
||||
@pytest.mark.datafiles(file1, file2, dir1, dir2, ...).
|
||||
|
||||
The datafiles variable in your test function is a pathlib.Path object (tmp_path)
|
||||
where the copied files are located.
|
||||
Under OpenBSD systems this will most likely be some subdirectory of /tmp/.
|
11
devel/py-test-datafiles/pkg/PLIST
Normal file
11
devel/py-test-datafiles/pkg/PLIST
Normal file
|
@ -0,0 +1,11 @@
|
|||
lib/python${MODPY_VERSION}/site-packages/${MODPY_PYCACHE}/
|
||||
lib/python${MODPY_VERSION}/site-packages/${MODPY_PYCACHE}pytest_datafiles.${MODPY_PYC_MAGIC_TAG}${MODPY_PYOEXTENSION}
|
||||
lib/python${MODPY_VERSION}/site-packages/${MODPY_PYCACHE}pytest_datafiles.${MODPY_PYC_MAGIC_TAG}pyc
|
||||
lib/python${MODPY_VERSION}/site-packages/pytest_datafiles-${MODPY_EGG_VERSION}.dist-info/
|
||||
lib/python${MODPY_VERSION}/site-packages/pytest_datafiles-${MODPY_EGG_VERSION}.dist-info/LICENSE
|
||||
lib/python${MODPY_VERSION}/site-packages/pytest_datafiles-${MODPY_EGG_VERSION}.dist-info/METADATA
|
||||
lib/python${MODPY_VERSION}/site-packages/pytest_datafiles-${MODPY_EGG_VERSION}.dist-info/RECORD
|
||||
lib/python${MODPY_VERSION}/site-packages/pytest_datafiles-${MODPY_EGG_VERSION}.dist-info/WHEEL
|
||||
lib/python${MODPY_VERSION}/site-packages/pytest_datafiles-${MODPY_EGG_VERSION}.dist-info/entry_points.txt
|
||||
lib/python${MODPY_VERSION}/site-packages/pytest_datafiles-${MODPY_EGG_VERSION}.dist-info/top_level.txt
|
||||
lib/python${MODPY_VERSION}/site-packages/pytest_datafiles.py
|
Loading…
Add table
Add a link
Reference in a new issue