django-webtest Questions
3
Solved
Does anyone know how I can test the image upload with using WebTest. My current code is:
form['avatar'] =('avatar', os.path.join(settings.PROJECT_PATH, 'static', 'img', 'avatar.png'))
res = form.s...
Incurvate asked 4/12, 2012 at 21:22
2
Solved
I have run into some trouble with the issue, that request.data sometimes is a dict (especially when testing) and sometimes a QueryDict instance (when using curl).
This is especially a problem beca...
Kennie asked 8/11, 2018 at 10:55
2
Solved
I am testing a form using WebTest. However, somes fields are created dynamically using JS, and thus these fields are not in the Form. I have an error when I try to set one of these fields:
>>> re...
Rombert asked 28/3, 2014 at 9:15
1
© 2022 - 2024 — McMap. All rights reserved.