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:
Paulus Schoutsen authored and GitHub committed 2018-10-24 12:10:05 +02:00
1 parent 4222f7562b
commit 08fe7c3ece
223 files changed
+6747 -7237

No files matched your search

+2 -2
View File
@@ -50,7 +50,7 @@ class TestMochadSwitchSetup(unittest.TestCase):
],
}
}
self.assertTrue(setup_component(self.hass, light.DOMAIN, good_config))
assert setup_component(self.hass, light.DOMAIN, good_config)
class TestMochadLight(unittest.TestCase):
@@ -71,7 +71,7 @@ class TestMochadLight(unittest.TestCase):
def test_name(self):
"""Test the name."""
self.assertEqual('fake_light', self.light.name)
assert 'fake_light' == self.light.name
def test_turn_on_with_no_brightness(self):
"""Test turn_on."""