mirror of
https://github.com/valitydev/salt.git
synced 2024-11-07 08:58:59 +00:00
Removing unused import from ps beacon. Fixing mock for sensehat test.
This commit is contained in:
parent
9072edd8a1
commit
fe5dd1e7b9
@ -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
|
||||
|
@ -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):
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user