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

Function test_single_pathlib_input

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

Source from the content-addressed store, hash-verified

8
9
10def test_single_pathlib_input(detector: Detector):
11 img_bytes = image_dir.joinpath("full_page.png")
12 response, coordinates = detector.detect("bicycle", img_bytes, area_captcha=False)
13 print(f"Path: [full_page.png], Task: [Bicycle], Result: {response}; Coordinates: {coordinates}")
14
15 # General Checks
16 assert response, coordinates
17 assert len(response) == 9
18
19 # Response Correctness
20 assert sum(response) == len(coordinates)
21
22
23def test_one_pathlib_input(detector: Detector):

Callers

nothing calls this directly

Calls 1

detectMethod · 0.80

Tested by

no test coverage detected