@@ -10,13 +10,13 @@ def test_get_url():
1010 url = geodatasets .get_url ("nybb" )
1111 assert (
1212 url
13- == "https://data.cityofnewyork.us/api/geospatial/tqmj-j8zm?method=export&format=Original " # noqa
13+ == "https://www.nyc.gov/assets/planning/download/zip/data-maps/open-data/nybb_16a.zip " # noqa
1414 )
1515
1616
1717@pytest .mark .request
1818def test_get_path ():
19- in_cache = pooch .os_cache ("geodatasets" ).joinpath ("nybb_22c .zip" )
19+ in_cache = pooch .os_cache ("geodatasets" ).joinpath ("nybb_16a .zip" )
2020 if Path (in_cache ).exists ():
2121 os .remove (in_cache )
2222
@@ -29,20 +29,20 @@ def test_get_path():
2929@pytest .mark .request
3030def test_fetch ():
3131 # clear cache
32- for data in ["airbnb.zip" , "nybb_22c .zip" , "nyc_neighborhoods.zip" ]:
32+ for data in ["airbnb.zip" , "nybb_16a .zip" , "nyc_neighborhoods.zip" ]:
3333 in_cache = pooch .os_cache ("geodatasets" ).joinpath (data )
3434 if Path (in_cache ).exists ():
3535 os .remove (in_cache )
3636
3737 geodatasets .fetch ("nybb" )
38- assert pooch .os_cache ("geodatasets" ).joinpath ("nybb_22c .zip" ).exists ()
38+ assert pooch .os_cache ("geodatasets" ).joinpath ("nybb_16a .zip" ).exists ()
3939
4040 geodatasets .fetch (["geoda airbnb" , "geoda atlanta" ])
4141
4242 for data in ["airbnb.zip" , "atlanta_hom.zip" ]:
4343 assert pooch .os_cache ("geodatasets" ).joinpath (data ).exists ()
4444
4545 # cleanup
46- for data in ["airbnb.zip" , "nybb_22c .zip" , "atlanta_hom.zip" ]:
46+ for data in ["airbnb.zip" , "nybb_16a .zip" , "atlanta_hom.zip" ]:
4747 in_cache = pooch .os_cache ("geodatasets" ).joinpath (data )
4848 os .remove (in_cache )
0 commit comments