@@ -8,34 +8,34 @@ def find_viz_files(directory):
8
8
viz_files = []
9
9
for root , _ , files in os .walk (directory ):
10
10
for file in files :
11
- if file in [' app.py' , ' viz.py' ]:
11
+ if file in [" app.py" , " viz.py" ]:
12
12
viz_files .append (os .path .join (root , file ))
13
13
return viz_files
14
14
15
15
16
16
def run_solara_app (file_path ):
17
- process = subprocess .Popen ([' solara' , ' run' , file_path ])
17
+ process = subprocess .Popen ([" solara" , " run" , file_path ])
18
18
time .sleep (5 ) # Wait for the app to start
19
19
return process
20
20
21
21
22
22
def send_step_command (times = 1 ):
23
23
for _ in range (times ):
24
- subprocess .run ([' xdotool' , ' key' , ' space' ])
24
+ subprocess .run ([" xdotool" , " key" , " space" ])
25
25
time .sleep (0.5 )
26
26
27
27
28
28
def send_pause_command ():
29
- subprocess .run ([' xdotool' , ' key' , 'p' ])
29
+ subprocess .run ([" xdotool" , " key" , "p" ])
30
30
time .sleep (0.5 )
31
31
32
32
33
33
def send_reset_command ():
34
- subprocess .run ([' xdotool' , ' key' , 'r' ])
34
+ subprocess .run ([" xdotool" , " key" , "r" ])
35
35
time .sleep (0.5 )
36
36
37
37
38
- @pytest .mark .parametrize (' viz_file' , find_viz_files (' examples' ))
38
+ @pytest .mark .parametrize (" viz_file" , find_viz_files (" examples" ))
39
39
def test_viz_app (viz_file ):
40
40
process = run_solara_app (viz_file )
41
41
@@ -66,5 +66,5 @@ def test_viz_app(viz_file):
66
66
process .wait ()
67
67
68
68
69
- if __name__ == ' __main__' :
69
+ if __name__ == " __main__" :
70
70
pytest .main ([__file__ ])
0 commit comments