mirror of
https://github.com/home-assistant/core.git
synced 2025-07-19 11:17:21 +00:00
Upgrade pytest to 5.0.0 (#24885)
* Upgrade pytest to 5.0.0 * exception message for pytest 5
This commit is contained in:
parent
5ba83d4dfb
commit
3d2f843c1d
@ -14,5 +14,5 @@ pytest-aiohttp==0.3.0
|
|||||||
pytest-cov==2.7.1
|
pytest-cov==2.7.1
|
||||||
pytest-sugar==0.9.2
|
pytest-sugar==0.9.2
|
||||||
pytest-timeout==1.3.3
|
pytest-timeout==1.3.3
|
||||||
pytest==4.6.3
|
pytest==5.0.0
|
||||||
requests_mock==1.5.2
|
requests_mock==1.5.2
|
||||||
|
@ -15,7 +15,7 @@ pytest-aiohttp==0.3.0
|
|||||||
pytest-cov==2.7.1
|
pytest-cov==2.7.1
|
||||||
pytest-sugar==0.9.2
|
pytest-sugar==0.9.2
|
||||||
pytest-timeout==1.3.3
|
pytest-timeout==1.3.3
|
||||||
pytest==4.6.3
|
pytest==5.0.0
|
||||||
requests_mock==1.5.2
|
requests_mock==1.5.2
|
||||||
|
|
||||||
|
|
||||||
|
@ -16,7 +16,7 @@ def test_temperature_not_a_number(hass):
|
|||||||
display_temp(hass, temp, TEMP_CELSIUS, PRECISION_HALVES)
|
display_temp(hass, temp, TEMP_CELSIUS, PRECISION_HALVES)
|
||||||
|
|
||||||
assert "Temperature is not a number: {}".format(temp) \
|
assert "Temperature is not a number: {}".format(temp) \
|
||||||
in str(exception)
|
in str(exception.value)
|
||||||
|
|
||||||
|
|
||||||
def test_celsius_halves(hass):
|
def test_celsius_halves(hass):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user