File tree Expand file tree Collapse file tree 2 files changed +9
-4
lines changed Expand file tree Collapse file tree 2 files changed +9
-4
lines changed Original file line number Diff line number Diff line change @@ -46,11 +46,7 @@ def find_examples_of_all_public_urls(index: Index):
46
46
yield f"/api/datasets/{ name } "
47
47
yield f"/api/footprint/{ name } /{ time :%Y/%m/%d} "
48
48
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?
52
49
region_info = RegionInfo .for_product (dt )
53
-
54
50
if region_info is not None :
55
51
region_code = region_info .dataset_region_code (dataset )
56
52
if region_code is not None :
Original file line number Diff line number Diff line change 15
15
16
16
from cubedash import _utils
17
17
from cubedash .summary import _extents , SummaryStore
18
+ from cubedash .warmup import find_examples_of_all_public_urls
18
19
from datacube .index import Index
19
20
from datacube .utils import parse_time
21
+ from integration_tests .test_pages_render import assert_all_urls_render
20
22
21
23
TEST_DATA_DIR = Path (__file__ ).parent / "data"
22
24
TEST_EO3_DATASET_L1 = (
@@ -173,3 +175,10 @@ def with_parsed_datetimes(v: Dict, name=""):
173
175
return [with_parsed_datetimes (i ) for i in v ]
174
176
175
177
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 )
You can’t perform that action at this time.
0 commit comments