You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am running a test that uses pytest-vcr and also has @pytest.mark.parametrize where parameters are path-segment like strings, sometimes containing relative (e.g. /../) or absolute (e.g /foo) path segments.
This causes the cassette file locations to be created all over the place, and sometimes even cause overwrite attempts of two different values point to the real file system location of a cassette file.
Assuming saved in tests/test_vcr.py, will cause .yaml files to be created all over the place. I've added spaces around directory separator to designate that these are real directories created on my file system, not literal forward-slashes which is a parts of the file / directory name:
I am running a test that uses
pytest-vcr
and also has@pytest.mark.parametrize
where parameters are path-segment like strings, sometimes containing relative (e.g./../
) or absolute (e.g/foo
) path segments.This causes the cassette file locations to be created all over the place, and sometimes even cause overwrite attempts of two different values point to the real file system location of a cassette file.
For example the following test:
Assuming saved in
tests/test_vcr.py
, will cause.yaml
files to be created all over the place. I've added spaces around directory separator to designate that these are real directories created on my file system, not literal forward-slashes which is a parts of the file / directory name:It seems to me that some normalization and sanitization is in order when dealing with parameterized tests.
The text was updated successfully, but these errors were encountered: