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

TestApp.request method overwrites specifics with TestApp scoped extra_environ

Anonymous created an issue

This statement in TestApp.request: line 334 in 1.2.2

{{{

!python

req.environ.update(self.extra_environ)

}}}

overwrites the requests environ with TestApp scoped extra_environ.

In practice this means that using TestApp.request it is impossible to override extra_environ defaults which seems plain wrong to me.

Test.app.get/post/delete... seems to do this logic correctly where TestApp.extra_environ is updated with the parameter extra_environ.

Comments (1)

  1. Log in to comment