Loading tests/codec_be_on_mr_nonselection/test_param_file.py +5 −0 Original line number Diff line number Diff line Loading @@ -63,6 +63,8 @@ VALID_DEC_OUTPUT_CONF = [ "EXT", ] PARAM_FILE_ID = "stv" if PARAM_FILE.stem == "self_test" else PARAM_FILE.stem.replace("self_test_", "") param_file_test_dict = {} with open(PARAM_FILE, "r", encoding="UTF-8") as fp: data = fp.read() Loading Loading @@ -125,6 +127,8 @@ def convert_test_string_to_tag(test_string): @pytest.mark.create_ref @pytest.mark.parametrize("test_tag", list(param_file_test_dict.keys())) # hack to have stv/ltv/evs in the test name @pytest.mark.parametrize("param_file_id", [PARAM_FILE_ID]) def test_param_file_tests( record_property, decoder_only, Loading @@ -139,6 +143,7 @@ def test_param_file_tests( rootdir, keep_files, test_tag, param_file_id, get_mld, get_mld_lim, abs_tol, Loading tests/conftest.py +1 −0 Original line number Diff line number Diff line Loading @@ -128,6 +128,7 @@ def pytest_addoption(parser): parser.addoption( "--param_file", action="store", type=Path, help="If specified, use given param file in test_param_file.", ) Loading tests/testconfig.py +3 −1 Original line number Diff line number Diff line Loading @@ -32,6 +32,8 @@ __doc__ = """ To configure test modules. """ PARAM_FILE = "scripts/config/self_test.prm" from pathlib import Path PARAM_FILE = Path("scripts/config/self_test.prm") MD5_REF_DICT = dict() Loading
tests/codec_be_on_mr_nonselection/test_param_file.py +5 −0 Original line number Diff line number Diff line Loading @@ -63,6 +63,8 @@ VALID_DEC_OUTPUT_CONF = [ "EXT", ] PARAM_FILE_ID = "stv" if PARAM_FILE.stem == "self_test" else PARAM_FILE.stem.replace("self_test_", "") param_file_test_dict = {} with open(PARAM_FILE, "r", encoding="UTF-8") as fp: data = fp.read() Loading Loading @@ -125,6 +127,8 @@ def convert_test_string_to_tag(test_string): @pytest.mark.create_ref @pytest.mark.parametrize("test_tag", list(param_file_test_dict.keys())) # hack to have stv/ltv/evs in the test name @pytest.mark.parametrize("param_file_id", [PARAM_FILE_ID]) def test_param_file_tests( record_property, decoder_only, Loading @@ -139,6 +143,7 @@ def test_param_file_tests( rootdir, keep_files, test_tag, param_file_id, get_mld, get_mld_lim, abs_tol, Loading
tests/conftest.py +1 −0 Original line number Diff line number Diff line Loading @@ -128,6 +128,7 @@ def pytest_addoption(parser): parser.addoption( "--param_file", action="store", type=Path, help="If specified, use given param file in test_param_file.", ) Loading
tests/testconfig.py +3 −1 Original line number Diff line number Diff line Loading @@ -32,6 +32,8 @@ __doc__ = """ To configure test modules. """ PARAM_FILE = "scripts/config/self_test.prm" from pathlib import Path PARAM_FILE = Path("scripts/config/self_test.prm") MD5_REF_DICT = dict()