We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b8ed956 commit 8ae655dCopy full SHA for 8ae655d
tests/test_server_view_builder.py
@@ -72,6 +72,14 @@ def f(arg: int):
72
assert response["input"] == input_json
73
74
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
83
def test_action_from_options(app):
84
def f(arg: int, kwarg: str = "default"):
85
return {"arg": arg, "kwarg": kwarg}
0 commit comments