Pytest tests (#17750)
* Convert core tests
* Convert component tests to use pytest assert
* Lint 🤷♂️
* Fix test
* Fix 3 typos in docs
This commit is contained in:
1 parent
4222f7562b
commit
08fe7c3ece
223 files changed
+6747
-7237
No files matched your search
@@ -32,5 +32,5 @@ class TestRandomSensor(unittest.TestCase):
|
||||
|
||||
state = self.hass.states.get('sensor.test')
|
||||
|
||||
self.assertLessEqual(int(state.state), config['sensor']['maximum'])
|
||||
self.assertGreaterEqual(int(state.state), config['sensor']['minimum'])
|
||||
assert int(state.state) <= config['sensor']['maximum']
|
||||
assert int(state.state) >= config['sensor']['minimum']
|
||||
Reference in new issue
Block a user