Skip to content

Commit

Permalink
SettingTestCase fix
Browse files Browse the repository at this point in the history
Column 'default_expression' added to 'SELECT * from system.settings' output.
  • Loading branch information
xzkostyan committed Feb 5, 2018
1 parent 98b604b commit 264a885
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions tests/test_settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@ def test_int_apply(self):
settings = {'max_query_size': 142}

rv = self.client.execute(
"SELECT * FROM system.settings WHERE name = 'max_query_size'",
"SELECT name, value, changed FROM system.settings "
"WHERE name = 'max_query_size'",
settings=settings
)
self.assertEqual(rv, [('max_query_size', '142', 1)])
Expand All @@ -16,7 +17,7 @@ def test_float_apply(self):
settings = {'totals_auto_threshold': 1.23}

rv = self.client.execute(
"SELECT * FROM system.settings "
"SELECT name, value, changed FROM system.settings "
"WHERE name = 'totals_auto_threshold'",
settings=settings
)
Expand All @@ -26,7 +27,7 @@ def test_bool_apply(self):
settings = {'force_index_by_date': 2}

rv = self.client.execute(
"SELECT * FROM system.settings "
"SELECT name, value, changed FROM system.settings "
"WHERE name = 'force_index_by_date'",
settings=settings
)
Expand All @@ -36,7 +37,7 @@ def test_max_threads_apply(self):
settings = {'max_threads': 100500}

rv = self.client.execute(
"SELECT * FROM system.settings "
"SELECT name, value, changed FROM system.settings "
"WHERE name = 'max_threads'",
settings=settings
)
Expand All @@ -45,7 +46,7 @@ def test_max_threads_apply(self):
settings = {'max_threads': 'auto'}

self.client.execute(
"SELECT * FROM system.settings "
"SELECT name, value, changed FROM system.settings "
"WHERE name = 'max_threads'",
settings=settings
)
Expand Down

0 comments on commit 264a885

Please sign in to comment.