mirror of
https://github.com/home-assistant/core.git
synced 2025-07-23 13:17:32 +00:00
print() left behind (#20689)
This commit is contained in:
parent
47f60e6cf2
commit
ca143f8a35
@ -54,7 +54,6 @@ class TestHistoryStatsSensor(unittest.TestCase):
|
|||||||
"""Test the conversion from templates to period."""
|
"""Test the conversion from templates to period."""
|
||||||
now = datetime(2019, 1, 1, 23, 30, 0, tzinfo=pytz.utc)
|
now = datetime(2019, 1, 1, 23, 30, 0, tzinfo=pytz.utc)
|
||||||
with patch.dict(template.ENV.globals, {'now': lambda: now}):
|
with patch.dict(template.ENV.globals, {'now': lambda: now}):
|
||||||
print(dt_util.now())
|
|
||||||
today = Template('{{ now().replace(hour=0).replace(minute=0)'
|
today = Template('{{ now().replace(hour=0).replace(minute=0)'
|
||||||
'.replace(second=0) }}', self.hass)
|
'.replace(second=0) }}', self.hass)
|
||||||
duration = timedelta(hours=2, minutes=1)
|
duration = timedelta(hours=2, minutes=1)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user