Skip to content

Commit

Permalink
Fixed path issue in test_integration.py::test_animation
Browse files Browse the repository at this point in the history
  • Loading branch information
IgorTatarnikov committed Nov 27, 2023
1 parent 9232a4e commit babed58
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions tests/test_integration.py
Original file line number Diff line number Diff line change
Expand Up @@ -124,9 +124,10 @@ def test_add_mesh_from_file(scene, pytestconfig):

def test_animation(scene, pytestconfig):
root_path = pytestconfig.rootpath
vid_directory = root_path / "tests" / "examples"

scene.add_brain_region("TH")
anim = Animation(scene, "./examples", "vid3")
anim = Animation(scene, vid_directory, "vid3")

anim.add_keyframe(0, camera="top", zoom=1)
anim.add_keyframe(1.5, camera="sagittal", zoom=0.95)
Expand All @@ -142,7 +143,7 @@ def test_animation(scene, pytestconfig):

assert vid_path.exists()
vid_path.unlink()
Path.rmdir(Path(root_path / "tests" / "examples"))
Path.rmdir(vid_directory)


def test_adding_multiple_brain_regions(scene):
Expand Down

0 comments on commit babed58

Please sign in to comment.