Richard Levasseur | 3a57e4a | 2023-09-18 16:41:06 -0700 | [diff] [blame] | 1 | # Copyright 2022 The Bazel Authors. All rights reserved. |
| 2 | # |
| 3 | # Licensed under the Apache License, Version 2.0 (the "License"); |
| 4 | # you may not use this file except in compliance with the License. |
| 5 | # You may obtain a copy of the License at |
| 6 | # |
| 7 | # http://www.apache.org/licenses/LICENSE-2.0 |
| 8 | # |
| 9 | # Unless required by applicable law or agreed to in writing, software |
| 10 | # distributed under the License is distributed on an "AS IS" BASIS, |
| 11 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 12 | # See the License for the specific language governing permissions and |
| 13 | # limitations under the License. |
| 14 | """Implementation of macro-half of py_test rule.""" |
| 15 | |
Richard Levasseur | 09109e3 | 2023-09-20 15:40:51 -0700 | [diff] [blame] | 16 | load(":common_bazel.bzl", "convert_legacy_create_init_to_int") |
Richard Levasseur | 7c5e7cf | 2024-10-29 20:32:35 -0700 | [diff] [blame] | 17 | load(":py_test_rule.bzl", py_test_rule = "py_test") |
Richard Levasseur | 3a57e4a | 2023-09-18 16:41:06 -0700 | [diff] [blame] | 18 | |
| 19 | def py_test(**kwargs): |
| 20 | convert_legacy_create_init_to_int(kwargs) |
| 21 | py_test_rule(**kwargs) |