Skip to content

armgit / manim

Public Imported from GitHub
0

A community-maintained Python framework for creating mathematical animations.

Fix test_opengl::test_Circle (#1894)

Max Stoumenfbc8c4a2829b
diff --git a/tests/control_data/graphical_units_data/opengl/Circle.npz b/tests/control_data/graphical_units_data/opengl/Circle.npz
new file mode 100644
index 000000000..7b7262a8b
Binary files /dev/null and b/tests/control_data/graphical_units_data/opengl/Circle.npz differ
diff --git a/tests/test_graphical_units/test_opengl.py b/tests/test_graphical_units/test_opengl.py
index 73e4af106..ac0f723a5 100644
--- a/tests/test_graphical_units/test_opengl.py
+++ b/tests/test_graphical_units/test_opengl.py
@@ -2,15 +2,13 @@ import pytest
from manim import *
from manim.opengl import *
+from manim.renderer.opengl_renderer import OpenGLRenderer
from tests.test_graphical_units.testing.frames_comparison import frames_comparison
__module_test__ = "opengl"
- reason="OpenGL is really hard to test. It will be tested when the design is largely improved. This test has an error for a reason that I can't understand/s"
-)
-@frames_comparison(use_opengl_renderer=True)
+@frames_comparison(renderer_class=OpenGLRenderer, renderer="opengl")
def test_Circle(scene):
circle = OpenGLCircle().set_color(RED)
scene.add(circle)