Build: #2 failed
Job: Pipeline PR Test 6.6.6 failed
build fitting configuration[value error-badfunc-true]: Test case result
The below summarizes the result of the test " build fitting configuration[value error-badfunc-true]" in build 2 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-badfunc-true]
- Test class
- pipeline.hsd.tasks.baseline.worker_test
- Method
- test_build_fitting_configuration[ValueError-badfunc-True]
- Duration
- < 1 sec
- Status
- Failed (Existing Failure)
Error Log
TypeError: expected exception must be a BaseException type, not str
inp = <class 'ValueError'>, expected = 'badfunc', 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"}, "spline", 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:"spline"}, False),
({17:"poly", 19:"cspline", 23:"poly"}, {17:"poly", 19:"spline", 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 str
hsd/tasks/baseline/worker_test.py:31: TypeError