From 4be1b0437f85803c5ac77ce89adfa4dbaf2550b6 Mon Sep 17 00:00:00 2001 From: Itai Shirav Date: Sat, 6 Jun 2020 21:06:29 +0300 Subject: [PATCH] Support for data skipping indexes --- tests/test_indexes.py | 2 +- tests/test_migrations.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/test_indexes.py b/tests/test_indexes.py index 2507e92..0dccaea 100644 --- a/tests/test_indexes.py +++ b/tests/test_indexes.py @@ -7,7 +7,7 @@ class IndexesTest(unittest.TestCase): def setUp(self): self.database = Database('test-db', log_statements=True) - if self.database.server_version < (19, 3, 3): + if self.database.server_version < (20, 1, 2, 4): raise unittest.SkipTest('ClickHouse version too old') def tearDown(self): diff --git a/tests/test_migrations.py b/tests/test_migrations.py index 61b06b8..4654f03 100644 --- a/tests/test_migrations.py +++ b/tests/test_migrations.py @@ -127,7 +127,7 @@ class MigrationsTestCase(unittest.TestCase): with self.assertRaises(ServerError): self.database.insert([ModelWithConstraints(f1=99, f2='x')]) - if self.database.server_version < (19, 3, 3): + if self.database.server_version < (20, 1, 2, 4): # Creating indexes self.database.migrate('tests.sample_migrations', 18) self.assertTrue(self.table_exists(ModelWithIndex))