Skip to content

Commit

Permalink
Fixing more tests
Browse files Browse the repository at this point in the history
  • Loading branch information
mistercrunch committed Mar 24, 2017
1 parent 8e4cc7a commit 72614f3
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 2 additions & 0 deletions superset/dataframe.py
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,8 @@ def columns(self):
column['type'] = 'FLOAT'
elif isinstance(v, (datetime, date)):
column['type'] = 'DATETIME'
column['is_date'] = True
column['is_dim'] = False
# check if encoded datetime
if (
column['type'] == 'STRING' and
Expand Down
3 changes: 2 additions & 1 deletion tests/celery_tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
import subprocess
import time
import unittest
from past.builtins import basestring

import pandas as pd

Expand Down Expand Up @@ -280,7 +281,7 @@ def test_get_columns(self):
)
else:
self.assertEqual(self.dictify_list_of_dicts([
{'is_date': True, 'type': 'STRING', 'name': 'ds',
{'is_date': True, 'type': 'DATETIME', 'name': 'ds',
'is_dim': False},
{'is_date': True, 'type': 'DATETIME',
'name': 'ds2', 'is_dim': False},
Expand Down

0 comments on commit 72614f3

Please sign in to comment.