Skip to content

Commit c4612d5

Browse files
committed
chore: format
1 parent d2c6bfa commit c4612d5

File tree

1 file changed

+15
-14
lines changed

1 file changed

+15
-14
lines changed

protoc/private/prebuilt_protoc_toolchain_test.bzl

Lines changed: 15 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -8,23 +8,24 @@ load(":prebuilt_protoc_toolchain.bzl", "release_version_to_artifact_name")
88
load(":versions.bzl", "PROTOC_VERSIONS")
99

1010
def _release_version_to_artifact_name_test_impl(ctx):
11-
env = unittest.begin(ctx)
12-
count = 0
11+
env = unittest.begin(ctx)
12+
count = 0
1313

14-
for release_version in PROTOC_VERSIONS:
15-
artifact_name = release_version_to_artifact_name(release_version, "linux-x86_64")
16-
artifact_dict = PROTOC_VERSIONS[release_version]
17-
# there should be a linux-x86_64 artifact in every release
18-
asserts.true(env, artifact_name in artifact_dict, "'{}' not found for release version '{}'".format(artifact_name, release_version))
19-
count += 1
14+
for release_version in PROTOC_VERSIONS:
15+
artifact_name = release_version_to_artifact_name(release_version, "linux-x86_64")
16+
artifact_dict = PROTOC_VERSIONS[release_version]
2017

21-
asserts.true(env, count > 0, "no versions tested")
22-
return unittest.end(env)
18+
# there should be a linux-x86_64 artifact in every release
19+
asserts.true(env, artifact_name in artifact_dict, "'{}' not found for release version '{}'".format(artifact_name, release_version))
20+
count += 1
21+
22+
asserts.true(env, count > 0, "no versions tested")
23+
return unittest.end(env)
2324

2425
release_version_to_artifact_name_test = unittest.make(_release_version_to_artifact_name_test_impl)
2526

2627
def release_version_to_artifact_name_test_suite():
27-
unittest.suite(
28-
"release_version_to_artifact_name_tests",
29-
release_version_to_artifact_name_test,
30-
)
28+
unittest.suite(
29+
"release_version_to_artifact_name_tests",
30+
release_version_to_artifact_name_test,
31+
)

0 commit comments

Comments
 (0)