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
This issue will also permit to not use anymore legacy testclient:
class SkiiClient(Client):
pass
And fully use:
class SkiiTestClient(Client):
"""Custom api client dedicated to skii api.
This test client is customized to fetch skii ninja api with:
- The content type is always json payload.
- The GET/POST/DELETE use django reverse url ("skii:v0-4-1:route_name").
- Filter/query arguments are documented as possible.
"""
Django ninja use for route url reverse the name of the method/view or a provided named arg on view decorateur args.
In this case the reverse url of format "api_name:view_name" will be "skii:record_read"
If we have many view with record_read view function name, it's will be impossible to determine which road needs to provide the url resolver.
We need to check all endpoints and use unique name for all of them.
For our example it's will be:
With unique route name skii:lesson_read
The text was updated successfully, but these errors were encountered: