mirror of
https://github.com/vale981/ray
synced 2025-03-06 02:21:39 -05:00
12 lines
312 B
Python
12 lines
312 B
Python
# py_test_module_list creates a py_test target for each
|
|
# Python file in `files`
|
|
def py_test_module_list(files, size, deps, extra_srcs, **kwargs):
|
|
for file in files:
|
|
# remove .py
|
|
name = file[:-3]
|
|
native.py_test(
|
|
name=name,
|
|
size=size,
|
|
srcs=extra_srcs+[file],
|
|
**kwargs
|
|
)
|