MCPcopy Index your code
hub / github.com/numpy/numpy / test_missing_arguments

Function test_missing_arguments

numpy/_core/tests/test_argparse.py:47–56  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

45
46
47def 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
59def test_too_many_positional():

Callers

nothing calls this directly

Calls 1

funcFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…