Automatic style fix

This commit is contained in:
robot-clickhouse 2024-11-29 17:53:59 +00:00
parent b512997e50
commit fad3f2ff00

View File

@ -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(
assert (
int(
good.query(
"SELECT value FROM system.metrics WHERE metric = 'StartupScriptsExecutionState'"
).strip()
) == STATE_SUCCESS
)
== STATE_SUCCESS
)
assert int(
assert (
int(
bad.query(
"SELECT value FROM system.metrics WHERE metric = 'StartupScriptsExecutionState'"
).strip()
) == STATE_FAILURE
)
== STATE_FAILURE
)