ci_status: Reformat tests
Change-Id: If134dbcc86cd5fb981c732d88f3d42686a1663a0
Reviewed-on: https://pigweed-review.googlesource.com/c/infra/recipes/+/229272
Commit-Queue: Auto-Submit <auto-submit@pigweed-service-accounts.iam.gserviceaccount.com>
Pigweed-Auto-Submit: Rob Mohr <mohrr@google.com>
Lint: Lint 🤖 <android-build-ayeaye@system.gserviceaccount.com>
Reviewed-by: Danielle Kay <danikay@google.com>
Presubmit-Verified: CQ Bot Account <pigweed-scoped@luci-project-accounts.iam.gserviceaccount.com>
diff --git a/recipe_modules/ci_status/tests/exit_early_in_recipe_testing_if_failing.py b/recipe_modules/ci_status/tests/exit_early_in_recipe_testing_if_failing.py
index be6d4b1..25c708b 100644
--- a/recipe_modules/ci_status/tests/exit_early_in_recipe_testing_if_failing.py
+++ b/recipe_modules/ci_status/tests/exit_early_in_recipe_testing_if_failing.py
@@ -51,28 +51,28 @@
# assertions. This must be the last thing added to the test.
return api.post_process(post_process.DropExpectation)
- yield (
- api.test('not-in-recipe-testing')
- + assert_continue()
- + drop_expectations_must_be_last()
+ yield api.test(
+ 'not-in-recipe-testing',
+ assert_continue(),
+ drop_expectations_must_be_last(),
)
- yield (
- api.test('passing')
- + api.checkout.try_test_data()
- + recipe_testing_enabled()
- + assert_continue()
- + drop_expectations_must_be_last()
+ yield api.test(
+ 'passing',
+ api.checkout.try_test_data(),
+ recipe_testing_enabled(),
+ assert_continue(),
+ drop_expectations_must_be_last(),
)
- yield (
- api.test('failing')
- + api.checkout.try_test_data()
- + recipe_testing_enabled()
- + api.buildbucket.simulated_search_results(
+ yield api.test(
+ 'failing',
+ api.checkout.try_test_data(),
+ recipe_testing_enabled(),
+ api.buildbucket.simulated_search_results(
[api.builder_status.failure(), api.builder_status.failure()],
step_name='checking CI status.buildbucket.search',
- )
- + assert_exit_early()
- + drop_expectations_must_be_last()
+ ),
+ assert_exit_early(),
+ drop_expectations_must_be_last(),
)
diff --git a/recipe_modules/ci_status/tests/transform_bucket_name.py b/recipe_modules/ci_status/tests/transform_bucket_name.py
index f487e00..aacb99f 100644
--- a/recipe_modules/ci_status/tests/transform_bucket_name.py
+++ b/recipe_modules/ci_status/tests/transform_bucket_name.py
@@ -35,11 +35,11 @@
def GenTests(api) -> Generator[recipe_test_api.TestData, None, None]:
def test(orig, expected):
- return (
- api.test(orig)
- + api.properties(InputProperties(bucket_name=orig))
- + api.post_process(post_process.MustRun, expected)
- + api.post_process(post_process.DropExpectation)
+ return api.test(
+ orig,
+ api.properties(InputProperties(bucket_name=orig)),
+ api.post_process(post_process.MustRun, expected),
+ api.post_process(post_process.DropExpectation),
)
yield test('ci', 'ci')