Skip to content

Commit

Permalink
Lint tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Gadgetoid committed Nov 3, 2020
1 parent 7ec303b commit a6e69d4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
6 changes: 2 additions & 4 deletions library/tests/test_read.py
@@ -1,21 +1,19 @@
import sys
import mock


def test_accel_gyro(smbus):
from icm20948 import ICM20948
icm20948 = ICM20948()
ax, ay, az, gx, gy, gz = icm20948.read_accelerometer_gyro_data()
assert (round(ax, 2), round(ay, 2), round(az, 2), int(gx), int(gy), int(gz)) == (0.05, 0.11, 0.16, 3, 4, 5)
del icm20948


def test_magnetometer(smbus):
from icm20948 import ICM20948
icm20948 = ICM20948()
x, y, z = icm20948.read_magnetometer_data()
assert (round(x, 2), round(y, 2), round(z, 2)) == (16.65, 33.3, 49.95)
del icm20948


def test_temperature(smbus):
from icm20948 import ICM20948
icm20948 = ICM20948()
Expand Down
2 changes: 0 additions & 2 deletions library/tests/test_setup.py
@@ -1,5 +1,3 @@
import sys
import mock
import pytest


Expand Down

0 comments on commit a6e69d4

Please sign in to comment.