Upgrade pytest to 4.6.3 (#24782)

* Upgrade pytest to 4.6.3

https://docs.pytest.org/en/latest/changelog.html#pytest-4-6-2-2019-06-03
https://docs.pytest.org/en/latest/changelog.html#pytest-4-6-3-2019-06-11

* Make litejet switch test work with pytest 4.6.3

Essentially reverts the corresponing change that was made for pytest
4.2 compatibility.
This commit is contained in:
Ville Skyttä authored and Paulus Schoutsen committed 2019-06-26 20:01:03 -07:00
1 parent f6c1f336d4
commit 71346760d0
3 files changed
+4 -4

No files matched your search

+2 -2
View File
@@ -53,9 +53,9 @@ class TestLiteJetSwitch(unittest.TestCase):
'port': '/tmp/this_will_be_mocked',
}
}
if method == self.__class__.test_include_switches_False:
if method == self.test_include_switches_False:
config['litejet']['include_switches'] = False
elif method != self.__class__.test_include_switches_unspecified:
elif method != self.test_include_switches_unspecified:
config['litejet']['include_switches'] = True
assert setup.setup_component(self.hass, litejet.DOMAIN, config)