You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
then even if /test/ with POST method , then the view for that endpoint is considered "async" view even if that the exact POST method's function is sync? (reason is that the same endpoint for GET method is async?)
Describe the bug
if same path with different method and async sync are mixed then they are all considered as async when testing
i use async for (GET) operation
and use sync for (POST,DELETE,PUT,PATCH) operations
but i got error when testing
example code is below
and it throws an error says
so i found PathView._async_view from
but i found that both callbacks are all PathView._async_view , even for the sync view (POST method)
and the reason is that when operations are added to Router()
for same path , then even if one operation is async , then all considered async
i'm having a trouble because of that
is this a bug? or is there any purpose for that?
Versions (please complete the following information):
The text was updated successfully, but these errors were encountered: