mirror of
https://github.com/apache/superset.git
synced 2026-04-26 03:24:53 +00:00
Full Annotation Framework (#3518)
* Adding full Annotation Framework * Viz types * Re organizing native annotations * liniting * Bug fix * Handle no data * Cleanup * Refactor slice form_data to data
This commit is contained in:
committed by
Maxime Beauchemin
parent
e79d05fd77
commit
500e6256c0
@@ -89,9 +89,13 @@ class BaseVizTestCase(unittest.TestCase):
|
||||
mock_call = df.__setitem__.mock_calls[2]
|
||||
self.assertEqual(mock_call[1][0], DTTM_ALIAS)
|
||||
self.assertFalse(mock_call[1][1].empty)
|
||||
self.assertEqual(mock_call[1][1][0].hour, 6)
|
||||
self.assertEqual(mock_call[1][1][0].hour, 7)
|
||||
mock_call = df.__setitem__.mock_calls[3]
|
||||
self.assertEqual(mock_call[1][0], DTTM_ALIAS)
|
||||
self.assertEqual(mock_call[1][1][0].hour, 6)
|
||||
self.assertEqual(mock_call[1][1].dtype, 'datetime64[ns]')
|
||||
mock_call = df.__setitem__.mock_calls[4]
|
||||
self.assertEqual(mock_call[1][0], DTTM_ALIAS)
|
||||
self.assertEqual(mock_call[1][1][0].hour, 7)
|
||||
self.assertEqual(mock_call[1][1].dtype, 'datetime64[ns]')
|
||||
|
||||
|
||||
Reference in New Issue
Block a user