• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1load("@rules_python//python:defs.bzl", "py_library", "py_test")
2
3py_library(
4    name = "simple_test_with_conftest",
5    srcs = [
6        "__init__.py",
7        "foo.py",
8    ],
9    visibility = ["//:__subpackages__"],
10)
11
12py_library(
13    name = "conftest",
14    testonly = True,
15    srcs = ["conftest.py"],
16    visibility = ["//:__subpackages__"],
17)
18
19py_test(
20    name = "simple_test_with_conftest_test",
21    srcs = ["__test__.py"],
22    main = "__test__.py",
23    deps = [
24        ":conftest",
25        ":simple_test_with_conftest",
26    ],
27)
28