Skip to content

Commit

Permalink
maintain ordering in interval test
Browse files Browse the repository at this point in the history
  • Loading branch information
kszucs committed Jan 9, 2018
1 parent 70a6c17 commit f84f0f2
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions tests/columns/test_interval.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,17 +4,17 @@
class IntervalTestCase(BaseTestCase):

def test_all(self):
interval = {
'YEAR': 1,
'MONTH': 2,
'WEEK': 3,
'DAY': 4,
'HOUR': 5,
'MINUTE': 6,
'SECOND': 7
}
interval = [
('YEAR', 1),
('MONTH', 2),
('WEEK', 3),
('DAY', 4),
('HOUR', 5),
('MINUTE', 6),
('SECOND', 7)
]
columns = ', '.join(['INTERVAL {} {}'.format(v, k)
for k, v in interval.items()])
for k, v in interval])
query = 'SELECT {} FROM system.numbers LIMIT 1'.format(columns)

cli_result = self.emit_cli(query)
Expand Down

0 comments on commit f84f0f2

Please sign in to comment.