Skip to content

Commit

Permalink
lint: formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
gadomski committed Apr 23, 2024
1 parent 0034106 commit 85128c7
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions tests/test_functions.py
Original file line number Diff line number Diff line change
Expand Up @@ -73,16 +73,18 @@ async def test_download_missing_asset_delete(tmp_path: Path, item: Item) -> None
)
assert "does-not-exist" not in item.assets


async def test_download_nonexistent_asset(tmp_path: Path, item: Item) -> None:
# this previously had a bug where the code assumed the directory had
# been created by downloading the assets when trying to write the item json,
# but it hadn't, so a failure occurred
await stac_asset.download_item(
item,
tmp_path / "dir-that-doesnt-exist",
file_name = "item.json",
config=Config(include=["non-existent-asset"]),
)
item,
tmp_path / "dir-that-doesnt-exist",
file_name="item.json",
config=Config(include=["non-existent-asset"]),
)


async def test_download_missing_asset_fail_fast(tmp_path: Path, item: Item) -> None:
item.assets["does-not-exist"] = Asset("not-a-file.md5")
Expand Down

0 comments on commit 85128c7

Please sign in to comment.