-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
Make sure tests do not leave any temp files behind #5345
base: master
Are you sure you want to change the base?
Commits on Jul 2, 2024
-
Configuration menu - View commit details
-
Copy full SHA for b80b898 - Browse repository at this point
Copy the full SHA b80b898View commit details -
test_art, test_embedart: Define FetchImageHelper without _common.Test…
…Case And move the definition to a shared module. The problem was that EmbedartCliTest ran `_common.TestCase.setUp` method which initialised temporary directory for the tests AND ran `helper.TestHelper.setup_beets` method which initialised another set of temporary directories. This meant that the first set of directories could not be tracked down for the cleanup.
Configuration menu - View commit details
-
Copy full SHA for 56d9d96 - Browse repository at this point
Copy the full SHA 56d9d96View commit details -
fetchart, artresizer: Create art files in predictable directories
This allows to clean them up in art (1) fetching, (2) resizing and (3) deinterlace tests.
Configuration menu - View commit details
-
Copy full SHA for 1fda7b6 - Browse repository at this point
Copy the full SHA 1fda7b6View commit details -
TestHelper: Create mediafield fixtures within temp_dir
This way they get automatically removed with removal of temp_dir. After this change `test/plugins/test_zero.py` does not any more leave any mediafield fixtures hanging around.
Configuration menu - View commit details
-
Copy full SHA for c904521 - Browse repository at this point
Copy the full SHA c904521View commit details -
Configuration menu - View commit details
-
Copy full SHA for 0682d0d - Browse repository at this point
Copy the full SHA 0682d0dView commit details -
test_config_command: use TestHelper to manage temp dir
Due to some weird race conditions the temporary directories were not getting torn down for four of the tests. I failed to figure out why, and I found that using TestHelper to manage the temporary directory somehow fixes this.
Configuration menu - View commit details
-
Copy full SHA for 12730aa - Browse repository at this point
Copy the full SHA 12730aaView commit details -
test_plugins.py: dedupe setUp, tearDown usage
And most importantly, remove a redudant invocation of `setup_beets` which left temporary directories hanging around without getting cleaned up.
Configuration menu - View commit details
-
Copy full SHA for f6b45f5 - Browse repository at this point
Copy the full SHA f6b45f5View commit details -
Configuration menu - View commit details
-
Copy full SHA for 812bcb9 - Browse repository at this point
Copy the full SHA 812bcb9View commit details -
Configuration menu - View commit details
-
Copy full SHA for df08555 - Browse repository at this point
Copy the full SHA df08555View commit details -
Configuration menu - View commit details
-
Copy full SHA for 83a4d71 - Browse repository at this point
Copy the full SHA 83a4d71View commit details