Fix test_mobject.py::test_mobject_add

This commit is contained in:
Francisco Manríquez Novoa 2026-02-15 22:57:49 -03:00
commit 3481d59baa

View file

@ -34,7 +34,7 @@ def test_mobject_add():
with pytest.raises(ValueError) as add_self_info:
obj.add(Mobject(), obj, Mobject())
assert str(add_self_info.value) == (
"Cannot add Mobject as a submobject of itself (at index 1)."
"Cannot add OpenGLMobject as a submobject of itself (at index 1)."
)
assert len(obj.submobjects) == 0
@ -42,8 +42,8 @@ def test_mobject_add():
with pytest.raises(TypeError) as add_str_info:
obj.add(Mobject(), Mobject(), "foo")
assert str(add_str_info.value) == (
"Only values of type Mobject can be added as submobjects of Mobject, "
"but the value foo (at index 2) is of type str."
"Only values of type OpenGLMobject can be added as submobjects of "
"OpenGLMobject, but the value 'foo' (at index 2) is of type str."
)
assert len(obj.submobjects) == 0