Upgrade pytest to 4.2.1 (#21112)

* Upgrade pytest to 4.2.0

* Upgrade pytest to 4.2.1

* Make litejet switch test work with pytest 4.2
This commit is contained in:
Ville Skyttä authored and Fabian Affolter committed 2019-02-17 09:55:33 +01:00
1 parent 2155a861cd
commit 816364bfd9
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.test_include_switches_False:
if method == self.__class__.test_include_switches_False:
config['litejet']['include_switches'] = False
elif method != self.test_include_switches_unspecified:
elif method != self.__class__.test_include_switches_unspecified:
config['litejet']['include_switches'] = True
assert setup.setup_component(self.hass, litejet.DOMAIN, config)