Browse Source

Adding test to piper, ugv, pyorbbeck node

tags/v0.3.7rc2
haixuanTao 1 year ago
parent
commit
393f136707
3 changed files with 23 additions and 1 deletions
  1. +9
    -0
      node-hub/dora-piper/tests/test_piper.py
  2. +2
    -1
      node-hub/dora-pyorbbecksdk/tests/test_pyorbbecksdk.py
  3. +12
    -0
      node-hub/dora-ugv/tests/test_ugv.py

+ 9
- 0
node-hub/dora-piper/tests/test_piper.py View File

@@ -0,0 +1,9 @@
def test_import_main():
import piper_sdk

# from opencv_video_capture.main import main
# skip test as pyorbbecksdk installation is a bit complicated

# Check that everything is working, and catch dora Runtime Exception as we're not running in a dora dataflow.
# with pytest.raises(RuntimeError):
# main()

+ 2
- 1
node-hub/dora-pyorbbecksdk/tests/test_pyorbbecksdk.py View File

@@ -1,6 +1,7 @@
def test_import_main():
import pyorbbecksdk

# from opencv_video_capture.main import main
pass
# skip test as pyorbbecksdk installation is a bit complicated

# Check that everything is working, and catch dora Runtime Exception as we're not running in a dora dataflow.


+ 12
- 0
node-hub/dora-ugv/tests/test_ugv.py View File

@@ -0,0 +1,12 @@
import pytest


def test_import_main():
import ugv_sdk_py

# from opencv_video_capture.main import main
# skip test as pyorbbecksdk installation is a bit complicated

# Check that everything is working, and catch dora Runtime Exception as we're not running in a dora dataflow.
# with pytest.raises(RuntimeError):
# main()

Loading…
Cancel
Save