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

Function test_paths_input

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

Source from the content-addressed store, hash-verified

71
72
73def test_paths_input(detector: Detector):
74 splitted_paths = [str(splitted_path) for splitted_path in splitted_images]
75 response, coordinates = detector.detect("bicycle", splitted_paths, area_captcha=False)
76
77 # General Checks
78 assert response, coordinates
79 assert len(response) == 9
80
81 # Response Correctness
82 assert sum(response) == len(coordinates)
83
84
85def test_single_bytes_input(detector: Detector):

Callers

nothing calls this directly

Calls 1

detectMethod · 0.80

Tested by

no test coverage detected