Skip to content
This repository has been archived by the owner on Aug 29, 2023. It is now read-only.

Commit

Permalink
#153 tests cleanup, used tmpdir for local storage, folder is removed …
Browse files Browse the repository at this point in the history
…once the test is done
  • Loading branch information
Krzysztof (Chris) Bernat committed Apr 6, 2017
1 parent 65d215a commit b5e92a1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion test/ds/test_esa_cci_odp.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ def setUp(self):

def tearDown(self):
DATA_STORE_REGISTRY.add_data_store(self._existing_local_data_store)
shutil.rmtree(self.tmp_dir)
shutil.rmtree(self.tmp_dir, ignore_errors=True)

def test_make_local_and_update(self):

Expand Down
4 changes: 2 additions & 2 deletions test/ds/test_local.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ def setUp(self):

def tearDown(self):
DATA_STORE_REGISTRY.add_data_store(self._existing_local_data_store)
shutil.rmtree(self.tmp_dir)
shutil.rmtree(self.tmp_dir, ignore_errors=True)

def test_add_pattern(self):
data_sources = self.data_store.query()
Expand Down Expand Up @@ -133,7 +133,7 @@ def setUp(self):

def tearDown(self):
DATA_STORE_REGISTRY.add_data_store(self._existing_local_data_store)
shutil.rmtree(self.tmp_dir)
shutil.rmtree(self.tmp_dir, ignore_errors=True)

def test_data_store(self):
self.assertIs(self.ds1.data_store, self._dummy_store)
Expand Down

0 comments on commit b5e92a1

Please sign in to comment.