diff options
| author | jvoisin | 2018-09-06 11:32:29 +0200 |
|---|---|---|
| committer | jvoisin | 2018-09-06 11:32:29 +0200 |
| commit | 2e9adab86aeeb9b2d9dfbd65b7bf3fc0010364bd (patch) | |
| tree | b0057ba73e3f5548850a7667be99bf7df7063b3c /tests/test_climat2.py | |
| parent | c8c27dcf38ae272f04ed28ea4920c505bbb8cd92 (diff) | |
Improve a cli test resilience
Diffstat (limited to 'tests/test_climat2.py')
| -rw-r--r-- | tests/test_climat2.py | 5 |
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 | ||
| 51 | class TestCleanFolder(unittest.TestCase): | 51 | class 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 | ||
