Skip to content

Commit 5f7e403

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent d72e326 commit 5f7e403

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

viz.py

+7-7
Original file line numberDiff line numberDiff line change
@@ -8,34 +8,34 @@ def find_viz_files(directory):
88
viz_files = []
99
for root, _, files in os.walk(directory):
1010
for file in files:
11-
if file in ['app.py', 'viz.py']:
11+
if file in ["app.py", "viz.py"]:
1212
viz_files.append(os.path.join(root, file))
1313
return viz_files
1414

1515

1616
def run_solara_app(file_path):
17-
process = subprocess.Popen(['solara', 'run', file_path])
17+
process = subprocess.Popen(["solara", "run", file_path])
1818
time.sleep(5) # Wait for the app to start
1919
return process
2020

2121

2222
def send_step_command(times=1):
2323
for _ in range(times):
24-
subprocess.run(['xdotool', 'key', 'space'])
24+
subprocess.run(["xdotool", "key", "space"])
2525
time.sleep(0.5)
2626

2727

2828
def send_pause_command():
29-
subprocess.run(['xdotool', 'key', 'p'])
29+
subprocess.run(["xdotool", "key", "p"])
3030
time.sleep(0.5)
3131

3232

3333
def send_reset_command():
34-
subprocess.run(['xdotool', 'key', 'r'])
34+
subprocess.run(["xdotool", "key", "r"])
3535
time.sleep(0.5)
3636

3737

38-
@pytest.mark.parametrize('viz_file', find_viz_files('examples'))
38+
@pytest.mark.parametrize("viz_file", find_viz_files("examples"))
3939
def test_viz_app(viz_file):
4040
process = run_solara_app(viz_file)
4141

@@ -66,5 +66,5 @@ def test_viz_app(viz_file):
6666
process.wait()
6767

6868

69-
if __name__ == '__main__':
69+
if __name__ == "__main__":
7070
pytest.main([__file__])

0 commit comments

Comments
 (0)