Skip to content

Commit 8ae655d

Browse files
committed
Assert unbound argument skipping
1 parent b8ed956 commit 8ae655d

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

tests/test_server_view_builder.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,14 @@ def f(arg: int):
7272
assert response["input"] == input_json
7373

7474

75+
def test_action_from_argarray(app, client):
76+
def f(*args, **kwargs):
77+
return {"args": args, "kwargs": kwargs}
78+
79+
GeneratedClass = builder.action_from(f)
80+
assert GeneratedClass.__apispec__["_operations"]["post"]["_params"] == {}
81+
82+
7583
def test_action_from_options(app):
7684
def f(arg: int, kwarg: str = "default"):
7785
return {"arg": arg, "kwarg": kwarg}

0 commit comments

Comments
 (0)