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

Function test_one_path_input

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

Source from the content-addressed store, hash-verified

58
59
60def test_one_path_input(detector: Detector):
61 img_bytes = image_dir.joinpath("full_page.png")
62 response, coordinates = detector.detect("bicycle", [str(img_bytes)], area_captcha=False)
63 print(f"Path: [full_page.png], Task: [Bicycle], Result: {response}; Coordinates: {coordinates}")
64
65 # General Checks
66 assert response, coordinates
67 assert len(response) == 9
68
69 # Response Correctness
70 assert sum(response) == len(coordinates)
71
72
73def test_paths_input(detector: Detector):

Callers

nothing calls this directly

Calls 1

detectMethod · 0.80

Tested by

no test coverage detected