Skip to content

Commit b69f6e8

Browse files
committed
Update config variables and paths in tests
1 parent 0229f78 commit b69f6e8

File tree

4 files changed

+8
-8
lines changed

4 files changed

+8
-8
lines changed

manim/mobject/svg/text_mobject.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ def __init__(self, text, **config):
9696
def get_space_width(self):
9797
size = self.size * 10
9898

99-
dir_name = config['TEXT_DIR']
99+
dir_name = config['text_dir']
100100
file_name = os.path.join(dir_name, "space") + '.svg'
101101

102102
surface = cairo.SVGSurface(file_name, 600, 400)
@@ -292,7 +292,7 @@ def text2svg(self):
292292
if NOT_SETTING_FONT_MSG != '':
293293
logger.warning(NOT_SETTING_FONT_MSG)
294294

295-
dir_name = config['TEXT_DIR']
295+
dir_name = config['text_dir']
296296
hash_name = self.text2hash()
297297
file_name = os.path.join(dir_name, hash_name)+'.svg'
298298
if os.path.exists(file_name):

tests/test_cli/test_cli.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,8 @@ def test_basicScene(python_version):
3535
@pytest.mark.skip_end_to_end
3636
def test_WriteStuff(python_version):
3737
"""This is mainly intended to test the caching process of the tex objects"""
38-
path_basic_scene = os.path.join("tests", "tests_data", "basic_scenes.py")
39-
path_output = os.path.join("tests", "tests_cache", "media_temp")
38+
path_basic_scene = os.path.join("tests_data", "basic_scenes.py")
39+
path_output = os.path.join("tests_cache", "media_temp")
4040
command = [python_version, "-m", "manim", path_basic_scene,
4141
"WriteStuff", "-l", "--media_dir", path_output]
4242
out, err, exitcode = capture(command)

tests/test_movements.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ class HomotopyTest(Scene):
66
def construct(self):
77
def func(x, y, z, t):
88
norm = get_norm([x, y])
9-
tau = interpolate(5, -5, t) + norm/FRAME_X_RADIUS
9+
tau = interpolate(5, -5, t) + norm/config['frame_x_radius']
1010
alpha = sigmoid(tau)
1111
return [x, y + 0.5*np.sin(2*np.pi*alpha)-t*SMALL_BUFF/2, z]
1212
square = Square()

tests/tests_cache/writing/TextTest/Text/space.svg

Lines changed: 3 additions & 3 deletions
Loading

0 commit comments

Comments
 (0)