I have productive code that creates configuration files in my $HOME folder and runs my tests in an isolated environment. I am fixing $HOME in conftest.py . However, Iโm not sure if this works at all, and there may be broken written test functions.
To guarantee the validity of my test suite, I would like to pre-test the corresponding files in $HOME , and I want to perform a final check after running the test suite.
How can I achieve this using the "official" pytest tools? I have a dirty hack that works, but confuses reporting.
My test suite is now correct, and this question is not out of curiosity because I would like to know more about pytest .
Addition: The same question, but a different use case: I would like to check if a third-party plugin really populates the version. If not, I would like to show the message and stop py.test.
rocksportrocker
source share