File tree Expand file tree Collapse file tree 1 file changed +9
-1
lines changed
Expand file tree Collapse file tree 1 file changed +9
-1
lines changed Original file line number Diff line number Diff line change 11"""Evaluate examples of how to use the ndx-pose extension."""
22
33import subprocess
4-
4+ from pathlib import Path
55
66def test_example_usage_estimates_only ():
77 """Call examples/write_pose_estimates_only.py and check that it runs without errors."""
88 subprocess .run (["python" , "examples/write_pose_estimates_only.py" ], check = True )
99
10+ # Remove the generated test_pose.nwb if it exists
11+ if Path ("test_pose.nwb" ).exists ():
12+ Path ("test_pose.nwb" ).unlink ()
13+
1014
1115def test_example_usage_training_only ():
1216 """Call examples/write_pose_training.py and check that it runs without errors."""
1317 subprocess .run (["python" , "examples/write_pose_training.py" ], check = True )
18+
19+ # Remove the generated test_pose.nwb if it exists
20+ if Path ("test_pose.nwb" ).exists ():
21+ Path ("test_pose.nwb" ).unlink ()
You can’t perform that action at this time.
0 commit comments