Browse Source

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

maziggy 1 month ago
parent
commit
10c261dcf2

+ 1 - 1
backend/tests/integration/test_sjf_scheduling.py

@@ -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
backend/tests/unit/test_vp_mqtt_server.py

@@ -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",
     )