Skip to content

Commit 2dbc348

Browse files
committed
Added import env to all tests
1 parent 43d88c6 commit 2dbc348

14 files changed

+51
-35
lines changed

.idea/workspace.xml

Lines changed: 38 additions & 34 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

hardwarelibrary/communication/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ def validateUSBBackend():
2424
rootHardwareLibrary = PureWindowsPath(os.path.abspath(__file__)).parents[1]
2525
candidates = [rootHardwareLibrary.joinpath('communication/libusb/MS64/libusb-1.0.dll'),
2626
rootHardwareLibrary.joinpath('communication/libusb/MS32/libusb-1.0.dll')]
27-
elif os.name == 'Darwin':
27+
elif platform.system() == 'Darwin':
2828
rootHardwareLibrary = PurePosixPath(os.path.abspath(__file__)).parents[1]
2929
candidates = [rootHardwareLibrary.joinpath('communication/libusb/Darwin/libusb-1.0.0.dylib')]
3030
else:

hardwarelibrary/tests/testCommunicationPorts.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
import env
12
import unittest
23
from threading import Thread, Lock
34

hardwarelibrary/tests/testConnectSutter.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
import env
12
import unittest
23

34
import hardwarelibrary.communication.serialport as s_ports

hardwarelibrary/tests/testDeviceManager.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
import env
12
import unittest
23

34
from hardwarelibrary.communication.diagnostics import *

hardwarelibrary/tests/testIntegraDevice.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
import env
12
import unittest
23
import time
34
import unittest

hardwarelibrary/tests/testLinearMotionDevice.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
import env
12
import unittest
23

34
from hardwarelibrary.motion.linearmotiondevice import DebugLinearMotionDevice, LinearMotionNotification

hardwarelibrary/tests/testMapPositionsFunction.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
import env
12
import unittest
23

34
from hardwarelibrary.motion.sutterdevice import SutterDevice, Direction

hardwarelibrary/tests/testModulePyFTDI.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
import env
12
import unittest
23
from io import StringIO
34
import unittest

hardwarelibrary/tests/testModulePySerial.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
import env
12
import unittest
23

34
from serial.tools.list_ports import comports

0 commit comments

Comments
 (0)