|
| 1 | +load("@rules_python//python:defs.bzl", "py_library", "py_test") |
| 2 | +load("@aspect_rules_py//py:defs.bzl", "py_pytest_main") |
| 3 | + |
| 4 | +py_pytest_main(name = "__test__") |
| 5 | + |
| 6 | +py_library( |
| 7 | + name = "unit", |
| 8 | + testonly = True, |
| 9 | + srcs = [ |
| 10 | + "__init__.py", # keep |
| 11 | + "conftest.py", |
| 12 | + "factories.py", # keep |
| 13 | + ], |
| 14 | + imports = ["../../../../../.."], |
| 15 | + visibility = ["//:__subpackages__"], |
| 16 | + deps = [ |
| 17 | + "@assemblyai_deps_factory_boy//:pkg", # keep |
| 18 | + "@assemblyai_deps_pytest//:pkg", |
| 19 | + ], |
| 20 | +) |
| 21 | + |
| 22 | +py_test( |
| 23 | + name = "unit_test", |
| 24 | + srcs = [ |
| 25 | + "test_auto_chapters.py", |
| 26 | + "test_client.py", |
| 27 | + "test_config.py", |
| 28 | + "test_content_safety.py", |
| 29 | + "test_domains.py", |
| 30 | + "test_entity_detection.py", |
| 31 | + "test_lemur.py", |
| 32 | + "test_sentiment_analysis.py", |
| 33 | + "test_summarization.py", |
| 34 | + "test_transcriber.py", |
| 35 | + "test_transcript.py", |
| 36 | + ":__test__", |
| 37 | + ], |
| 38 | + imports = ["../../../../../.."], |
| 39 | + main = ":__test__.py", |
| 40 | + deps = [ |
| 41 | + ":__test__", |
| 42 | + ":unit", |
| 43 | + "//assemblyai/developer_tools/python/sdk:assemblyai_sdk", |
| 44 | + "@assemblyai_deps_factory_boy//:pkg", |
| 45 | + "@assemblyai_deps_faker//:pkg", |
| 46 | + "@assemblyai_deps_httpx//:pkg", |
| 47 | + "@assemblyai_deps_pytest//:pkg", |
| 48 | + "@assemblyai_deps_pytest_httpx//:pkg", |
| 49 | + ], |
| 50 | +) |
0 commit comments