From f84f0f2a1e608b36347def50310bf7c7e0c6b9e4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kriszti=C3=A1n=20Sz=C5=B1cs?= Date: Tue, 9 Jan 2018 10:31:46 +0100 Subject: [PATCH] maintain ordering in interval test --- tests/columns/test_interval.py | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/tests/columns/test_interval.py b/tests/columns/test_interval.py index f61bdd3e..845eef22 100644 --- a/tests/columns/test_interval.py +++ b/tests/columns/test_interval.py @@ -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)