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

Function test_task_98

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

Source from the content-addressed store, hash-verified

1120 assert avg_saturation_image > avg_saturation_ref_image, "The saturation of the image is not lower than the reference image."
1121
1122def test_task_98(trajectory):
1123 image_path = "./output/98.png"
1124 ref_path = "./data/98.jpeg"
1125
1126 # 计算目标图像和参考图像的清晰度
1127 sharpness_image = calculate_sharpness(image_path)
1128 sharpness_ref_image = calculate_sharpness(ref_path)
1129
1130 # 检查目标图像的清晰度是否低于参考图像的清晰度
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"

Callers

nothing calls this directly

Calls 1

calculate_sharpnessFunction · 0.85

Tested by

no test coverage detected