def test_band_filters_with_incorrect_tuple_length():
    """Test that providing band_filters with tuples not of length 2 raises a ValueError."""
    n_chans = 8
    sfreq = 100
    invalid_band_filters = [(4, 8), (12,)]  # Second tuple has only one element

    with pytest.raises(ValueError,
                       match="The band_filters items should be splitable in 2 values"):
        FilterBankLayer(n_chans=n_chans, sfreq=sfreq,
                        band_filters=invalid_band_filters)
Test that providing band_filters with tuples not of length 2 raises a ValueError.
test/unit_tests/models/test_modules.py