Debian Codegraph @

python/tests/BUILD.bazel

raw
1 load("@pip//:requirements.bzl", "requirement")
2 load("@rules_python//python:py_test.bzl", "py_test")
3
4 py_test(
5 name = "test_opencc",
6 size = "small",
7 srcs = [
8 "pytest_runner.py",
9 "test_opencc.py",
10 ],
11 args = ["test_opencc.py"],
12 data = [
13 "//test/testcases",
14 ],
15 imports = [".."],
16 main = "pytest_runner.py",
17 deps = [
18 "//python/opencc",
19 requirement("pytest"),
20 requirement("pygments"),
21 requirement("exceptiongroup"),
22 ],
23 )
24
25 py_test(
26 name = "test_cli",
27 size = "small",
28 srcs = [
29 "pytest_runner.py",
30 "test_cli.py",
31 ],
32 args = ["test_cli.py"],
33 imports = [".."],
34 main = "pytest_runner.py",
35 deps = [
36 "//python/opencc",
37 requirement("pytest"),
38 requirement("pygments"),
39 requirement("exceptiongroup"),
40 ],
41 )