Skip to content

Commit

Permalink
document test
Browse files Browse the repository at this point in the history
  • Loading branch information
Jan Van den bosch committed May 16, 2024
1 parent a1ae332 commit a54d6bb
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions tests/test_integration.py
Original file line number Diff line number Diff line change
Expand Up @@ -2366,6 +2366,8 @@ def normalize_pixels(data, bands):
@pytest.mark.batchjob
@pytest.mark.timeout(BATCH_JOB_TIMEOUT)
def test_filter_by_multiple_tile_ids(auth_connection):
"""The bbox below intersects 4 Sentinel 2 tiles: 31UES, 31UET, 31UFS and 31UFT; filtering by tile ID removes
31UET and 31UFT from the output and the "derived_from" links."""
from openeo.processes import array_contains

tile_ids = ["31UES", "31UFS"]
Expand All @@ -2387,7 +2389,7 @@ def test_filter_by_multiple_tile_ids(auth_connection):

assert len(derived_from) == 2

def matches_some_tile_id(href):
def matches_expected_tile_ids(href):
return any(tile_id in href for tile_id in tile_ids)

assert all(matches_some_tile_id(href) for href in derived_from)
assert all(matches_expected_tile_ids(href) for href in derived_from)

0 comments on commit a54d6bb

Please sign in to comment.