mirror of
https://github.com/maziggy/bambuddy.git
synced 2026-09-30 03:01:21 +02:00
chore(tests): suppress B108 on dummy /tmp test fixtures
This commit is contained in:
@@ -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",
|
||||
|
||||
@@ -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",
|
||||
)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user