1. Ian Bicking
  2. WebTest
  3. Issues
Issue #12 resolved

TestApp.post(params=dict(...)) does not handle lists/arrays properly

Joseph Tate
created an issue

TestApp.get() passes doseq=True to urllib.urlencode for its params, so it behaves properly for lists/arrays but .post(), or rather ._gen_request() does not set doseq on the urlencode call. Both calls to urlencode() should set doseq().

A workaround exists; in your own code, pre-encode the params using doseq=True. Then .post() uses the string params path.