Skip to content

Commit

Permalink
Fix some type warnings; cosmetics
Browse files Browse the repository at this point in the history
  • Loading branch information
hannes-ucsc committed May 5, 2023
1 parent d7c07a2 commit bf9a3b5
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions test/integration_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -471,6 +471,7 @@ def _wait_for_indexer():
if index and delete:
# FIXME: Test delete notifications
# https://github.com/DataBiosphere/azul/issues/3548
# noinspection PyUnreachableCode
if False:
with self._service_account_credentials:
for catalog in catalogs:
Expand Down Expand Up @@ -537,16 +538,14 @@ def _test_other_endpoints(self):
def _test_manifest(self, catalog: CatalogName):
supported_formats = self.metadata_plugin(catalog).manifest_formats
assert supported_formats
validators = {
validators: dict[ManifestFormat, Callable[[str, bytes], None]] = {
ManifestFormat.compact: self._check_manifest,
ManifestFormat.terra_bdbag: self._check_terra_bdbag,
ManifestFormat.terra_pfb: self._check_terra_pfb,
ManifestFormat.curl: self._check_curl_manifest
}
for format_ in [None, *supported_formats]:
with self.subTest('manifest',
catalog=catalog,
format=format_):
with self.subTest('manifest', catalog=catalog, format=format_):
args = dict(catalog=catalog)
if format_ is None:
validator = validators[first(supported_formats)]
Expand Down

0 comments on commit bf9a3b5

Please sign in to comment.