Fix pytest

This commit is contained in:
Stefan Agner
2025-10-08 15:23:27 +02:00
parent 418a8cc86a
commit ba24bbd0d0
5 changed files with 21 additions and 69 deletions

View File

@@ -41,11 +41,10 @@ async def test_api_security_options_pwned(api_client, coresys: CoreSys):
async def test_api_integrity_check(
api_client, coresys: CoreSys, supervisor_internet: AsyncMock
):
"""Test security integrity check."""
coresys.security.content_trust = False
"""Test security integrity check - now deprecated."""
resp = await api_client.post("/security/integrity")
result = await resp.json()
assert result["data"]["core"] == "untested"
assert result["data"]["supervisor"] == "untested"
# CodeNotary integrity check has been removed
assert "error" in result["data"]
assert "deprecated" in result["data"]["error"].lower()