Fix black

This commit is contained in:
alesapin 2022-03-28 21:32:53 +02:00
parent b928d8391e
commit f9c1a44cae
2 changed files with 3 additions and 0 deletions

View File

@ -14,6 +14,7 @@ CLUSTER_NAME = "test_cluster"
drop_table_statement = f"DROP TABLE {TABLE_NAME} ON CLUSTER {CLUSTER_NAME} SYNC"
@pytest.fixture(scope="module")
def cluster():
try:
@ -59,6 +60,7 @@ def create_table(node, table_name, replica, **additional_settings):
node.query(create_table_statement)
assert node.query(f"SELECT COUNT(*) FROM {table_name} FORMAT Values") == "(0)"
def get_large_objects_count(blob_container_client, large_size_threshold=100):
return sum(
blob["size"] > large_size_threshold

View File

@ -199,6 +199,7 @@ def test_backup_from_old_version_config(started_cluster):
node3.query("DROP TABLE source_table")
node3.query("DROP TABLE dest_table")
def test_backup_and_alter(started_cluster):
node4.query(
"CREATE DATABASE test ENGINE=Ordinary"