spacetelescope / romancal

Python library to process science observations from the Nancy Grace Roman Space Telescope
https://roman-pipeline.readthedocs.io/en/latest/
Other
28 stars 28 forks source link

clean_up_after_test attempts to delete all asdf files in directory #1244

Closed braingram closed 1 month ago

braingram commented 1 month ago

Running pytest romancal/outlier_detection/tests/test_outlier_detection.py to run the outlier detection tests triggers the clean_up_after_test fixture which attempts to remove all asdf files in the current directory. https://github.com/spacetelescope/romancal/blob/c722ecd457875dc89a680c488b394400f751654f/romancal/outlier_detection/tests/test_outlier_detection.py#L13

This almost deleted a large number of useful test files that I created. Luckily it hit a permission error but it still deleted about half the files.