mirror of
https://github.com/maziggy/bambuddy.git
synced 2026-10-18 03:54:17 +02:00
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:
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user