From fad3f2ff0021262915a81faaf517dfe88ca03167 Mon Sep 17 00:00:00 2001 From: robot-clickhouse Date: Fri, 29 Nov 2024 17:53:59 +0000 Subject: [PATCH] Automatic style fix --- .../test.py | 38 +++++++++---------- 1 file changed, 19 insertions(+), 19 deletions(-) diff --git a/tests/integration/test_startup_scripts_execution_state/test.py b/tests/integration/test_startup_scripts_execution_state/test.py index e379a7bf0aa..f00026df2ff 100644 --- a/tests/integration/test_startup_scripts_execution_state/test.py +++ b/tests/integration/test_startup_scripts_execution_state/test.py @@ -1,7 +1,7 @@ -from enum import Enum import random import string import time +from enum import Enum import pytest @@ -10,18 +10,12 @@ from helpers.cluster import ClickHouseCluster cluster = ClickHouseCluster(__file__) good = cluster.add_instance( "good", - main_configs=[ - "config/users.xml", - "config/good_script.xml" - ], + main_configs=["config/users.xml", "config/good_script.xml"], stay_alive=True, ) bad = cluster.add_instance( "bad", - main_configs=[ - "config/users.xml", - "config/bad_script.xml" - ], + main_configs=["config/users.xml", "config/bad_script.xml"], stay_alive=True, ) @@ -43,14 +37,20 @@ def test_startup_execution_state(start_cluster): STATE_SUCCESS = 1 STATE_FAILURE = 2 - assert int( - good.query( - "SELECT value FROM system.metrics WHERE metric = 'StartupScriptsExecutionState'" - ).strip() - ) == STATE_SUCCESS + assert ( + int( + good.query( + "SELECT value FROM system.metrics WHERE metric = 'StartupScriptsExecutionState'" + ).strip() + ) + == STATE_SUCCESS + ) - assert int( - bad.query( - "SELECT value FROM system.metrics WHERE metric = 'StartupScriptsExecutionState'" - ).strip() - ) == STATE_FAILURE + assert ( + int( + bad.query( + "SELECT value FROM system.metrics WHERE metric = 'StartupScriptsExecutionState'" + ).strip() + ) + == STATE_FAILURE + )