Skip to content

Commit

Permalink
update dir_output
Browse files Browse the repository at this point in the history
  • Loading branch information
nilshempelmann committed Jan 10, 2019
1 parent 5296c75 commit 4fd19ad
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions tests/test_eggshell.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ def test_download_with_cache():
def test_archive_tar():
result = utils.archive(local_path(TESTDATA['cmip5_tasmax_2006_nc']),
format='tar',
output_dir=tempfile.mkdtemp())
dir_output=tempfile.mkdtemp())
tar = tarfile.open(result)
assert len(tar.getnames()) == 1

Expand All @@ -62,7 +62,7 @@ def test_archive_tar():
def test_archive_zip():
result = utils.archive(local_path(TESTDATA['cmip5_tasmax_2006_nc']),
format='zip',
output_dir=tempfile.mkdtemp())
dir_output=tempfile.mkdtemp())
zipf = zipfile.ZipFile(result)
assert len(zipf.namelist()) == 1

Expand Down
2 changes: 1 addition & 1 deletion tests/test_ocg_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ def test_ocgis_import():
def test_archive_tar():
result = utils.archive(local_path(TESTDATA['cmip5_tasmax_2006_nc']),
format='tar',
output_dir=tempfile.mkdtemp())
dir_output=tempfile.mkdtemp())
tar = tarfile.open(result)
assert len(tar.getnames()) == 1

Expand Down
2 changes: 1 addition & 1 deletion tests/test_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,6 @@ def test_download_with_cache():
def test_archive_zip():
result = utils.archive(local_path(TESTDATA['cmip5_tasmax_2006_nc']),
format='zip',
output_dir=tempfile.mkdtemp())
dir_output=tempfile.mkdtemp())
zipf = zipfile.ZipFile(result)
assert len(zipf.namelist()) == 1

0 comments on commit 4fd19ad

Please sign in to comment.