Skip to content

Commit

Permalink
sqme: load hints tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Kirill888 committed Jun 21, 2024
1 parent 854bd4c commit 54945bd
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions tests/test_model.py
Original file line number Diff line number Diff line change
Expand Up @@ -195,10 +195,10 @@ def test_product_load_hints():

hints = product.load_hints()
assert hints['output_crs'] == CRS('epsg:3857')
assert hints['resolution'] == (-10, 10)
assert hints['resolution'].yx == (-10, 10)
assert hints['align'] == (6, 5)
assert product.default_crs == CRS('epsg:3857')
assert product.default_resolution == (-10, 10)
assert product.default_resolution.yx == (-10, 10)
assert product.default_align == (6, 5)

product = mk_sample_product('test_product',
Expand All @@ -208,7 +208,7 @@ def test_product_load_hints():

hints = product.load_hints()
assert hints['output_crs'] == CRS('epsg:4326')
assert hints['resolution'] == (-1.1, 1.2)
assert hints['resolution'].yx == (-1.1, 1.2)
assert hints['align'] == (0.6, 0.5)

# check it's cached
Expand All @@ -235,7 +235,7 @@ def test_product_load_hints():
crs='EPSG:3857',
resolution={'x': 10, 'y': -10}))
assert product.grid_spec is None
assert product.default_resolution == (-10, 10)
assert product.default_resolution.yx == (-10, 10)
assert product.default_crs == CRS('EPSG:3857')

# check for fallback into partially defined `storage:`
Expand Down

0 comments on commit 54945bd

Please sign in to comment.