diff --git a/tests/rest/datacube/test_datacube.py b/tests/rest/datacube/test_datacube.py index 32f9899f3..6b0da6e8b 100644 --- a/tests/rest/datacube/test_datacube.py +++ b/tests/rest/datacube/test_datacube.py @@ -83,6 +83,19 @@ def _get_leaf_node(cube, force_flat=True) -> dict: class TestDataCube: + def test_load_stac_connectionless(self, connection): + expected_graph = { + "loadstac1": { + "process_id": "load_stac", + "arguments": {"url": "https://provider.test/dataset"}, + "result": True, + } + } + cube = DataCube.load_stac("https://provider.test/dataset") + assert cube.flat_graph() == expected_graph + cube2 = connection.load_stac("https://provider.test/dataset") + assert cube2.flat_graph() == expected_graph + def test_load_collection_connectionless_basic(self): cube = DataCube.load_collection("T3") assert cube.flat_graph() == { @@ -157,19 +170,6 @@ def test_filter_temporal_basic_extent(s2cube): assert graph['arguments']['extent'] == ["2016-01-01", "2016-03-10"] -def test_load_stac_connectionless(connection): - expected_graph = { - "loadstac1": { - "process_id": "load_stac", - "arguments": {"url": "https://provider.test/dataset"}, - "result": True, - } - } - cube = DataCube.load_stac("https://provider.test/dataset") - assert cube.flat_graph() == expected_graph - cube2 = connection.load_stac("https://provider.test/dataset") - assert cube2.flat_graph() == expected_graph - @pytest.mark.parametrize( "args,kwargs,extent", [