How to test @detail_route and @list_route properly using coverage

2019-03-06 Thread Fabio Andrés García Sánchez
I'm using Django Rest Framework 3.7.7. What I want to do is test all my list_route and detail_route methods on the view to achieve 100% with coverage but: 1. I couldn't get to pass values when trying to test a detail_route. I got to call the method, using .post but on the view, it shows

Unable to test @detail_route and @list_route using Django Rest Framework 3.7.7

2019-03-06 Thread Fabio Andrés García Sánchez
I'm using Django Rest Framework 3.7.7. What I want to do is test all my list_route and detail_route methods on the view to achieve 100% with coverage but: 1. I couldn't get to pass values when trying to test a detail_route. I got to call the method, using .post but on the view, it shows

File uploads are not working as expected

2019-03-06 Thread RyuCoder
Hi Everyone, File uploads are not working as expected. Please read the detailed explanation here. https://stackoverflow.com/questions/55024898/django-rest-framework-file-uploads-not-working Expected outcome is: When the user updates the existing entry using the update views, previous

File Uploads are not working as expected

2019-03-06 Thread RyuCoder
Hi Everyone, File uploads are not working as expected. Please read the detailed explanation here. https://stackoverflow.com/questions/55024898/django-rest-framework-file-uploads-not-working Expected outcome is: When the user updates the existing entry using the update views, previous