16 lines
381 B
Python
16 lines
381 B
Python
import unittest
|
|
import cv2
|
|
import numpy as np
|
|
|
|
|
|
class MyTestCase(unittest.TestCase):
|
|
def test_verify_env(self):
|
|
self.assertIsNotNone(cv2.__version__)
|
|
self.assertIsNotNone(np.__version__)
|
|
print("== Env test pass ==\n"
|
|
f"[cv2] {cv2.__version__}\n"
|
|
f"[numpy] {np.__version__}\n")
|
|
|
|
if __name__ == '__main__':
|
|
unittest.main()
|