Strip the .py suffix

This commit is contained in:
Reid 'arrdem' McKenzie 2024-02-06 20:55:36 -07:00
parent f0a871dd91
commit ea57f84002

View file

@ -251,7 +251,7 @@ def py_project(name=None,
for src in test_srcs:
if "test_" in src:
py_pytest(
name=src.split("/")[-1],
name=src.split("/")[-1].replace(".py", ""),
srcs=[src] + [f for f in test_srcs if "test_" not in f],
deps=[lib_name] + (test_deps or []),
data=test_data,