mirror of
https://github.com/home-assistant/core.git
synced 2025-11-11 20:10:12 +00:00
Enable Ruff PT015 (#86775)
This commit is contained in:
@@ -330,7 +330,7 @@ async def test_require_admin(hass, hass_read_only_user):
|
||||
context=ha.Context(user_id=hass_read_only_user.id),
|
||||
blocking=True,
|
||||
)
|
||||
assert False, f"Should have raises for {service}"
|
||||
pytest.fail(f"Should have raises for {service}")
|
||||
|
||||
with pytest.raises(Unauthorized):
|
||||
await hass.services.async_call(
|
||||
|
||||
Reference in New Issue
Block a user