BUILD 816 B

123456789101112131415161718192021222324252627282930313233
  1. load("//bazel:python.bzl", "py_test_run_all_subdirectory")
  2. # This is a dummy test dependency that causes the above tests to be
  3. # re-run if any of these files changes.
  4. py_library(
  5. name = "dashboard_lib",
  6. srcs = glob(
  7. ["**/*.py"],
  8. exclude = ["tests/*"],
  9. ),
  10. )
  11. py_test_run_all_subdirectory(
  12. size = "medium",
  13. include = ["**/test*.py"],
  14. exclude = ["modules/test/**", "modules/node/tests/test_node.py", "tests/test_dashboard.py"],
  15. extra_srcs = [],
  16. tags = ["exclusive", "team:serve"],
  17. )
  18. py_test(
  19. name = "test_node",
  20. size = "medium",
  21. srcs = ["modules/node/tests/test_node.py"],
  22. tags = ["exclusive", "team:serve"],
  23. )
  24. py_test(
  25. name = "test_dashboard",
  26. size = "medium",
  27. srcs = ["tests/test_dashboard.py"],
  28. tags = ["exclusive", "team:serve"],
  29. )