Skip to content

Commit

Permalink
Use defaults for process_client.CompressTypeDef
Browse files Browse the repository at this point in the history
  • Loading branch information
index-git committed Oct 26, 2021
1 parent 28c9c4b commit b10a9c7
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 7 deletions.
3 changes: 2 additions & 1 deletion test_tools/process_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -78,11 +78,12 @@
),
}

# pylint: disable=unexpected-keyword-arg
CompressTypeDef = namedtuple('CompressTypeDef', [
'archive_name',
'inner_directory',
'file_name',
])
], defaults=[None, None, None])


def wait_for_rest(url, max_attempts, sleeping_time, check_response, headers=None):
Expand Down
8 changes: 2 additions & 6 deletions tests/dynamic_data/predefined_zip_files.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,7 @@
'sample/layman.layer/sample_tif_tfw_rgba_opaque.tif',
],
'compress': True,
'compress_settings': process_client.CompressTypeDef(archive_name=None,
inner_directory='/sample_tif_tfw_rgba_opaque/sample_tif_tfw_rgba_opaque/sample_tif_tfw_rgba_opaque/',
file_name=None,
'compress_settings': process_client.CompressTypeDef(inner_directory='/sample_tif_tfw_rgba_opaque/sample_tif_tfw_rgba_opaque/sample_tif_tfw_rgba_opaque/',
),
}

Expand All @@ -40,8 +38,6 @@
'sample/layman.layer/sample_tif_colortable_nodata_opaque.tif.aux.xml',
],
'compress': True,
'compress_settings': process_client.CompressTypeDef(archive_name=None,
inner_directory='/sample_tif_colortable_nodata_opaque/',
file_name=None,
'compress_settings': process_client.CompressTypeDef(inner_directory='/sample_tif_colortable_nodata_opaque/',
),
}

0 comments on commit b10a9c7

Please sign in to comment.