Skip to content

Commit 5b4df80

Browse files
committed
fixing tests
1 parent 56fd64c commit 5b4df80

File tree

1 file changed

+11
-3
lines changed

1 file changed

+11
-3
lines changed

tests/test_inspector.py

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -502,15 +502,23 @@ def test_dandiset_streaming_parallel():
502502

503503

504504
@pytest.mark.skipif(not HAVE_ROS3, reason="Needs h5py setup with ROS3.")
505-
class TestStreamingCLI(TestInspector):
505+
class TestStreamingCLI(TestCase):
506506
@classmethod
507507
def setUpClass(cls):
508508
cls.tempdir = Path(mkdtemp())
509509

510+
@classmethod
511+
def tearDownClass(cls):
512+
rmtree(cls.tempdir)
513+
514+
def assertFileExists(self, path: FilePathType):
515+
path = Path(path)
516+
assert path.exists()
517+
510518
def test_dandiset_streaming_cli(self):
511519
console_output_file = self.tempdir / "test_console_streaming_output_1.txt"
512520
os.system(
513-
f"nwbinspector {str(self.nwbfile_paths[0])} --stream"
521+
f"nwbinspector 000126 --stream "
514522
f"--report-file-path {self.tempdir / 'test_nwbinspector_streaming_report_6.txt'}"
515523
f"> {console_output_file}"
516524
)
@@ -519,7 +527,7 @@ def test_dandiset_streaming_cli(self):
519527
def test_dandiset_streaming_cli_parllel(self):
520528
console_output_file = self.tempdir / "test_console_streaming_output_2.txt"
521529
os.system(
522-
f"nwbinspector {str(self.nwbfile_paths[0])} --stream --n-jobs 2"
530+
f"nwbinspector https://dandiarchive.org/dandiset/000126/0.210813.0327 --stream --n-jobs 2 "
523531
f"--report-file-path {self.tempdir / 'test_nwbinspector_streaming_report_7.txt'}"
524532
f"> {console_output_file}"
525533
)

0 commit comments

Comments
 (0)