Skip to content

Commit 98f6ed2

Browse files
Patch76claude
andcommitted
style(tests): apply ruff format to test_tools_integrations.py
Ruff Lint CI on `7449c43` flagged two function signatures in `test_tools_integrations.py` that had been wrapped to multi-line in the rework commit `48a4f7b` but fit on a single line under the project's 88-char width. `ruff format` collapses them — pure mechanical, no behavior change. The other 23 changed Python files in the PR are already format-clean. 76 unit tests still pass locally. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
1 parent 7449c43 commit 98f6ed2

1 file changed

Lines changed: 2 additions & 6 deletions

File tree

tests/src/unit/test_tools_integrations.py

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -620,9 +620,7 @@ async def test_flow_path_multi_subentity_utility_meter(self, tools, mock_client)
620620
}
621621
assert result["entry_id"] == "um_entry"
622622

623-
async def test_flow_path_entity_not_in_registry_raises(
624-
self, tools, mock_client
625-
):
623+
async def test_flow_path_entity_not_in_registry_raises(self, tools, mock_client):
626624
"""Path 2 not_in_registry: target FLOW entity_id confirmed absent
627625
from the entity registry → raises ENTITY_NOT_FOUND (entity-shape
628626
target). Matches the existing bare_id_not_supported branch and
@@ -699,9 +697,7 @@ async def test_flow_path_yaml_helper_no_config_entry(self, tools, mock_client):
699697
assert err["error"]["code"] == "RESOURCE_NOT_FOUND"
700698
assert "storage-based" in err["error"]["message"]
701699

702-
async def test_flow_path_entry_not_found_at_delete_raises(
703-
self, tools, mock_client
704-
):
700+
async def test_flow_path_entry_not_found_at_delete_raises(self, tools, mock_client):
705701
"""Path 2 TOCTOU: entry_id resolved at step 1 but already deleted
706702
before step 3 reaches HA → raises RESOURCE_NOT_FOUND. Silent
707703
success would hide the race from a wrapper that acted on the

0 commit comments

Comments
 (0)