test(security-fixtures): nosec B104/B108 on new 0.2.4.6 test code

Two adversarial-input fixtures added on the 0.2.4.6 branch were
  missing the # nosec annotation that 32b3a93e established for the
  same pattern. New TestNotArmedDiagnosticLogging test for the #1429
  defensive diagnostic uses bind_address="0.0.0.0"; new
  test_queue_start_user_attribution.py (#1670 fix) uses a /tmp path
  in a PrintArchive fixture. Same annotation-only convention as the
  test_virtual_printer.py sites.
This commit is contained in:
maziggy
2026-06-09 13:32:15 +02:00
parent e7574fa67c
commit ecdf577cfc
2 changed files with 2 additions and 2 deletions
@@ -78,7 +78,7 @@ async def queue_item(db_session):
archive = PrintArchive(
filename="Plate_1.gcode.3mf",
print_name="Plate 1",
file_path="/tmp/queue1670_plate.3mf",
file_path="/tmp/queue1670_plate.3mf", # nosec B108
file_size=1024,
content_hash="queue1670hash",
status="completed",
+1 -1
View File
@@ -1277,7 +1277,7 @@ class TestNotArmedDiagnosticLogging:
assert "no ip_address" in not_armed[0].getMessage()
def test_no_matching_host_interface_logs_specific_reason(self, caplog):
server = _make_server(bind_address="0.0.0.0")
server = _make_server(bind_address="0.0.0.0") # nosec B104
bridge = _make_bridge(server)
with (
patch(