File tree Expand file tree Collapse file tree 1 file changed +13
-10
lines changed Expand file tree Collapse file tree 1 file changed +13
-10
lines changed Original file line number Diff line number Diff line change @@ -6463,15 +6463,14 @@ def test_batchdap4_downloads(protocol, batch) -> None:
64636463 session .cache .clear ()
64646464 url = "https://test.opendap.org/opendap/hyrax/data/nc/coads_climatology.nc"
64656465
6466- args = {
6467- "filename_or_obj" : url .replace ("https" , protocol ),
6468- "engine" : "pydap" ,
6469- "session" : session ,
6470- "decode_times" : False ,
6471- }
6472-
64736466 if protocol == "dap4" :
6474- ds = open_dataset (** args , batch = batch )
6467+ ds = open_dataset (
6468+ url .replace ("https" , protocol ),
6469+ engine = "pydap" ,
6470+ session = session ,
6471+ decode_times = False ,
6472+ batch = batch ,
6473+ )
64756474 if _version_ > Version ("3.5.5" ):
64766475 # total downloads are:
64776476 # 1 dmr + 1 dap (dimensions)
@@ -6490,9 +6489,13 @@ def test_batchdap4_downloads(protocol, batch) -> None:
64906489 ds .load ()
64916490 assert len (session .cache .urls ()) == 4 + 4
64926491 elif protocol == "dap2" :
6493- ds = open_dataset (** args )
6492+ ds = open_dataset (
6493+ url .replace ("https" , protocol ),
6494+ engine = "pydap" ,
6495+ session = session ,
6496+ decode_times = False ,
6497+ )
64946498 # das + dds + 3 dods urls
6495-
64966499 assert len (session .cache .urls ()) == 5
64976500
64986501
You can’t perform that action at this time.
0 commit comments