mirror of
https://github.com/home-assistant/core.git
synced 2025-07-25 22:27:07 +00:00
Fix bad-chained-comparison pylint warning in tests (#119477)
This commit is contained in:
parent
abb8c58b87
commit
20817955af
@ -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(
|
||||||
|
Loading…
x
Reference in New Issue
Block a user