From d8d45e470a165df55649a30badeba5c1294c668b Mon Sep 17 00:00:00 2001 From: Doug Boulware Date: Wed, 17 Jan 2024 09:31:35 -0700 Subject: [PATCH] Add test_sensor. Remove dead code. --- scos_actions/hardware/tests/test_sensor.py | 10 ++++++++++ scos_actions/hardware/tests/test_sigan.py | 2 -- 2 files changed, 10 insertions(+), 2 deletions(-) create mode 100644 scos_actions/hardware/tests/test_sensor.py diff --git a/scos_actions/hardware/tests/test_sensor.py b/scos_actions/hardware/tests/test_sensor.py new file mode 100644 index 00000000..1d86de81 --- /dev/null +++ b/scos_actions/hardware/tests/test_sensor.py @@ -0,0 +1,10 @@ +from scos_actions.hardware.mocks.mock_sigan import MockSignalAnalyzer +from scos_actions.hardware.mocks.mock_gps import MockGPS +from scos_actions.hardware.sensor import Sensor + + +def test_sensor(): + sensor = Sensor(signal_analyzer=MockSignalAnalyzer(), gps=MockGPS()) + assert sensor is not None + assert sensor.signal_analyzer is not None + assert sensor.gps is not None diff --git a/scos_actions/hardware/tests/test_sigan.py b/scos_actions/hardware/tests/test_sigan.py index df980ecf..c82ffeec 100644 --- a/scos_actions/hardware/tests/test_sigan.py +++ b/scos_actions/hardware/tests/test_sigan.py @@ -1,5 +1,3 @@ -from environs import Env - from scos_actions.hardware.mocks.mock_sigan import MockSignalAnalyzer