Skip to content

Commit

Permalink
Add test for buffer size < number of channels
Browse files Browse the repository at this point in the history
  • Loading branch information
gipert committed Sep 16, 2023
1 parent c2a85e3 commit daedbb9
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions tests/test_build_raw.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,15 @@ def test_build_raw_fc_ghissue10(lgnd_test_data, tmptestdir):
assert os.path.exists(out_file)


def test_invalid_user_buffer_size(lgnd_test_data, tmptestdir):
with pytest.raises(ValueError):
build_raw(
in_stream=lgnd_test_data.get_path("fcio/L200-comm-20211130-phy-spms.fcio"),
buffer_size=5,
overwrite=True,
)


def test_build_raw_fc_out_spec(lgnd_test_data, tmptestdir):
out_file = f"{tmptestdir}/L200-comm-20211130-phy-spms.lh5"
out_spec = {
Expand Down

0 comments on commit daedbb9

Please sign in to comment.