Build: #4 failed

Job: Pipeline PR Test 6.6.6 failed

Stages & jobs

  1. Default Stage

build fitting configuration[value error-expected9-true]: Test case result

The below summarizes the result of the test " build fitting configuration[value error-expected9-true]" in build 4 of Pipeline - Pipeline Pull Request Test - PIPE-2893-hsd_baseline-enable-sinusoid-option - Pipeline PR Test 6.6.6.
Description
build fitting configuration[value error-expected9-true]
Test class
pipeline.hsd.tasks.baseline.worker_test
Method
test_build_fitting_configuration[ValueError-expected9-True]
Duration
< 1 sec
Status
Failed (Existing Failure)

Error Log

TypeError: expected exception must be a BaseException type, not int
inp = <class 'ValueError'>, expected = {19: 'invalid'}, should_raise = True

    @pytest.mark.parametrize(
        "inp, expected, should_raise",
        [
            # valid inputs
            ({17: DEF,      19: DEF,      23: DEF}, None, False),
            ({17: DEF,      19: DEF,      23: DEF}, {}, False),
            ({17: "cspline", 19: "cspline", 23: "cspline"}, "cspline", False), #   SPLINE = CSPLINE in the FittingFunction class of fitrorder.py
            ({17: DEF, 19: DEF, 23: DEF}, {30: "poly"}, False),
            ({17: "poly",   19: "poly",   23: "poly"}, "poly", False),
            ({17: DEF,      19: DEF,      23: "poly"}, {"23":"poly"}, False),
            ({17:"poly",  19:"cspline",  23: DEF}, {"17":"poly", 19:"cspline"}, False),
            ({17:"poly",    19:"cspline",  23:"poly"}, {17:"poly", 19:"cspline", 23:"poly"}, False),
            # error inputs
            (ValueError, "badfunc", True),
            (ValueError, {19:"invalid"}, True),
        ],
    )
    def test_build_fitting_configuration(inp, expected, should_raise):
        if should_raise:
>           with pytest.raises(expected):
E           TypeError: expected exception must be a BaseException type, not int

hsd/tasks/baseline/worker_test.py:31: TypeError