Create test files in temporary directories#578
Conversation
|
@mferrera Nice.....I did a quick search and found a few other places as well which are not typically run in the local setup, but I think is run within subscript/tests/test_ofmvol2csv.py Line 513 in e4cba62 |
A few tests left test files in the root directory after a test run. This could cause race conditions in some cases with pytest-xdist and tests should not leave junk files in the root directory at any rate.
|
Good catch! The ones you highlighted are actually okay -- they use a fixture that changes dir for them (former case) or call the simulator function after changing dir in the test function (latter case). But I found a few cases where the dir change didn't happen or otherwise left files around. I don't seem to find any more files in the root dir when run with simulators as well now. |
Good to know 😄 |
A few tests left test files in the root directory after a test run. This could cause race conditions in some cases with pytest-xdist and tests should not leave junk files in the root directory at any rate.
Resolves #563