Add break to fix length of lines
parent
582394bc3b
commit
6b4dd64cfe
tests/helpers
|
@ -171,16 +171,16 @@ class TestUtilTemplate(unittest.TestCase):
|
||||||
template.render(self.hass, '{{ states("test.object2") }}'))
|
template.render(self.hass, '{{ states("test.object2") }}'))
|
||||||
|
|
||||||
@patch('homeassistant.core.dt_util.utcnow', return_value=dt_util.utcnow())
|
@patch('homeassistant.core.dt_util.utcnow', return_value=dt_util.utcnow())
|
||||||
@patch('homeassistant.helpers.template.TemplateEnvironment.is_safe_callable',
|
@patch('homeassistant.helpers.template.TemplateEnvironment.'
|
||||||
return_value=True)
|
'is_safe_callable', return_value=True)
|
||||||
def test_now(self, mock_is_safe, mock_utcnow):
|
def test_now(self, mock_is_safe, mock_utcnow):
|
||||||
self.assertEqual(
|
self.assertEqual(
|
||||||
dt_util.utcnow().isoformat(),
|
dt_util.utcnow().isoformat(),
|
||||||
template.render(self.hass, '{{ now.isoformat() }}'))
|
template.render(self.hass, '{{ now.isoformat() }}'))
|
||||||
|
|
||||||
@patch('homeassistant.core.dt_util.utcnow', return_value=dt_util.utcnow())
|
@patch('homeassistant.core.dt_util.utcnow', return_value=dt_util.utcnow())
|
||||||
@patch('homeassistant.helpers.template.TemplateEnvironment.is_safe_callable',
|
@patch('homeassistant.helpers.template.TemplateEnvironment.'
|
||||||
return_value=True)
|
'is_safe_callable', return_value=True)
|
||||||
def test_utcnow(self, mock_is_safe, mock_utcnow):
|
def test_utcnow(self, mock_is_safe, mock_utcnow):
|
||||||
self.assertEqual(
|
self.assertEqual(
|
||||||
dt_util.utcnow().isoformat(),
|
dt_util.utcnow().isoformat(),
|
||||||
|
|
Loading…
Reference in New Issue