MCPcopy Index your code
hub / github.com/ManimCommunity/manim / test_code_initialization_from_file

Function test_code_initialization_from_file

tests/test_code_mobject.py:26–34  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

24
25
26def test_code_initialization_from_file():
27 rendered_code = Code(
28 code_file="tests/test_code_mobject.py",
29 language="python",
30 background="window",
31 background_config={"fill_color": "#101010"},
32 )
33 assert len(rendered_code.code_lines) == len(rendered_code.line_numbers)
34 assert rendered_code.background.fill_color == ManimColor("#101010")
35
36
37def test_line_heights_initial_whitespace():

Callers

nothing calls this directly

Calls 2

CodeClass · 0.90
ManimColorClass · 0.90

Tested by

no test coverage detected