(detector: Detector)
| 34 | |
| 35 | |
| 36 | def test_pathlibs_input(detector: Detector): |
| 37 | response, coordinates = detector.detect("bicycle", splitted_images, area_captcha=False) |
| 38 | |
| 39 | # General Checks |
| 40 | assert response, coordinates |
| 41 | assert len(response) == 9 |
| 42 | |
| 43 | # Response Correctness |
| 44 | assert sum(response) == len(coordinates) |
| 45 | |
| 46 | |
| 47 | def test_single_path_input(detector: Detector): |