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
I am trying to create a simple dictionary application using Django and support it with a Web API using Django-ninja. Two of the fields I use have FileField. Adding files using Django-ninja was not a problem. However, creating an endpoint for PUT and PATCH was problematic but I solved it according to #719.
The ability to upload files using PUT and PATCH was confirmed using the swagger. However, I cannot create a test case using Django's TestCase to test the endpoint. It still sends None instead of the file.
Can we have a way to create unit tests that are able to send files via PUT and PATCH?
The text was updated successfully, but these errors were encountered:
Hello
I am trying to create a simple dictionary application using Django and support it with a Web API using
Django-ninja
. Two of the fields I use have FileField. Adding files usingDjango-ninja
was not a problem. However, creating an endpoint forPUT
andPATCH
was problematic but I solved it according to #719.The ability to upload files using
PUT
andPATCH
was confirmed using theswagger
. However, I cannot create a test case using Django'sTestCase
to test the endpoint. It still sendsNone
instead of the file.Can we have a way to create unit tests that are able to send files via
PUT
andPATCH
?The text was updated successfully, but these errors were encountered: