1
1
import pytest
2
+ import sys
2
3
import numpy as np
3
4
from PIL import Image
4
5
from pathlib import Path
15
16
def test_basic_scene_with_default_values (tmp_path , manim_cfg_file , simple_scenes_path ):
16
17
scene_name = "SquareToCircle"
17
18
command = [
18
- "python" ,
19
+ sys . executable ,
19
20
"-m" ,
20
21
"manim" ,
21
22
simple_scenes_path ,
@@ -34,7 +35,7 @@ def test_basic_scene_with_default_values(tmp_path, manim_cfg_file, simple_scenes
34
35
def test_basic_scene_l_flag (tmp_path , manim_cfg_file , simple_scenes_path ):
35
36
scene_name = "SquareToCircle"
36
37
command = [
37
- "python" ,
38
+ sys . executable ,
38
39
"-m" ,
39
40
"manim" ,
40
41
simple_scenes_path ,
@@ -55,7 +56,7 @@ def test_basic_scene_l_flag(tmp_path, manim_cfg_file, simple_scenes_path):
55
56
def test_n_flag (tmp_path , simple_scenes_path ):
56
57
scene_name = "SceneWithMultipleCalls"
57
58
command = [
58
- "python" ,
59
+ sys . executable ,
59
60
"-m" ,
60
61
"manim" ,
61
62
simple_scenes_path ,
@@ -72,7 +73,7 @@ def test_n_flag(tmp_path, simple_scenes_path):
72
73
def test_s_flag_no_animations (tmp_path , manim_cfg_file , simple_scenes_path ):
73
74
scene_name = "NoAnimations"
74
75
command = [
75
- "python" ,
76
+ sys . executable ,
76
77
"-m" ,
77
78
"manim" ,
78
79
simple_scenes_path ,
@@ -96,7 +97,7 @@ def test_s_flag_no_animations(tmp_path, manim_cfg_file, simple_scenes_path):
96
97
def test_s_flag (tmp_path , manim_cfg_file , simple_scenes_path ):
97
98
scene_name = "SquareToCircle"
98
99
command = [
99
- "python" ,
100
+ sys . executable ,
100
101
"-m" ,
101
102
"manim" ,
102
103
simple_scenes_path ,
@@ -120,7 +121,7 @@ def test_s_flag(tmp_path, manim_cfg_file, simple_scenes_path):
120
121
def test_r_flag (tmp_path , manim_cfg_file , simple_scenes_path ):
121
122
scene_name = "SquareToCircle"
122
123
command = [
123
- "python" ,
124
+ sys . executable ,
124
125
"-m" ,
125
126
"manim" ,
126
127
simple_scenes_path ,
@@ -148,7 +149,7 @@ def test_r_flag(tmp_path, manim_cfg_file, simple_scenes_path):
148
149
def test_custom_folders (tmp_path , manim_cfg_file , simple_scenes_path ):
149
150
scene_name = "SquareToCircle"
150
151
command = [
151
- "python" ,
152
+ sys . executable ,
152
153
"-m" ,
153
154
"manim" ,
154
155
simple_scenes_path ,
@@ -173,7 +174,7 @@ def test_custom_folders(tmp_path, manim_cfg_file, simple_scenes_path):
173
174
def test_dash_as_filename (tmp_path ):
174
175
code = "class Test(Scene):\n def construct(self):\n self.add(Circle())\n self.wait(1)"
175
176
command = [
176
- "python" ,
177
+ sys . executable ,
177
178
"-m" ,
178
179
"manim" ,
179
180
"-ql" ,
0 commit comments