This commit is contained in:
@@ -103,9 +103,9 @@ def wrap_ignore_all(x, y):
|
||||
return func_target(1, 2, 3, 4)
|
||||
|
||||
@pytest.mark.parametrize("func, expected_sig", [
|
||||
(wrap_all, '(a, b, c=10, d=30)'),
|
||||
(wrap_all, '(a, b, d=30, c=10)'),
|
||||
(wrap_skip, '(a, b, c=10, d=20)'),
|
||||
(wrap_ignore_all, '(x, y)'),
|
||||
(wrap_ignore_all, '(x, y, c=10, d=20)'),
|
||||
])
|
||||
def test_signature_visible(func, expected_sig):
|
||||
assert str(inspect.signature(func)) == expected_sig
|
||||
|
||||
Reference in New Issue
Block a user