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

Function test_one_pathlib_input

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

Source from the content-addressed store, hash-verified

21
22
23def test_one_pathlib_input(detector: Detector):
24 img_bytes = image_dir.joinpath("full_page.png")
25 response, coordinates = detector.detect("bicycle", [img_bytes], area_captcha=False)
26 print(f"Path: [full_page.png], Task: [Bicycle], Result: {response}; Coordinates: {coordinates}")
27
28 # General Checks
29 assert response, coordinates
30 assert len(response) == 9
31
32 # Response Correctness
33 assert sum(response) == len(coordinates)
34
35
36def test_pathlibs_input(detector: Detector):

Callers

nothing calls this directly

Calls 1

detectMethod · 0.80

Tested by

no test coverage detected