Skip to content

Commit

Permalink
Change to Tuple.
Browse files Browse the repository at this point in the history
Add more return values to utils.
  • Loading branch information
morriscb committed Jul 17, 2024
1 parent fe673fe commit f14ebf7
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions tests/abc_atlas_cache/utils.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from typing import Optional
from typing import Optional, Tuple
import boto3
import hashlib
from moto import mock_aws
Expand All @@ -22,7 +22,7 @@ def create_manifest_dict(version: str,
metadata_file: str = 'metadata_file.csv',
test_directory: str = 'test_directory',
file_hash: Optional[str] = None,
location: str = 'us-east-1') -> tuple[dict, str, str]:
location: str = 'us-east-1') -> Tuple[dict, str, str]:
"""
"""
if file_hash is None:
Expand Down Expand Up @@ -91,7 +91,7 @@ def create_manifest_dict(version: str,
def add_file_to_manifest(
file_attribute: CacheFileAttributes,
manifest: dict
):
) -> dict:
"""
"""
split_file = file_attribute.relative_path.split('/')
Expand Down Expand Up @@ -131,7 +131,7 @@ def add_file_to_manifest(
def add_directory_to_manifest(
file_attribute: CacheFileAttributes,
manifest: dict
):
) -> dict:
"""
"""
split_file = file_attribute.relative_path.split('/')
Expand Down Expand Up @@ -163,7 +163,7 @@ def add_directory_to_manifest(
return manifest


def hash_data(data):
def hash_data(data) -> str:
hasher = hashlib.md5()
hasher.update(data)
return hasher.hexdigest()
Expand Down

0 comments on commit f14ebf7

Please sign in to comment.