mirror of
https://github.com/home-assistant/core.git
synced 2025-08-05 13:45:12 +02:00
Fix bad-chained-comparison pylint warning in tests (#119477)
This commit is contained in:
@@ -2812,7 +2812,7 @@ def test_version(hass: HomeAssistant) -> None:
|
|||||||
"{{ version('2099.9.9') < '2099.9.10' }}",
|
"{{ version('2099.9.9') < '2099.9.10' }}",
|
||||||
hass,
|
hass,
|
||||||
).async_render()
|
).async_render()
|
||||||
assert filter_result == function_result is True
|
assert filter_result is function_result is True
|
||||||
|
|
||||||
filter_result = template.Template(
|
filter_result = template.Template(
|
||||||
"{{ '2099.9.9' | version == '2099.9.9' }}",
|
"{{ '2099.9.9' | version == '2099.9.9' }}",
|
||||||
@@ -2822,7 +2822,7 @@ def test_version(hass: HomeAssistant) -> None:
|
|||||||
"{{ version('2099.9.9') == '2099.9.9' }}",
|
"{{ version('2099.9.9') == '2099.9.9' }}",
|
||||||
hass,
|
hass,
|
||||||
).async_render()
|
).async_render()
|
||||||
assert filter_result == function_result is True
|
assert filter_result is function_result is True
|
||||||
|
|
||||||
with pytest.raises(TemplateError):
|
with pytest.raises(TemplateError):
|
||||||
template.Template(
|
template.Template(
|
||||||
|
Reference in New Issue
Block a user