diff options
Diffstat (limited to 'sources/pyside2/tests/QtSensors/sensors.py')
-rw-r--r-- | sources/pyside2/tests/QtSensors/sensors.py | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/sources/pyside2/tests/QtSensors/sensors.py b/sources/pyside2/tests/QtSensors/sensors.py index 2f25adebb..360d68999 100644 --- a/sources/pyside2/tests/QtSensors/sensors.py +++ b/sources/pyside2/tests/QtSensors/sensors.py @@ -30,9 +30,17 @@ '''Test cases for QSensor''' -from PySide2.QtSensors import QSensor, QSensorReading +import os +import sys import unittest +sys.path.append(os.path.dirname(os.path.dirname(os.path.abspath(__file__)))) +from init_paths import init_test_paths +init_test_paths(False) + +from PySide2.QtSensors import QSensor, QSensorReading + + class QSensorTest(unittest.TestCase): def test(self): for sensorType in QSensor.sensorTypes(): |