(detector: Detector)
| 107 | |
| 108 | |
| 109 | def test_bytes_input(detector: Detector): |
| 110 | img_bytes = [img.read_bytes() for img in splitted_images] |
| 111 | response, coordinates = detector.detect("bicycle", img_bytes, area_captcha=False) |
| 112 | |
| 113 | # General Checks |
| 114 | assert response, coordinates |
| 115 | assert len(response) == 9 |
| 116 | |
| 117 | # Response Correctness |
| 118 | assert sum(response) == len(coordinates) |