(a, b, dtype, msg)
| 205 | (1, np.full((2,), 1), types.DALIDataType.FLOAT, "cannot be converted"), |
| 206 | ) |
| 207 | def test_incorrect_param(a, b, dtype, msg): |
| 208 | |
| 209 | @pipeline_def(batch_size=2, device_id=0, num_threads=4, seed=111) |
| 210 | def pipeline(): |
| 211 | return fn.random.beta(alpha=a, beta=b, dtype=dtype) |
| 212 | |
| 213 | with assert_raises(RuntimeError, glob=msg): |
| 214 | p = pipeline() |
| 215 | p.run() |
nothing calls this directly
no test coverage detected