Skip to content

Commit

Permalink
Changed from rename to copy, so the test can ran multiply times.
Browse files Browse the repository at this point in the history
  • Loading branch information
cnpcshangbo committed Mar 1, 2024
1 parent d7f6f8f commit 2dc63d7
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion test_copy_geo_exiftool.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,9 @@ def tearDownClass(cls):

# Restore the original state of the mask image from the backup
if os.path.exists(cls.backup_mask_image_path):
os.rename(cls.backup_mask_image_path, cls.test_mask_image_path)
import shutil
shutil.copy2(cls.backup_mask_image_path, cls.test_mask_image_path)
# os.rename(cls.backup_mask_image_path, cls.test_mask_image_path)

if __name__ == '__main__':
unittest.main()

0 comments on commit 2dc63d7

Please sign in to comment.