feat: harden public OpenAI API contracts
This commit is contained in:
@@ -0,0 +1,18 @@
|
||||
"""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()
|
||||
Reference in New Issue
Block a user