mirror of
https://github.com/home-assistant/core.git
synced 2025-04-26 02:07:54 +00:00
Clean up filesize unittest test file in test tear down (#42143)
This commit is contained in:
parent
bb1b210047
commit
c1ebad8c97
@ -24,6 +24,7 @@ def create_file(path):
|
|||||||
@pytest.fixture(autouse=True)
|
@pytest.fixture(autouse=True)
|
||||||
def remove_file():
|
def remove_file():
|
||||||
"""Remove test file."""
|
"""Remove test file."""
|
||||||
|
yield
|
||||||
if os.path.isfile(TEST_FILE):
|
if os.path.isfile(TEST_FILE):
|
||||||
os.remove(TEST_FILE)
|
os.remove(TEST_FILE)
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user