from django.test.client import Client
self.c = Client(enforce_csrf_checks=False)
header = {
"jwt": self.ficti_JWT
}
resp = self.c.post('/api/new_pass/', {
"encode_pass": "UmVhbCBkYXRh",
"sign_pass": "Li4uYnV0LCBub3Qgd29ya2luZw==",
"comment_pass": "The data, but now it works! (NO)",
}, headers=header)
, не работает.