diff --git a/scripts/files/tests/fs_s3_test.py b/scripts/files/tests/fs_s3_test.py index aa5b598a2..4270791c4 100644 --- a/scripts/files/tests/fs_s3_test.py +++ b/scripts/files/tests/fs_s3_test.py @@ -136,7 +136,7 @@ def test_list_files_in_uri() -> None: boto3_client.put_object(Bucket=bucket_name, Key="data/image.tiff", Body=b"") boto3_client.put_object(Bucket=bucket_name, Key="data/image_meta.xml", Body=b"") - files = list_files_in_uri("s3://testbucket/data/", [".json", "_meta.xml"], boto3_client) + files = list_files_in_uri(f"s3://{bucket_name}/data/", [".json", "_meta.xml"], boto3_client) assert len(files) == 2 assert set(files) == {"data/collection.json", "data/image_meta.xml"} diff --git a/scripts/stac/imagery/collection.py b/scripts/stac/imagery/collection.py index dab09b278..4e5584fee 100644 --- a/scripts/stac/imagery/collection.py +++ b/scripts/stac/imagery/collection.py @@ -92,7 +92,7 @@ def add_capture_area(self, polygons: List[shapely.geometry.shape], target: str) target: path of the capture-area-geojson file """ - # The GSD is currently alway in meters (e.g. `0.3m`) + # The GSD is measured in meters (e.g., `0.3m`) capture_area_document = generate_capture_area(polygons, float(self.metadata["gsd"].replace("m", ""))) capture_area_content: bytes = json.dumps(capture_area_document).encode("utf-8") file_checksum = checksum.multihash_as_hex(capture_area_content)