瀏覽代碼

Reduce maximum allowed test image difference.

tags/2.5.0
Matthew Petroff 5 年之前
父節點
當前提交
3f3a30a4ad
共有 1 個文件被更改,包括 3 次插入3 次删除
  1. +3
    -3
      tests/run_tests.py

+ 3
- 3
tests/run_tests.py 查看文件

@@ -74,7 +74,7 @@ def run_tests():
screenshot = Image.open(io.BytesIO(viewer.screenshot_as_png)).convert("RGB")
diff = np.mean(np.array(ImageChops.difference(screenshot, reference)))
print("equirectangular difference:", diff)
assert diff < 10
assert diff < 3
print("PASS: equirectangular")

# Check movement
@@ -111,7 +111,7 @@ def run_tests():
screenshot = Image.open(io.BytesIO(viewer.screenshot_as_png)).convert("RGB")
diff = np.mean(np.array(ImageChops.difference(screenshot, reference)))
print("cube difference:", diff)
assert diff < 10
assert diff < 3
print("PASS: cube")

# Check hot spot
@@ -129,7 +129,7 @@ def run_tests():
screenshot = Image.open(io.BytesIO(viewer.screenshot_as_png)).convert("RGB")
diff = np.mean(np.array(ImageChops.difference(screenshot, reference)))
print("multires difference:", diff)
assert diff < 10
assert diff < 3
print("PASS: multires")




Loading…
取消
儲存