()
| 45 | |
| 46 | |
| 47 | def test_missing_arguments(): |
| 48 | with pytest.raises(TypeError, |
| 49 | match="missing required positional argument 0"): |
| 50 | func() |
| 51 | with pytest.raises(TypeError, |
| 52 | match="missing required positional argument 0"): |
| 53 | func(arg2=1, arg3=4) |
| 54 | with pytest.raises(TypeError, |
| 55 | match=r"missing required argument \'arg2\' \(pos 1\)"): |
| 56 | func(1, arg3=5) |
| 57 | |
| 58 | |
| 59 | def test_too_many_positional(): |
nothing calls this directly
no test coverage detected
searching dependent graphs…