mirror of
https://github.com/ManimCommunity/manim.git
synced 2026-06-22 10:01:47 +00:00
Fix test_mobject.py::test_mobject_add
This commit is contained in:
parent
33884470e4
commit
3481d59baa
1 changed files with 3 additions and 3 deletions
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue