11import json
22
33def test_atl24_granule (client ):
4- response = client .get ('/ams/atl24 /granule/ATL24_20181014001920_02350103_006_02_002_01.h5' )
4+ response = client .get ('/ams/ATL24 /granule/ATL24_20181014001920_02350103_006_02_002_01.h5' )
55 data = json .loads (response .data .decode ("utf-8" ))
66 assert data ["gt1r" ]["season" ] == 3
77 assert data ["gt3r" ]["bathy_photons" ] == 16
@@ -10,40 +10,40 @@ def test_atl24_granule(client):
1010 assert beam in data
1111
1212def test_atl24_time_range (client ):
13- response = client .post ('/ams/atl24 ' , json = {"t0" :"2018-10-14" , "t1" :"2018-10-15" })
13+ response = client .post ('/ams/ATL24 ' , json = {"t0" :"2018-10-14" , "t1" :"2018-10-15" })
1414 data = json .loads (response .data .decode ("utf-8" ))
1515 assert data ["hits" ] == 789
1616 assert len (data ["granules" ]) == 138
1717 assert "ATL24_20181014153336_02440113_006_02_002_01.h5" in data ["granules" ]
1818
1919def test_atl24_season (client ):
20- response = client .post ('/ams/atl24 ' , json = {"t0" :"2019-09-30" , "t1" :"2019-10-02" })
20+ response = client .post ('/ams/ATL24 ' , json = {"t0" :"2019-09-30" , "t1" :"2019-10-02" })
2121 data = json .loads (response .data .decode ("utf-8" ))
2222 assert data ["hits" ] == 1507
23- response = client .post ('/ams/atl24 ' , json = {"t0" :"2019-09-30" , "t1" :"2019-10-02" , "season" :0 })
23+ response = client .post ('/ams/ATL24 ' , json = {"t0" :"2019-09-30" , "t1" :"2019-10-02" , "season" :0 })
2424 data = json .loads (response .data .decode ("utf-8" ))
2525 assert data ["hits" ] == 289
26- response = client .post ('/ams/atl24 ' , json = {"t0" :"2019-09-30" , "t1" :"2019-10-02" , "season" :1 })
26+ response = client .post ('/ams/ATL24 ' , json = {"t0" :"2019-09-30" , "t1" :"2019-10-02" , "season" :1 })
2727 data = json .loads (response .data .decode ("utf-8" ))
2828 assert data ["hits" ] == 296
29- response = client .post ('/ams/atl24 ' , json = {"t0" :"2019-09-30" , "t1" :"2019-10-02" , "season" :2 })
29+ response = client .post ('/ams/ATL24 ' , json = {"t0" :"2019-09-30" , "t1" :"2019-10-02" , "season" :2 })
3030 data = json .loads (response .data .decode ("utf-8" ))
3131 assert data ["hits" ] == 449
32- response = client .post ('/ams/atl24 ' , json = {"t0" :"2019-09-30" , "t1" :"2019-10-02" , "season" :3 })
32+ response = client .post ('/ams/ATL24 ' , json = {"t0" :"2019-09-30" , "t1" :"2019-10-02" , "season" :3 })
3333 data = json .loads (response .data .decode ("utf-8" ))
3434 assert data ["hits" ] == 473
3535
3636def test_atl24_bathy_range (client ):
37- response = client .post ('/ams/atl24 ' , json = {"t0" :"2019-09-30" , "t1" :"2019-10-02" , "photons0" :100 })
37+ response = client .post ('/ams/ATL24 ' , json = {"t0" :"2019-09-30" , "t1" :"2019-10-02" , "photons0" :100 })
3838 data = json .loads (response .data .decode ("utf-8" ))
3939 assert data ["hits" ] == 859
40- response = client .post ('/ams/atl24 ' , json = {"t0" :"2019-09-30" , "t1" : "2019-10-02" , "meandepth1" :10 })
40+ response = client .post ('/ams/ATL24 ' , json = {"t0" :"2019-09-30" , "t1" : "2019-10-02" , "meandepth1" :10 })
4141 data = json .loads (response .data .decode ("utf-8" ))
4242 assert data ["hits" ] == 844
43- response = client .post ('/ams/atl24 ' , json = {"t0" :"2019-09-30" , "t1" :"2019-10-02" , "mindepth1" :10 })
43+ response = client .post ('/ams/ATL24 ' , json = {"t0" :"2019-09-30" , "t1" :"2019-10-02" , "mindepth1" :10 })
4444 data = json .loads (response .data .decode ("utf-8" ))
4545 assert data ["hits" ] == 1268
46- response = client .post ('/ams/atl24 ' , json = {"t0" :"2019-09-30" , "t1" :"2019-10-02" , "maxdepth0" :30 })
46+ response = client .post ('/ams/ATL24 ' , json = {"t0" :"2019-09-30" , "t1" :"2019-10-02" , "maxdepth0" :30 })
4747 data = json .loads (response .data .decode ("utf-8" ))
4848 assert data ["hits" ] == 46
4949
@@ -55,6 +55,6 @@ def test_atl24_poly(client):
5555 {"lat" : 21.222261686673306 , "lon" : - 73.51303956051089 },
5656 {"lat" : 21.222261686673306 , "lon" : - 73.78074797284968 }
5757 ]
58- response = client .post (f'/ams/atl24 ' , json = {"poly" :poly })
58+ response = client .post (f'/ams/ATL24 ' , json = {"poly" :poly })
5959 data = json .loads (response .data .decode ("utf-8" ))
6060 assert data ["hits" ] == 408
0 commit comments