We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7684657 commit 38b5bdbCopy full SHA for 38b5bdb
python/tests/test_cog.py
@@ -1,7 +1,10 @@
1
import async_tiff
2
from time import time
3
+
4
+import pytest
5
6
from async_tiff import TIFF
-from async_tiff.store import S3Store
7
+from async_tiff.store import LocalStore, S3Store
8
9
store = S3Store("sentinel-cogs", region="us-west-2", skip_signature=True)
10
path = "sentinel-s2-l2a-cogs/12/S/UF/2022/6/S2B_12SUF_20220609_0_L2A/B04.tif"
@@ -25,3 +28,12 @@
25
28
gkd.citation
26
29
27
30
dir(gkd)
31
32
33
+async def test_cog_missing_file():
34
+ """
35
+ Ensure that a FileNotFoundError is raised when passing in a missing file.
36
37
+ store = LocalStore()
38
+ with pytest.raises(FileNotFoundError):
39
+ await TIFF.open(path="imaginary_file.tif", store=store)
0 commit comments