diff --git a/mne/tests/test_annotations.py b/mne/tests/test_annotations.py index 4d0db170e2a..37cfd8e0bfe 100644 --- a/mne/tests/test_annotations.py +++ b/mne/tests/test_annotations.py @@ -51,6 +51,7 @@ first_samps = pytest.mark.parametrize("first_samp", (0, 10000)) edf_reduced = data_path / "EDF" / "test_reduced.edf" edf_annot_only = data_path / "EDF" / "SC4001EC-Hypnogram.edf" +wfdb_dir = data_path / "wfbd" needs_pandas = pytest.mark.skipif(not check_version("pandas"), reason="Needs pandas") @@ -415,6 +416,14 @@ def test_read_edf_annotations(fname, n_annot): annot = read_annotations(fname) assert len(annot) == n_annot +@testing.requires_testing_data +def test_read_wfdb_annotations(): + """Test reading WFDB annotations.""" + fname = wfdb_dir / "chb06_04.edf.seizures" + annot = read_annotations(fname) + # Verify that [ and ] are in description + assert "[" in annot.description + assert "]" in annot.description @first_samps def test_raw_reject(first_samp):