Skip to content

Commit

Permalink
Fixed path issue in test_integration.py::test_screenshot
Browse files Browse the repository at this point in the history
  • Loading branch information
IgorTatarnikov committed Nov 27, 2023
1 parent babed58 commit 95ddf48
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions tests/test_integration.py
Original file line number Diff line number Diff line change
Expand Up @@ -280,16 +280,12 @@ def test_ruler(scene):


def test_screenshot(scene, pytestconfig):
root_path = pytestconfig.rootpath
screenshot_folder = root_path / "tests"
scene.screenshots_folder = screenshot_folder
scene.add_brain_region("TH")

scene.render(interactive=False)
scene.screenshot(name="test_screenshot", scale=2)
screenshot_path = screenshot_folder / "test_screenshot.png"
screenshot_path = Path.cwd() / "test_screenshot.png"

assert screenshot_folder.exists()
assert screenshot_path.exists()

screenshot_path.unlink()
Expand Down

0 comments on commit 95ddf48

Please sign in to comment.