Automatic style fix

This commit is contained in:
robot-clickhouse 2024-06-06 23:41:25 +00:00
parent 8f26f77505
commit 367d41e7f0
2 changed files with 15 additions and 6 deletions

View File

@ -209,7 +209,12 @@ class CiSettings:
res = {}
for job, job_config in job_configs.items():
if self._check_if_selected(
job, job_config, is_release=is_release, is_pr=is_pr, is_mq=is_mq, labels=labels
job,
job_config,
is_release=is_release,
is_pr=is_pr,
is_mq=is_mq,
labels=labels,
):
res[job] = job_config

View File

@ -167,10 +167,14 @@ class TestCIOptions(unittest.TestCase):
)
jobs_configs = {job: JobConfig() for job in _TEST_JOB_LIST}
jobs_configs["fuzzers"].run_by_label = (
jobs_configs[
"fuzzers"
].run_by_label = (
"TEST_LABEL" # check "fuzzers" appears in the result due to the label
)
jobs_configs["Integration tests (asan)"].release_only = (
jobs_configs[
"Integration tests (asan)"
].release_only = (
True # still must be included as it's set with include keywords
)
filtered_jobs = list(
@ -293,9 +297,9 @@ class TestCIOptions(unittest.TestCase):
self.assertCountEqual(ci_options.include_keywords, ["analyzer"])
self.assertIsNone(ci_options.exclude_keywords)
jobs_configs = {job: JobConfig() for job in _TEST_JOB_LIST}
jobs_configs["fuzzers"].run_by_label = (
"TEST_LABEL" # check "fuzzers" does not appears in the result
)
jobs_configs[
"fuzzers"
].run_by_label = "TEST_LABEL" # check "fuzzers" does not appears in the result
jobs_configs["Integration tests (asan)"].release_only = True
filtered_jobs = list(
ci_options.apply(