1load(":mytest.bzl", "my_test") 2load("@rules_python//python:defs.bzl", "py_library") 3 4# gazelle:map_kind py_test my_test :mytest.bzl 5 6py_library( 7 name = "respect_kind_mapping", 8 srcs = [ 9 "__init__.py", 10 "foo.py", 11 ], 12 visibility = ["//:__subpackages__"], 13) 14 15my_test( 16 name = "respect_kind_mapping_test", 17 srcs = ["__test__.py"], 18 main = "__test__.py", 19 deps = [":respect_kind_mapping"], 20) 21