manim/tests/test_graphical_units/test_tex_mobject.py
Darylgolden 6018ebf445 Revert "Merge branch 'main' of https://github.com/ManimCommunity/manim"
This reverts commit e7f9d23aa7, reversing
changes made to afe91d02b6.
2023-07-31 15:29:39 +08:00

20 lines
499 B
Python

import pytest
from manim import *
from manim.utils.testing.frames_comparison import frames_comparison
__module_test__ = "tex_mobject"
@frames_comparison
def test_color_inheritance(scene):
"""Test that Text and MarkupText correctly inherit colour from
their parent class."""
VMobject.set_default(color=RED)
tex = Tex("test color inheritance")
mathtex = MathTex("test color inheritance")
vgr = VGroup(tex, mathtex).arrange()
VMobject.set_default()
scene.add(vgr)