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

Function test_single_bytes_input

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

Source from the content-addressed store, hash-verified

83
84
85def test_single_bytes_input(detector: Detector):
86 img_bytes = image_dir.joinpath("full_page.png").read_bytes()
87 response, coordinates = detector.detect("bicycle", img_bytes, area_captcha=False)
88
89 # General Checks
90 assert response, coordinates
91 assert len(response) == 9
92
93 # Response Correctness
94 assert sum(response) == len(coordinates)
95
96
97def test_one_bytes_input(detector: Detector):

Callers

nothing calls this directly

Calls 1

detectMethod · 0.80

Tested by

no test coverage detected