(detector: Detector)
| 83 | |
| 84 | |
| 85 | def test_single_bytes_input(detector: Detector): |
| 86 | img_bytes = image_dir.joinpath("full_page.png").read_bytes() |
| 87 | response, coordinates = detector.detect("bicycle", img_bytes, area_captcha=False) |
| 88 | |
| 89 | # General Checks |
| 90 | assert response, coordinates |
| 91 | assert len(response) == 9 |
| 92 | |
| 93 | # Response Correctness |
| 94 | assert sum(response) == len(coordinates) |
| 95 | |
| 96 | |
| 97 | def test_one_bytes_input(detector: Detector): |