From 5c0985a41420f6a1f8d0d859251f8a2eb4ad9d8c Mon Sep 17 00:00:00 2001 From: Keya Loding Date: Mon, 8 Jul 2024 16:50:30 -0700 Subject: [PATCH] test updates --- tests/io/test_nwb.py | 8 -------- tests/model/test_labels.py | 2 +- 2 files changed, 1 insertion(+), 9 deletions(-) diff --git a/tests/io/test_nwb.py b/tests/io/test_nwb.py index c95d0435..24d3efec 100644 --- a/tests/io/test_nwb.py +++ b/tests/io/test_nwb.py @@ -56,14 +56,6 @@ def test_typical_case_append(nwbfile, slp_typical): assert node_name in pose_estimation_container.pose_estimation_series -def test_load_nwb(): - """Test loading NWB files.""" - path1 = "~/tests/data/centered_pair_predictions.nwb" - labels1 = read_nwb(path1) - - path2 = "~/tests/data/minimal_instance_w_prediction.nwb" - - def test_typical_case_append_with_metadata_propagation(nwbfile, slp_typical): labels = load_slp(slp_typical) diff --git a/tests/model/test_labels.py b/tests/model/test_labels.py index 1fc7ac71..7e8a5f86 100644 --- a/tests/model/test_labels.py +++ b/tests/model/test_labels.py @@ -237,7 +237,7 @@ def test_labels_getitem(slp_typical): with pytest.raises(IndexError): labels[None] - +@pytest.fixture def test_labels_save(tmp_path, slp_typical): labels = load_slp(slp_typical) labels.save(tmp_path / "test.slp")