This commit is contained in:
wxchen
2022-12-29 23:08:25 +08:00
commit 21ad625896
42 changed files with 2336 additions and 0 deletions

15
tests/test_digit.py Normal file
View File

@@ -0,0 +1,15 @@
import unittest
from digit_interface import Digit
from digit_depth import DigitSensor
class TestDigit(unittest.TestCase):
def test_digit_sensor(self):
fps = 30
resolution = "QVGA"
serial_num = "12345"
digit_sensor = DigitSensor(fps, resolution, serial_num)
digit = digit_sensor()
self.assertIsInstance(digit, Digit)