mirror of
https://github.com/valitydev/redash.git
synced 2024-11-07 01:25:16 +00:00
Remove MQL tests
This commit is contained in:
parent
b7a5d95bb8
commit
d9bad96e8e
@ -1,14 +0,0 @@
|
||||
from datetime import datetime
|
||||
from unittest import TestCase
|
||||
from redash.query_runner import TYPE_DATETIME, TYPE_INTEGER, TYPE_STRING
|
||||
from redash.query_runner.mql import deduce_columns
|
||||
|
||||
|
||||
class TestMQL(TestCase):
|
||||
def test_deduce_columns(self):
|
||||
self.assertEquals(deduce_columns([{'a': 1}]),
|
||||
[{'name': 'a', 'friendly_name': 'a', 'type': TYPE_INTEGER}])
|
||||
self.assertEquals(deduce_columns([{'a': 'foo'}]),
|
||||
[{'name': 'a', 'friendly_name': 'a', 'type': TYPE_STRING}])
|
||||
self.assertEquals(deduce_columns([{'a': datetime.now()}]),
|
||||
[{'name': 'a', 'friendly_name': 'a', 'type': TYPE_DATETIME}])
|
Loading…
Reference in New Issue
Block a user