-
Notifications
You must be signed in to change notification settings - Fork 36
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
delete files that are no longer needed #30
Comments
Hi @luerhard, Thanks for the suggestion! I've felt this need myself in the past, but there are a few details that complicate things:
Those are my thoughts, but feel free to suggest solutions if you come up with anything. 👍 |
Hi @nicoddemus, thanks for the reply !
|
This would be an interesting feature, but other tests using pytest-datadir use files in the same def test_read_module(datadir):
contents = (datadir / 'spam.txt').read_text()
assert contents == 'eggs\n'
def test_data(data_regression):
data = {"foo": 1}
data_regression.check(data) That makes automatic cleaning potentially dangerous. |
It would be supernice, if there was a way to automatically remove files (and directories) that are leftover from tests that do not exist anymore.
Tests are renamed regularly and after that you (or at least I) have a lot of leftover datafiles that I need to remove manually.
The text was updated successfully, but these errors were encountered: