MCPcopy Create free account
hub / github.com/Mercury7353/PyBench / test_task_99

Function test_task_99

data/unit_test/tests.py:1133–1142  ·  view source on GitHub ↗
(trajectory)

Source from the content-addressed store, hash-verified

1131 assert sharpness_image < sharpness_ref_image, "The sharpness of the image is not lower than the reference image."
1132
1133def test_task_99(trajectory):
1134 image_path = "./output/99.png"
1135 ref_path = "./data/99.jpeg"
1136
1137 # 计算目标图像和参考图像的清晰度
1138 sharpness_image = calculate_sharpness(image_path)
1139 sharpness_ref_image = calculate_sharpness(ref_path)
1140
1141 # 检查目标图像的清晰度是否低于参考图像的清晰度
1142 assert sharpness_image < sharpness_ref_image, "The sharpness of the image is not lower than the reference image."
1143
1144def is_grayscale(image_path):
1145 """

Callers

nothing calls this directly

Calls 1

calculate_sharpnessFunction · 0.85

Tested by

no test coverage detected