From 57c8648210d38ca4c34e4862be6b03bbba56733e Mon Sep 17 00:00:00 2001 From: "J. Nick Koston" Date: Thu, 20 Aug 2026 13:38:54 -0500 Subject: [PATCH 1/3] Drop the test package init that collides with script/build_helpers.py on the CI path --- tests/unit_tests/build_helpers/__init__.py | 0 1 file changed, 0 insertions(+), 0 deletions(-) delete mode 100644 tests/unit_tests/build_helpers/__init__.py diff --git a/tests/unit_tests/build_helpers/__init__.py b/tests/unit_tests/build_helpers/__init__.py deleted file mode 100644 index e69de29bb2..0000000000 From 3eec5085da792f568b526802b231269646f1f007 Mon Sep 17 00:00:00 2001 From: "J. Nick Koston" Date: Thu, 20 Aug 2026 13:39:46 -0500 Subject: [PATCH 2/3] Give the format_bar tests a unique basename --- .../build_helpers/{test_size_summary.py => test_format_bar.py} | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename tests/unit_tests/build_helpers/{test_size_summary.py => test_format_bar.py} (100%) diff --git a/tests/unit_tests/build_helpers/test_size_summary.py b/tests/unit_tests/build_helpers/test_format_bar.py similarity index 100% rename from tests/unit_tests/build_helpers/test_size_summary.py rename to tests/unit_tests/build_helpers/test_format_bar.py From e82453e80e6700c9e0fa1ae19007ea4bd584746f Mon Sep 17 00:00:00 2001 From: "J. Nick Koston" Date: Thu, 20 Aug 2026 13:42:15 -0500 Subject: [PATCH 3/3] Complete the unit-test package chain so test modules import fully qualified --- tests/unit_tests/__init__.py | 0 tests/unit_tests/build_gen/__init__.py | 0 tests/unit_tests/build_helpers/__init__.py | 0 .../build_helpers/{test_format_bar.py => test_size_summary.py} | 0 tests/unit_tests/test_core.py | 2 +- 5 files changed, 1 insertion(+), 1 deletion(-) create mode 100644 tests/unit_tests/__init__.py create mode 100644 tests/unit_tests/build_gen/__init__.py create mode 100644 tests/unit_tests/build_helpers/__init__.py rename tests/unit_tests/build_helpers/{test_format_bar.py => test_size_summary.py} (100%) diff --git a/tests/unit_tests/__init__.py b/tests/unit_tests/__init__.py new file mode 100644 index 0000000000..e69de29bb2 diff --git a/tests/unit_tests/build_gen/__init__.py b/tests/unit_tests/build_gen/__init__.py new file mode 100644 index 0000000000..e69de29bb2 diff --git a/tests/unit_tests/build_helpers/__init__.py b/tests/unit_tests/build_helpers/__init__.py new file mode 100644 index 0000000000..e69de29bb2 diff --git a/tests/unit_tests/build_helpers/test_format_bar.py b/tests/unit_tests/build_helpers/test_size_summary.py similarity index 100% rename from tests/unit_tests/build_helpers/test_format_bar.py rename to tests/unit_tests/build_helpers/test_size_summary.py diff --git a/tests/unit_tests/test_core.py b/tests/unit_tests/test_core.py index c373116106..7adf955217 100644 --- a/tests/unit_tests/test_core.py +++ b/tests/unit_tests/test_core.py @@ -6,9 +6,9 @@ from unittest.mock import patch from hypothesis import given import pytest -from strategies import mac_addr_strings from esphome import const, core +from tests.unit_tests.strategies import mac_addr_strings class TestHexInt: