19 lines
506 B
Python
19 lines
506 B
Python
"""Run the backend suite with all local-runtime prerequisites configured."""
|
|
|
|
from __future__ import annotations
|
|
|
|
import os
|
|
import unittest
|
|
|
|
|
|
def main() -> None:
|
|
# Must be set before test discovery imports Pipecat and NLTK.
|
|
os.environ.setdefault("NLTK_DISABLE_IMPORT_SECURITY", "1")
|
|
suite = unittest.defaultTestLoader.discover("tests")
|
|
result = unittest.TextTestRunner(verbosity=1).run(suite)
|
|
raise SystemExit(0 if result.wasSuccessful() else 1)
|
|
|
|
|
|
if __name__ == "__main__":
|
|
main()
|