summaryrefslogtreecommitdiff
path: root/tests/test_climat2.py
diff options
context:
space:
mode:
authorjvoisin2018-09-06 11:32:29 +0200
committerjvoisin2018-09-06 11:32:29 +0200
commit2e9adab86aeeb9b2d9dfbd65b7bf3fc0010364bd (patch)
treeb0057ba73e3f5548850a7667be99bf7df7063b3c /tests/test_climat2.py
parentc8c27dcf38ae272f04ed28ea4920c505bbb8cd92 (diff)
Improve a cli test resilience
Diffstat (limited to 'tests/test_climat2.py')
-rw-r--r--tests/test_climat2.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/tests/test_climat2.py b/tests/test_climat2.py
index 7d12a03..a94fc23 100644
--- a/tests/test_climat2.py
+++ b/tests/test_climat2.py
@@ -50,7 +50,10 @@ class TestReturnValue(unittest.TestCase):
50 50
51class TestCleanFolder(unittest.TestCase): 51class TestCleanFolder(unittest.TestCase):
52 def test_jpg(self): 52 def test_jpg(self):
53 os.mkdir('./tests/data/folder/') 53 try:
54 os.mkdir('./tests/data/folder/')
55 except FileExistsError:
56 pass
54 shutil.copy('./tests/data/dirty.jpg', './tests/data/folder/clean1.jpg') 57 shutil.copy('./tests/data/dirty.jpg', './tests/data/folder/clean1.jpg')
55 shutil.copy('./tests/data/dirty.jpg', './tests/data/folder/clean2.jpg') 58 shutil.copy('./tests/data/dirty.jpg', './tests/data/folder/clean2.jpg')
56 59