forked from Checkmk/checkmk
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathBUILD
More file actions
56 lines (53 loc) · 1.63 KB
/
Copy pathBUILD
File metadata and controls
56 lines (53 loc) · 1.63 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
load("@aspect_rules_py//py:defs.bzl", "py_pytest_main", "py_test")
load("@cmk_requirements//:requirements.bzl", "requirement")
package(default_visibility = [":__subpackages__"])
py_pytest_main(
name = "__test__",
deps = [
requirement("pytest"),
# pytest-xdist for `--numprocesses=NPROC`
requirement("pytest-xdist"),
],
)
py_test(
name = "utils",
size = "small",
timeout = "moderate",
srcs = ["__test__.py"] + glob(["**/*.py"]),
args = [
"--config-file=$(location @//:pyproject.toml)",
"--import-mode=importlib",
"--random-order-bucket=global",
"--dist=loadfile",
"--numprocesses=4",
],
data = ["@//:pyproject.toml"] + glob(
include = ["**/test-files/**"],
exclude = ["**/*.py"],
),
env = {"EDITION": "community"},
main = ":__test__.py",
visibility = ["//visibility:private"],
deps = [
":__test__",
"//cmk/utils",
"//packages/cmk-ccc:exceptions",
"//packages/cmk-crypto",
"//packages/cmk-plugin-apis:discover_plugins",
"//tests/testlib/common:empty_config",
"//tests/testlib/common:utils",
"//tests/testlib/unit",
"//tests/unit:conftest",
requirement("fakeredis"),
requirement("time-machine"),
requirement("icalendar"),
requirement("cryptography"),
requirement("python-dateutil"),
requirement("pytest"),
requirement("pytest-asyncio"),
requirement("recurring-ical-events"),
requirement("werkzeug"),
requirement("flask"),
requirement("pytest-random-order"),
],
)