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
In questo momento stiamo usando nelle viewRequestParser, questo ci rende compatibili sia con i json, sia con i parametri della post.
Questo ha nascosto un bug latente, ovvero che i test hanno le chiamate alla nostra api con il content-type sbagliato. Nei test non stiamo mandando json, ma stiamo mandando delle chiamate con parametri nella post/put/patch invece che con json.
Quando RequestParser non ci sara' piu', tutti questi test moriranno.
Il fix e':
implementare la open come la open_with_auth in classe base
entrambe mettano il corretto content-type: application/json come default
data deve essere serializzato come json
risolvere i problemi di dati non serializzabili (UUID, etc...) nel modo meno invasivo possibile
The text was updated successfully, but these errors were encountered:
In questo momento stiamo usando nelle
view
RequestParser
, questo ci rende compatibili sia con i json, sia con i parametri della post.Questo ha nascosto un bug latente, ovvero che i test hanno le chiamate alla nostra api con il content-type sbagliato. Nei test non stiamo mandando json, ma stiamo mandando delle chiamate con parametri nella post/put/patch invece che con json.
Quando
RequestParser
non ci sara' piu', tutti questi test moriranno.Il fix e':
open
come laopen_with_auth
in classe baseapplication/json
come defaultdata
deve essere serializzato comejson
The text was updated successfully, but these errors were encountered: