diff --git a/ydb/tests/olap/scenario/helpers/scenario_tests_helper.py b/ydb/tests/olap/scenario/helpers/scenario_tests_helper.py index b0b439ec31d6..ffb006620be9 100644 --- a/ydb/tests/olap/scenario/helpers/scenario_tests_helper.py +++ b/ydb/tests/olap/scenario/helpers/scenario_tests_helper.py @@ -92,7 +92,7 @@ def __init__(self, name: str, compression: ScenarioTestHelper.Compression, compr def to_yql(self) -> str: """Convert to YQL""" - return f'FAMILY {self._name} (COMPRESSION = "{self._compression.name}"{", COMPRESSION_LEVEL = " + str(self._compression_level) if self._compression_level != None else ""})' + return f'FAMILY {self._name} (COMPRESSION = "{self._compression.name}"{", COMPRESSION_LEVEL = " + str(self._compression_level) if self._compression_level is not None else ""})' @property def name(self) -> str: diff --git a/ydb/tests/olap/scenario/test_alter_compression.py b/ydb/tests/olap/scenario/test_alter_compression.py index 66c530bc2f68..1ac35a53eb88 100644 --- a/ydb/tests/olap/scenario/test_alter_compression.py +++ b/ydb/tests/olap/scenario/test_alter_compression.py @@ -17,8 +17,8 @@ ) from typing import List, Dict, Any -from ydb import PrimitiveType, StatusCode -from ydb.tests.olap.lib.utils import get_external_param, external_param_is_true +from ydb import PrimitiveType +from ydb.tests.olap.lib.utils import get_external_param from datetime import datetime, timedelta from string import ascii_lowercase