Skip to content

Commit

Permalink
Smoke test str/repr of GridWorkflow classes
Browse files Browse the repository at this point in the history
  • Loading branch information
Kirill888 authored and omad committed Jun 10, 2021
1 parent 5c400a8 commit 60c0039
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions tests/api/test_grid_workflow.py
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,11 @@ def test_gridworkflow():
# ------ test without padding ----

gw = GridWorkflow(fakeindex, gridspec)

# smoke test str/repr
assert len(str(gw)) > 0
assert len(repr(gw)) > 0

# Need to force the fake index otherwise the driver manager will
# only take its _db
gw.index = fakeindex
Expand Down Expand Up @@ -165,6 +170,10 @@ def search_eager(lat=None, lon=None, **kwargs):
assert grid / pixel == 10
assert tile.shape == (1, 10, 10)

# smoke test str/repr
assert len(str(tile)) > 0
assert len(repr(tile)) > 0

padded_tile = gw.list_tiles(tile_buffer=(20, 20), **query)[
1, -2, ti
] # padded example
Expand Down

0 comments on commit 60c0039

Please sign in to comment.