Skip to content

Commit 9cda2e5

Browse files
committed
Added basic setup test
1 parent a68db77 commit 9cda2e5

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

library/tests/test_setup.py

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
import sys
2+
import mock
3+
4+
5+
def test_setup():
6+
sys.modules['smbus'] = mock.Mock()
7+
sys.modules['RPi'] = mock.Mock()
8+
sys.modules['RPi.GPIO'] = mock.Mock()
9+
10+
from max30105 import MAX30105
11+
max30105 = MAX30105()
12+
del max30105

0 commit comments

Comments
 (0)