Use defusedxml in test files for Bandit compliance

Replace xml.etree.ElementTree with defusedxml in test files to satisfy
Bandit B314 scanner. While test XML is trusted, using defusedxml
consistently across the codebase prevents CI failures.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
maziggy
2026-02-05 18:34:51 +01:00
co-authored by Claude Opus 4.5
parent 85d0b91411
commit 17c8301b4b
2 changed files with 9 additions and 10 deletions
@@ -1,8 +1,7 @@
"""Unit tests for plate object extraction from 3MF model_settings.config."""
from xml.etree import ElementTree as ET
import pytest
from defusedxml import ElementTree as ET
class TestPlateObjectExtraction: