Commit 35d0c682 authored by Jan Kiene's avatar Jan Kiene
Browse files

add reduced ism set

parent 4fd1807d
Loading
Loading
Loading
Loading
+3329 −277

File changed.

Preview size limit exceeded, changes collapsed.

+6 −4
Original line number Diff line number Diff line
@@ -29,7 +29,8 @@ the United Nations Convention on Contracts on the International Sales of Goods.
"""

from ..constants import (
    ISM_PARAMS,
    ISM_PARAMS_ENC,
    ISM_PARAMS_ENC_REDUCED,
    ISM_MD_EXTENDED,
    ISM_MD_NULL,
)
@@ -38,16 +39,17 @@ from .. import get_testv_path, get_valid_fs_max_band_pairs


def pytest_generate_tests(metafunc):
    param_string = "input_format,bitrate,dtx,md_type"
    reduction_level = metafunc.config.getoption("reduction_level")

    if reduction_level == "exhaustive":
        param_string = "input_format,bitrate,dtx,md_type"
        param_string_fs_mb = "sampling_rate,max_band"
        fs_mb_params = get_valid_fs_max_band_pairs()
        metafunc.parametrize(param_string_fs_mb, fs_mb_params)
        metafunc.parametrize(param_string, ISM_PARAMS)
        metafunc.parametrize(param_string, ISM_PARAMS_ENC)
    elif reduction_level == "reduced":
        raise NotImplementedError()
        param_string = "input_format,bitrate,dtx,md_type,sampling_rate,max_band"
        metafunc.parametrize(param_string, ISM_PARAMS_ENC_REDUCED)


def test_enc_const_br_ism(