5
5
6
6
import pytest
7
7
8
- from titiler .pystac import AdvancedClient
8
+ from titiler .pystac import Client
9
9
10
10
catalog_json = os .path .join (os .path .dirname (__file__ ), "fixtures" , "catalog.json" )
11
11
@@ -19,7 +19,7 @@ def mock_stac_io():
19
19
@pytest .fixture
20
20
def client (mock_stac_io ):
21
21
"""STAC client mock"""
22
- client = AdvancedClient (id = "pystac-client" , description = "pystac-client" )
22
+ client = Client (id = "pystac-client" , description = "pystac-client" )
23
23
24
24
with open (catalog_json , "r" ) as f :
25
25
catalog = json .loads (f .read ())
@@ -42,7 +42,7 @@ def test_get_supported_aggregations(client, mock_stac_io):
42
42
43
43
44
44
@patch (
45
- "titiler.pystac.advanced_client.AdvancedClient .get_supported_aggregations" ,
45
+ "titiler.pystac.advanced_client.Client .get_supported_aggregations" ,
46
46
return_value = ["datetime_frequency" ],
47
47
)
48
48
def test_get_aggregation_unsupported (supported_aggregations , client ):
@@ -58,7 +58,7 @@ def test_get_aggregation_unsupported(supported_aggregations, client):
58
58
59
59
60
60
@patch (
61
- "titiler.pystac.advanced_client.AdvancedClient .get_supported_aggregations" ,
61
+ "titiler.pystac.advanced_client.Client .get_supported_aggregations" ,
62
62
return_value = ["datetime_frequency" ],
63
63
)
64
64
def test_get_aggregation (supported_aggregations , client , mock_stac_io ):
@@ -102,7 +102,7 @@ def test_get_aggregation(supported_aggregations, client, mock_stac_io):
102
102
103
103
104
104
@patch (
105
- "titiler.pystac.advanced_client.AdvancedClient .get_supported_aggregations" ,
105
+ "titiler.pystac.advanced_client.Client .get_supported_aggregations" ,
106
106
return_value = ["datetime_frequency" ],
107
107
)
108
108
def test_get_aggregation_no_response (supported_aggregations , client , mock_stac_io ):
0 commit comments