From 726301561fe1d82eead512235a82dbedc74eb870 Mon Sep 17 00:00:00 2001 From: Rhet Turnbull Date: Sun, 2 Jun 2024 08:19:10 -0500 Subject: [PATCH] Reset counter --- tests/test_cli_import.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tests/test_cli_import.py b/tests/test_cli_import.py index ad40920ba..8e197aafd 100644 --- a/tests/test_cli_import.py +++ b/tests/test_cli_import.py @@ -1729,6 +1729,9 @@ def test_import_edited_without_aae(tmp_path): def test_import_edited_renamed_with_aae(tmp_path): """Test import of image with edited file and AAE sidecar that needs to be renamed to be recognized by Photos as edited pair""" + # reset the counter in import_cli + import_cli._global_image_counter = 1 + cwd = os.getcwd() source_image_original = os.path.join(cwd, TEST_IMAGE_WITH_EDIT_ORIGINAL) source_image_edited = os.path.join(cwd, TEST_IMAGE_WITH_EDIT_EDITED)