File tree Expand file tree Collapse file tree 1 file changed +6
-3
lines changed
Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change 55"""
66
77import json
8+ import sys
89
910import numpy as np
1011import pandas as pd
12+ import pytest
1113from branca .colormap import linear
1214
1315import folium
1416from folium .plugins import TimeSliderChoropleth
1517from folium .utilities import normalize
1618
1719
20+ @pytest .mark .xfail (sys .version_info [0 :2 ] == (3 , 8 ), reason = "too modern for py38" )
1821def test_timedynamic_geo_json ():
1922 """
2023 tests folium.plugins.TimeSliderChoropleth
2124 """
25+ import geodatasets
2226 import geopandas as gpd
2327
24- assert "naturalearth_lowres" in gpd .datasets .available
25- datapath = gpd .datasets .get_path ("naturalearth_lowres" )
28+ datapath = geodatasets .get_path ("naturalearth land" )
2629 gdf = gpd .read_file (datapath )
2730
2831 """
@@ -32,7 +35,7 @@ def test_timedynamic_geo_json():
3235 datetime.strftime('%s') on Windows just generates date and not timestamp so avoid.
3336 """
3437 n_periods = 3
35- dt_range = pd .Series (pd .date_range ("2001-08-1" , periods = n_periods , freq = "M " ))
38+ dt_range = pd .Series (pd .date_range ("2001-08-1" , periods = n_periods , freq = "ME " ))
3639 dt_index = [f"{ dt .timestamp ():.0f} " for dt in dt_range ]
3740
3841 styledata = {}
You can’t perform that action at this time.
0 commit comments