MCPcopy Create free account
hub / github.com/Vinyzu/recognizer / test_single_path_input

Function test_single_path_input

tests/test_inputs.py:47–57  ·  view source on GitHub ↗
(detector: Detector)

Source from the content-addressed store, hash-verified

45
46
47def 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
60def test_one_path_input(detector: Detector):

Callers

nothing calls this directly

Calls 1

detectMethod · 0.80

Tested by

no test coverage detected