mirror of
https://github.com/apache/superset.git
synced 2026-04-20 00:24:38 +00:00
Fix USA's state geojson for 'Country Map' visualization (#4121)
* Fix USA's state geojson for 'Country Map' visualization Turns out the ISO codes were missing from the geojson file, this adds it and uses human-readable indents. * using proper ISO codes * Linting New linting rules started applying, I'm guessing a new version of pylint?
This commit is contained in:
committed by
GitHub
parent
e498f2fcb6
commit
37205099db
@@ -833,18 +833,20 @@ class CoreTests(SupersetTestCase):
|
||||
|
||||
def test_dataframe_timezone(self):
|
||||
tz = psycopg2.tz.FixedOffsetTimezone(offset=60, name=None)
|
||||
data = [(datetime.datetime(2017, 11, 18, 21, 53, 0, 219225, tzinfo=tz),),
|
||||
(datetime.datetime(2017, 11, 18, 22, 6, 30, 61810, tzinfo=tz,),)]
|
||||
data = [
|
||||
(datetime.datetime(2017, 11, 18, 21, 53, 0, 219225, tzinfo=tz),),
|
||||
(datetime.datetime(2017, 11, 18, 22, 6, 30, 61810, tzinfo=tz),),
|
||||
]
|
||||
df = dataframe.SupersetDataFrame(pd.DataFrame(data=list(data),
|
||||
columns=['data', ]))
|
||||
columns=['data']))
|
||||
data = df.data
|
||||
self.assertDictEqual(
|
||||
data[0],
|
||||
{'data': pd.Timestamp('2017-11-18 21:53:00.219225+0100', tz=tz), },
|
||||
{'data': pd.Timestamp('2017-11-18 21:53:00.219225+0100', tz=tz)},
|
||||
)
|
||||
self.assertDictEqual(
|
||||
data[1],
|
||||
{'data': pd.Timestamp('2017-11-18 22:06:30.061810+0100', tz=tz), },
|
||||
{'data': pd.Timestamp('2017-11-18 22:06:30.061810+0100', tz=tz)},
|
||||
)
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user