From 95ddf48a40ebea5ef8d37bb6aa95424b90550479 Mon Sep 17 00:00:00 2001 From: IgorTatarnikov Date: Mon, 27 Nov 2023 16:52:07 +0000 Subject: [PATCH] Fixed path issue in test_integration.py::test_screenshot --- tests/test_integration.py | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/tests/test_integration.py b/tests/test_integration.py index b60418e1..d21f1cb7 100644 --- a/tests/test_integration.py +++ b/tests/test_integration.py @@ -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()