From 76f6c3e06422c439128ac80e80c5d736a4302ee9 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Fri, 12 Jun 2026 13:24:08 +0000 Subject: [PATCH 1/2] Bump ruff from 0.15.16 to 0.15.17 Bumps [ruff](https://github.com/astral-sh/ruff) from 0.15.16 to 0.15.17. - [Release notes](https://github.com/astral-sh/ruff/releases) - [Changelog](https://github.com/astral-sh/ruff/blob/main/CHANGELOG.md) - [Commits](https://github.com/astral-sh/ruff/compare/0.15.16...0.15.17) --- updated-dependencies: - dependency-name: ruff dependency-version: 0.15.17 dependency-type: direct:development update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] --- pyproject.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index 9c96e68..2699925 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -43,7 +43,7 @@ doc = [ ] lint = [ "pyright==1.1.410", - "ruff==0.15.16", + "ruff==0.15.17", ] test = [ "lewis", From 99b8f85bc99cb3403a23f2b51496e23d3f4d85b2 Mon Sep 17 00:00:00 2001 From: Jack Harper Date: Mon, 15 Jun 2026 10:39:36 +0100 Subject: [PATCH 2/2] dont autouse emulator fixture --- tests/test_against_emulator.py | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/tests/test_against_emulator.py b/tests/test_against_emulator.py index 0d45d65..fb06088 100644 --- a/tests/test_against_emulator.py +++ b/tests/test_against_emulator.py @@ -17,7 +17,7 @@ configure_logging(level=LogLevel.TRACE) -@pytest.fixture(autouse=True, scope="class") +@pytest.fixture(scope="class") def emulator(): proc = subprocess.Popen( [ @@ -84,7 +84,7 @@ async def controller(): class TestInitialState: - def test_sub_controllers_created(self, controller): + def test_sub_controllers_created(self, controller, emulator): assert "one_of_everything" in controller.sub_controllers @pytest.mark.parametrize( @@ -98,14 +98,14 @@ def test_sub_controllers_created(self, controller): ], ) async def test_attributes_created_for_simple_datatype( - self, controller, param, expected_initial_value + self, controller, emulator, param, expected_initial_value ): attr: AttrR = typing.cast( AttrR, controller.sub_controllers["one_of_everything"].attributes[param] ) await attr.wait_for_value(expected_initial_value, timeout=2) - async def test_attributes_created_for_enum_datatype(self, controller): + async def test_attributes_created_for_enum_datatype(self, controller, emulator): attr: AttrR = typing.cast( AttrR, controller.sub_controllers["one_of_everything"].attributes["enum"] ) @@ -147,7 +147,7 @@ async def test_attributes_created_for_enum_datatype(self, controller): ], ) async def test_attributes_created_for_array_datatype( - self, controller, param, expected_initial_value + self, controller, emulator, param, expected_initial_value ): attr: AttrR = typing.cast( AttrR, controller.sub_controllers["one_of_everything"].attributes[param] @@ -165,6 +165,8 @@ async def test_attributes_created_for_array_datatype( ("command_null_null", set()), ], ) - async def test_command_attributes_created(self, controller, command, expected_attributes): + async def test_command_attributes_created( + self, controller, emulator, command, expected_attributes + ): cmd_controller = controller.sub_controllers["one_of_everything"].sub_controllers[command] assert set(cmd_controller.attributes.keys()) == expected_attributes