(detector: Detector)
| 45 | |
| 46 | |
| 47 | def test_single_path_input(detector: Detector): |
| 48 | img_bytes = image_dir.joinpath("full_page.png") |
| 49 | response, coordinates = detector.detect("bicycle", str(img_bytes), area_captcha=False) |
| 50 | print(f"Path: [full_page.png], Task: [Bicycle], Result: {response}; Coordinates: {coordinates}") |
| 51 | |
| 52 | # General Checks |
| 53 | assert response, coordinates |
| 54 | assert len(response) == 9 |
| 55 | |
| 56 | # Response Correctness |
| 57 | assert sum(response) == len(coordinates) |
| 58 | |
| 59 | |
| 60 | def test_one_path_input(detector: Detector): |