chore(tests): suppress B108 on dummy /tmp test fixtures

This commit is contained in:
maziggy
2026-04-19 09:48:10 +02:00
parent 61e40f0d09
commit 10c261dcf2
2 changed files with 3 additions and 3 deletions
@@ -52,7 +52,7 @@ class TestSJFScheduling:
defaults = {
"filename": f"test_print_{counter}.3mf",
"print_name": f"Test Print {counter}",
"file_path": f"/tmp/test_print_{counter}.3mf",
"file_path": f"/tmp/test_print_{counter}.3mf", # nosec B108
"file_size": 1024,
"content_hash": f"testhash{counter:08d}",
"status": "completed",
+2 -2
View File
@@ -39,8 +39,8 @@ def _make_server(serial: str = "01P00A391800001") -> SimpleMQTTServer:
return SimpleMQTTServer(
serial=serial,
access_code="deadbeef",
cert_path=Path("/tmp/unused.crt"),
key_path=Path("/tmp/unused.key"),
cert_path=Path("/tmp/unused.crt"), # nosec B108
key_path=Path("/tmp/unused.key"), # nosec B108
model="C12",
)