Skip to content

Commit 7d01180

Browse files
Fix flaky test
1 parent cbd9517 commit 7d01180

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/test_modules/test_cli_sync.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,10 @@
33
import unittest
44
from pathlib import Path
55

6-
import cloudinary.api
76
from click.testing import CliRunner
87

98
from cloudinary_cli.cli import cli
10-
from test.helper_test import unique_suffix, RESOURCES_DIR, TEST_FILES_DIR, delete_cld_folder_if_exists
9+
from test.helper_test import unique_suffix, RESOURCES_DIR, TEST_FILES_DIR, delete_cld_folder_if_exists, retry_assertion
1110

1211

1312
class TestCLISync(unittest.TestCase):
@@ -75,6 +74,7 @@ def test_cli_sync_pull(self):
7574
self.assertIn("Synced | 12", result.output)
7675
self.assertIn("Done!", result.output)
7776

77+
@retry_assertion
7878
def test_cli_sync_pull_twice(self):
7979
self._upload_sync_files(TEST_FILES_DIR)
8080

0 commit comments

Comments
 (0)