pytest-datafiles icon indicating copy to clipboard operation
pytest-datafiles copied to clipboard

pytest plugin to create a tmpdir containing a preconfigured set of files and/or directories.

Results 6 pytest-datafiles issues
Sort by recently updated
recently updated
newest added

It seems that the `datafiles` fixture is a `py.path` (well, a `LocalPath`) - does this have any functionality that `pathlib.Path` does not? If not, I think using `pathlib`'s `Path` would...

Mode bits are not copied by default (https://py.readthedocs.io/en/latest/path.html#py._path.local.LocalPath.copy). This results in unexpected modes in testing. It would be useful if there were some way to use the datafiles fixture and...

This is a by-product of attempting to create a dev-env for this project, using poetry. It's thrown up as a PR in case it is useful to others too.

One can define datafiles_root in pytest configuration file to define the datafiles root directory. This feature allows to define a common root folder instead of defining the FIXTURE_DIR on each...

I am running into an issue where I get a "ScopeMismatch" error if I try to use datafiles to create another fixture with a different scope than "function". I want...

The sdist (tarball) at PyPI doesnt contain the test files. i.e. https://files.pythonhosted.org/packages/26/60/4e49c18caf0ba7b7222da47ea6143f4f1ea3993f043be7bdf4ae409e544d/pytest-datafiles-2.0.1.tar.gz Not including the tests makes it harder to package this for distros. I notice that https://github.com/omarkohl/pytest-datafiles/pull/10 is currently...