mirror of
https://github.com/home-assistant/supervisor.git
synced 2026-04-20 00:18:09 +01:00
Migrate to Ruff for lint and format (#4852)
* Migrate to Ruff for lint and format * Fix pylint issues * DBus property sets into normal awaitable methods * Fix tests relying on separate tasks in connect * Fixes from feedback
This commit is contained in:
@@ -55,9 +55,8 @@ async def test_force_content_trust(coresys: CoreSys):
|
||||
with patch(
|
||||
"supervisor.security.module.cas_validate",
|
||||
AsyncMock(side_effect=CodeNotaryError),
|
||||
) as cas_validate:
|
||||
with pytest.raises(CodeNotaryError):
|
||||
await coresys.security.verify_content("test@mail.com", "ffffffffffffff")
|
||||
) as cas_validate, pytest.raises(CodeNotaryError):
|
||||
await coresys.security.verify_content("test@mail.com", "ffffffffffffff")
|
||||
|
||||
|
||||
async def test_integrity_check_disabled(coresys: CoreSys):
|
||||
|
||||
Reference in New Issue
Block a user