Fix test in for latest clickhouse version

This commit is contained in:
Itai Shirav 2020-05-28 18:17:52 +03:00
parent f084b6e95f
commit e97e48a695

View File

@ -275,5 +275,10 @@ class DatabaseTestCase(TestCaseWithData):
self.assertTrue(model.is_read_only())
self.assertEqual(model.table_name(), row.name)
# Read a few records
try:
list(model.objects_in(self.database)[:10])
except ServerError as e:
if 'Not enough privileges' in e.message:
pass
else:
raise