mirror of
https://github.com/mealie-recipes/mealie.git
synced 2025-12-15 23:05:23 -05:00
Fix some pytests (#265)
* Fix encoding issue in cleaner unit test * Add VS Code task to run pytests * Fix FileExistsError when running Windows
This commit is contained in:
@@ -60,7 +60,10 @@ def move_all_images():
|
||||
continue
|
||||
new_folder = app_dirs.IMG_DIR.joinpath(image_file.stem)
|
||||
new_folder.mkdir(parents=True, exist_ok=True)
|
||||
image_file.rename(new_folder.joinpath(f"original{image_file.suffix}"))
|
||||
new_file = new_folder.joinpath(f"original{image_file.suffix}")
|
||||
if new_file.is_file():
|
||||
new_file.unlink()
|
||||
image_file.rename(new_file)
|
||||
|
||||
|
||||
def validate_slugs_in_database(session: Session = None):
|
||||
|
||||
Reference in New Issue
Block a user