mirror of
https://github.com/home-assistant/core.git
synced 2025-11-09 02:49:40 +00:00
Change logging to do rollover() instead of rotate() (#55177)
* Change to rollover from rotate. * Remove test log files.
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
"""Test the bootstrapping."""
|
||||
# pylint: disable=protected-access
|
||||
import asyncio
|
||||
import glob
|
||||
import os
|
||||
from unittest.mock import Mock, patch
|
||||
|
||||
@@ -69,6 +70,10 @@ async def test_async_enable_logging(hass):
|
||||
log_file="test.log",
|
||||
)
|
||||
mock_async_activate_log_queue_handler.assert_called_once()
|
||||
for f in glob.glob("test.log*"):
|
||||
os.remove(f)
|
||||
for f in glob.glob("testing_config/home-assistant.log*"):
|
||||
os.remove(f)
|
||||
|
||||
|
||||
async def test_load_hassio(hass):
|
||||
|
||||
Reference in New Issue
Block a user