test: improve unit tests for controllers.inner_api (#32203)

This commit is contained in:
Dev Sharma
2026-03-12 08:37:56 +05:30
committed by GitHub
parent 31eba65fe0
commit 36c1f4d506
9 changed files with 1318 additions and 0 deletions

View File

@ -114,6 +114,7 @@ def get_user_tenant(view_func: Callable[P, R]):
def plugin_data(view: Callable[P, R] | None = None, *, payload_type: type[BaseModel]):
def decorator(view_func: Callable[P, R]):
@wraps(view_func)
def decorated_view(*args: P.args, **kwargs: P.kwargs):
try:
data = request.get_json()