Skip to content

Commit

Permalink
Remove test log files.
Browse files Browse the repository at this point in the history
  • Loading branch information
janiversen committed Aug 25, 2021
1 parent a13e2b8 commit 75df709
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ config/*
config2/*

tests/testing_config/deps
tests/testing_config/home-assistant.log
tests/testing_config/home-assistant.log*

# hass-release
data/
Expand Down
5 changes: 5 additions & 0 deletions tests/test_bootstrap.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
"""Test the bootstrapping."""
# pylint: disable=protected-access
import asyncio
import glob
import os
from unittest.mock import Mock, patch

Expand Down Expand Up @@ -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):
Expand Down

0 comments on commit 75df709

Please sign in to comment.