Skip to content

Commit

Permalink
Remove old test
Browse files Browse the repository at this point in the history
  • Loading branch information
adamltyson committed May 20, 2024
1 parent f801ee2 commit e003668
Showing 1 changed file with 0 additions and 21 deletions.
21 changes: 0 additions & 21 deletions tests/test_scene.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
import shutil
from pathlib import Path

import pytest

from brainrender import Scene
Expand Down Expand Up @@ -115,24 +112,6 @@ def test_scene_slice():
("test.tiff", 1, ".png"),
],
)
def test_scene_screenshot(name, scale, expected_suffix):
screenshot_folder = Path.home() / "test_screenshots"
s = Scene(screenshots_folder=screenshot_folder)
out_path = s.screenshot(name=name, scale=scale)

assert Path(out_path).suffix == expected_suffix

# Vedo exports eps and svg files as gzipped files
# Append the .gz suffix to the expected path to check if file exists
if expected_suffix in [".eps", ".svg"]:
out_path += ".gz"

assert Path(out_path).exists()

shutil.rmtree(screenshot_folder)
del s


def test_actor_removal():
s = Scene()
th = s.add_brain_region("TH")
Expand Down

0 comments on commit e003668

Please sign in to comment.