| 1 |
# begin:github_only |
| 2 |
|
| 3 |
def pyproto_test_wrapper(name): |
| 4 |
src = name + "_wrapper.py" |
| 5 |
native.py_test( |
| 6 |
name = name, |
| 7 |
srcs = [src], |
| 8 |
legacy_create_init = False, |
| 9 |
main = src, |
| 10 |
data = ["@com_google_protobuf//:testdata"], |
| 11 |
deps = [ |
| 12 |
"//python:_message", |
| 13 |
"@com_google_protobuf//:python_common_test_protos", |
| 14 |
"@com_google_protobuf//:python_specific_test_protos", |
| 15 |
"@com_google_protobuf//:python_test_srcs", |
| 16 |
"@com_google_protobuf//:python_srcs", |
| 17 |
], |
| 18 |
) |
| 19 |
|
| 20 |
# end:github_only |
| 21 |
|
| 22 |
# begin:google_only |
| 23 |
# |
| 24 |
# def pyproto_test_wrapper(name): |
| 25 |
# src = name + "_wrapper.py" |
| 26 |
# native.py_test( |
| 27 |
# name = name, |
| 28 |
# srcs = [src], |
| 29 |
# main = src, |
| 30 |
# deps = [ |
| 31 |
# "//net/proto2/python/internal:" + name + "_for_deps", |
| 32 |
# "//net/proto2/python/public:use_upb_protos", |
| 33 |
# ], |
| 34 |
# ) |
| 35 |
# |
| 36 |
# end:google_only |