"""Tests unitaires pour UIDetector.""" import pytest import sys from pathlib import Path from PIL import Image sys.path.insert(0, str(Path(__file__).parent.parent.parent)) from core.detection.ui_detector import UIDetector class TestUIDetector: def setup_method(self): self.detector = UIDetector() def test_detector_initialization(self): assert self.detector is not None if __name__ == '__main__': pytest.main([__file__, '-v'])