From fe5dd1e7b9e4384b55546b00cfe0ea121831a457 Mon Sep 17 00:00:00 2001 From: "Gareth J. Greenaway" Date: Sun, 16 Jul 2017 21:59:34 -0700 Subject: [PATCH] Removing unused import from ps beacon. Fixing mock for sensehat test. --- tests/unit/beacons/test_ps_beacon.py | 1 - tests/unit/beacons/test_sensehat_beacon.py | 4 ++-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/tests/unit/beacons/test_ps_beacon.py b/tests/unit/beacons/test_ps_beacon.py index 2201257d58..2ae5a5735b 100644 --- a/tests/unit/beacons/test_ps_beacon.py +++ b/tests/unit/beacons/test_ps_beacon.py @@ -2,7 +2,6 @@ # Python libs from __future__ import absolute_import -from collections import namedtuple # Salt testing libs from tests.support.unit import skipIf, TestCase diff --git a/tests/unit/beacons/test_sensehat_beacon.py b/tests/unit/beacons/test_sensehat_beacon.py index 64184d3eb7..bd36ee500c 100644 --- a/tests/unit/beacons/test_sensehat_beacon.py +++ b/tests/unit/beacons/test_sensehat_beacon.py @@ -20,7 +20,7 @@ class SensehatBeaconTestCase(TestCase, LoaderModuleMockMixin): def setup_loader_modules(self): - self.HUMIDITY_MOCK = MagicMock(return_value=70) + self.HUMIDITY_MOCK = MagicMock(return_value=80) self.TEMPERATURE_MOCK = MagicMock(return_value=30) self.PRESSURE_MOCK = MagicMock(return_value=1500) @@ -62,7 +62,7 @@ class SensehatBeaconTestCase(TestCase, LoaderModuleMockMixin): ret = sensehat.beacon(config) self.assertEqual(ret, [{'tag': 'sensehat/humidity', - 'humidity': '70%'}]) + 'humidity': 80}]) def test_sensehat_temperature_match(self):