From 076ffb520b413c632ec1a473d73e0863b05e7e2e Mon Sep 17 00:00:00 2001 From: Heberto Mayorquin Date: Thu, 11 Jul 2024 13:30:20 -0600 Subject: [PATCH] fix ophys error --- tests/test_ophys/test_ophys_interfaces.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/tests/test_ophys/test_ophys_interfaces.py b/tests/test_ophys/test_ophys_interfaces.py index 7c6685f72..1a774f713 100644 --- a/tests/test_ophys/test_ophys_interfaces.py +++ b/tests/test_ophys/test_ophys_interfaces.py @@ -1,4 +1,6 @@ +import tempfile import unittest +from pathlib import Path from pynwb.testing.mock.file import mock_NWBFile @@ -10,7 +12,10 @@ def setUp(self): self.mock_imaging_interface = MockImagingInterface() def test_run_conversion(self): - self.mock_imaging_interface.run_conversion() + + with tempfile.TemporaryDirectory() as tmpdir: + nwbfile_path = Path(tmpdir) / "test.nwb" + self.mock_imaging_interface.run_conversion(nwbfile_path=nwbfile_path) def test_add_to_nwbfile(self): nwbfile = mock_NWBFile()