From 50f22a362ffb67dd032a45209829a51ba8f86ee0 Mon Sep 17 00:00:00 2001 From: "J. Nick Koston" Date: Mon, 15 Sep 2025 17:28:00 -0500 Subject: [PATCH] cleanup --- tests/dashboard/test_web_server.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/tests/dashboard/test_web_server.py b/tests/dashboard/test_web_server.py index f434647cec..1938617f20 100644 --- a/tests/dashboard/test_web_server.py +++ b/tests/dashboard/test_web_server.py @@ -590,12 +590,16 @@ async def test_archive_request_handler_post( tmp_path: Path, ) -> None: """Test ArchiveRequestHandler.post method without storage_json.""" + + # Set up temp directories config_dir = Path(get_fixture_path("conf")) archive_dir = tmp_path / "archive" + # Create a test configuration file test_config = config_dir / "test_archive.yaml" test_config.write_text("esphome:\n name: test_archive\n") + # Archive the configuration response = await dashboard.fetch( "/archive", method="POST", @@ -604,6 +608,7 @@ async def test_archive_request_handler_post( ) assert response.code == 200 + # Verify file was moved to archive assert not test_config.exists() assert (archive_dir / "test_archive.yaml").exists() assert (