mirror of
https://github.com/home-assistant/supervisor.git
synced 2025-04-19 10:47:15 +00:00

It seems that the codebase is not formatted with the latest ruff version. This PR reformats the codebase with ruff 0.5.7.
19 lines
395 B
Python
19 lines
395 B
Python
"""Testing handling with main."""
|
|
|
|
from pathlib import Path
|
|
|
|
import supervisor.__main__ as main
|
|
|
|
|
|
def test_write_state(tmp_path):
|
|
"""Test startup-marker file cleanup."""
|
|
test_file = Path(tmp_path, "test.file")
|
|
|
|
test_file.touch()
|
|
assert test_file.exists()
|
|
|
|
main.CONTAINER_OS_STARTUP_CHECK = test_file
|
|
main.run_os_startup_check_cleanup()
|
|
|
|
assert not test_file.exists()
|