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ä 2019-02-17 10:55:33 +02:00 committed by Fabian Affolter
parent 2155a861cd
commit 816364bfd9
3 changed files with 4 additions and 4 deletions

View file

@ -13,5 +13,5 @@ pytest-aiohttp==0.3.0
pytest-cov==2.6.1
pytest-sugar==0.9.2
pytest-timeout==1.3.3
pytest==4.1.1
pytest==4.2.1
requests_mock==1.5.2

View file

@ -14,7 +14,7 @@ pytest-aiohttp==0.3.0
pytest-cov==2.6.1
pytest-sugar==0.9.2
pytest-timeout==1.3.3
pytest==4.1.1
pytest==4.2.1
requests_mock==1.5.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)