mirror of
https://github.com/home-assistant/core.git
synced 2025-07-21 20:27:08 +00:00
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:
parent
2155a861cd
commit
816364bfd9
@ -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
|
||||
|
@ -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
|
||||
|
||||
|
||||
|
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user