Configure basetemp in ini config file #7876
-
Since we have this issue, in our project, we have to pass |
Beta Was this translation helpful? Give feedback.
Replies: 7 comments
-
I’m happy to implement this if we have agreement, I’m kind of +0, due to the nature of basetemp deleting the directory contents, I like forcing it explicitly almost like an ‘acceptance’ from the user of what it can do as a side effect. |
Beta Was this translation helpful? Give feedback.
-
Or can we make a shorter default, like "/tmp/pytest" on posix system? |
Beta Was this translation helpful? Give feedback.
-
You can already add this to your [pytest]
addopts = --basetemp=/tmp/pytest I believe this is enough to work around the problem? |
Beta Was this translation helpful? Give feedback.
-
Another solution works for me is like this:
The test directory would be Do you know why EDIT: answer my own question, the default value of |
Beta Was this translation helpful? Give feedback.
-
I'm closing this one, since we have enough work-arounds. |
Beta Was this translation helpful? Give feedback.
-
I wouldn't know 😁 |
Beta Was this translation helpful? Give feedback.
-
Glad we found a suitable workaround then. |
Beta Was this translation helpful? Give feedback.
You can already add this to your
pytest.ini
file:I believe this is enough to work around the problem?