Skip to content

Commit 7577655

Browse files
committed
refactor: rename to py_ prefix matching casey's
1 parent 5f9a6b4 commit 7577655

2 files changed

Lines changed: 6 additions & 6 deletions

File tree

examples/pytest/BUILD.bazel

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
load("@aspect_rules_py//pytest:defs.bzl", "pytest_test")
1+
load("@aspect_rules_py//pytest:defs.bzl", "py_pytest_test")
22

3-
pytest_test(
3+
py_pytest_test(
44
name = "pytest_test",
55
srcs = [
66
"foo_test.py",

pytest/defs.bzl

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@
33
Example:
44
55
```starlark
6-
load("@aspect_rules_py//pytest:defs.bzl", "pytest_test")
6+
load("@aspect_rules_py//pytest:defs.bzl", "py_pytest_test")
77
8-
pytest_test(
8+
py_pytest_test(
99
name = "test_w_pytest",
1010
size = "small",
1111
srcs = ["test.py"],
@@ -17,7 +17,7 @@ If sharding is used (when `shard_count > 1`) then `@pip//pytest_shard` is also a
1717
To instead provide explicit deps for the pytest library, set `pytest_deps`:
1818
1919
```starlark
20-
pytest_test(
20+
py_pytest_test(
2121
name = "test_w_my_pytest",
2222
shard_count = 2,
2323
srcs = ["test.py"],
@@ -28,7 +28,7 @@ pytest_test(
2828

2929
load("//py:defs.bzl", "py_test")
3030

31-
def pytest_test(name, srcs, deps = [], args = [], pytest_deps = None, pip_repo = "pip", **kwargs):
31+
def py_pytest_test(name, srcs, deps = [], args = [], pytest_deps = None, pip_repo = "pip", **kwargs):
3232
"""
3333
Wrapper macro for `py_test` which supports pytest.
3434

0 commit comments

Comments
 (0)