The devel/py-test-datafiles,python3 port
py3-test-datafiles-3.0.0p0 – create a 'tmp_path' with predefined files/directories (cvsweb github mirror)
Description
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/.WWW: https://github.com/omarkohl/pytest-datafiles
Maintainer
The OpenBSD ports mailing-list
Categories
Build dependencies
Run dependencies
Test dependencies
Reverse dependencies
Files
- /usr/local/lib/python3.11/site-packages/__pycache__/
- /usr/local/lib/python3.11/site-packages/__pycache__/pytest_datafiles.cpython-311.opt-1.pyc
- /usr/local/lib/python3.11/site-packages/__pycache__/pytest_datafiles.cpython-311.pyc
- /usr/local/lib/python3.11/site-packages/pytest_datafiles-3.0.0.dist-info/
- /usr/local/lib/python3.11/site-packages/pytest_datafiles-3.0.0.dist-info/LICENSE
- /usr/local/lib/python3.11/site-packages/pytest_datafiles-3.0.0.dist-info/METADATA
- /usr/local/lib/python3.11/site-packages/pytest_datafiles-3.0.0.dist-info/RECORD
- /usr/local/lib/python3.11/site-packages/pytest_datafiles-3.0.0.dist-info/WHEEL
- /usr/local/lib/python3.11/site-packages/pytest_datafiles-3.0.0.dist-info/entry_points.txt
- /usr/local/lib/python3.11/site-packages/pytest_datafiles-3.0.0.dist-info/top_level.txt
- /usr/local/lib/python3.11/site-packages/pytest_datafiles.py