Skip to content

Commit 2ad61f2

Browse files
committed
Add render test for eo3 data
1 parent 14ccd3a commit 2ad61f2

File tree

2 files changed

+9
-4
lines changed

2 files changed

+9
-4
lines changed

cubedash/warmup.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -46,11 +46,7 @@ def find_examples_of_all_public_urls(index: Index):
4646
yield f"/api/datasets/{name}"
4747
yield f"/api/footprint/{name}/{time:%Y/%m/%d}"
4848

49-
# TODO: Do non-region_code regions too (such as ingested data)
50-
# TODO: Actually we have no EO3 in this test data, so it does nothing.
51-
# Maybe add test data from test_eo3_support.py?
5249
region_info = RegionInfo.for_product(dt)
53-
5450
if region_info is not None:
5551
region_code = region_info.dataset_region_code(dataset)
5652
if region_code is not None:

integration_tests/test_eo3_support.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,10 @@
1515

1616
from cubedash import _utils
1717
from cubedash.summary import _extents, SummaryStore
18+
from cubedash.warmup import find_examples_of_all_public_urls
1819
from datacube.index import Index
1920
from datacube.utils import parse_time
21+
from integration_tests.test_pages_render import assert_all_urls_render
2022

2123
TEST_DATA_DIR = Path(__file__).parent / "data"
2224
TEST_EO3_DATASET_L1 = (
@@ -173,3 +175,10 @@ def with_parsed_datetimes(v: Dict, name=""):
173175
return [with_parsed_datetimes(i) for i in v]
174176

175177
return v
178+
179+
180+
def test_all_eo3_pages_render(eo3_index: Index, client: FlaskClient):
181+
"""
182+
Do all expected URLS render with HTTP OK response with our normal eo3 test data?
183+
"""
184+
assert_all_urls_render(find_examples_of_all_public_urls(eo3_index), client)

0 commit comments

Comments
 (0)