Removing unused import from ps beacon. Fixing mock for sensehat test.

This commit is contained in:
Gareth J. Greenaway 2017-07-16 21:59:34 -07:00
parent 9072edd8a1
commit fe5dd1e7b9
2 changed files with 2 additions and 3 deletions

View File

@ -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

View File

@ -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):