manim/tests/test_graphical_units/test_utils.py
Benjamin Hackl ab57a6eb35
Frame comparison pixel threshold (#3053)
* implemented threshold for number of pixel value errors

* fix implementation, throw proper warning

* added test for pixel value error threshold

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

* remove forgotten debug print

* introduce constants for frame_comparison tolerance

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

* rename constant

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2022-12-01 17:38:44 +00:00

11 lines
281 B
Python

from __future__ import annotations
from manim.utils.testing.frames_comparison import frames_comparison
__module_test__ = "utils"
@frames_comparison
def test_pixel_error_threshold(scene):
"""Scene produces black frame, control data has 11 modified pixel values."""
pass