Spaces:
Running
Running
Download tests/test_runtime_stack.py from Voice-trainer/voice-trainer: direct link, hf CLI and curl.
- Browser
- Download file 667 Bytes
-
https://huggingface.co/spaces/Voice-trainer/voice-trainer/resolve/main/tests/test_runtime_stack.py
- Command line
-
hf download hf://spaces/Voice-trainer/voice-trainer/tests/test_runtime_stack.py
-
curl -L -o test_runtime_stack.py https://huggingface.co/spaces/Voice-trainer/voice-trainer/resolve/main/tests/test_runtime_stack.py
667 Bytes
| import sys | |
| import unittest | |
| from pathlib import Path | |
| ROOT = Path(__file__).resolve().parents[1] | |
| if str(ROOT) not in sys.path: | |
| sys.path.insert(0, str(ROOT)) | |
| class RuntimeStackTests(unittest.TestCase): | |
| def test_runtime_import_stack_is_consistent(self): | |
| import mediapipe as mp | |
| import numba | |
| import numpy | |
| self.assertTrue(hasattr(mp, "solutions")) | |
| self.assertTrue(hasattr(mp.solutions, "pose")) | |
| self.assertLess(tuple(int(part) for part in numpy.__version__.split(".")[:2]), (2, 4)) | |
| self.assertIsNotNone(numba.__version__) | |
| import app # noqa: F401 | |
| if __name__ == "__main__": | |
| unittest.main() | |