Public bug reported: I'm trying to write tests that ensure that my application still works as expected when the SCRIPT_NAME is non-empty. I have noticed that when I create the TestApp like this:
environ = {'SCRIPT_NAME' : '/sloecode'} self.app = TestApp(wsgiapp, extra_environ=environ) And then make a request like so: response = self.app.get(path) ...where 'path' in the line above has already been correctly calculated to include the SCRIPT_NAME prefix, webtest.Request prepends the SCRIPT_NAME environment variable to the requested path, which leads to it being added twice. I believe this to be a bug: the SCRIPT name should never be added to the URL path on input - it should be up to the callee to ask for the correct resource path. ** Affects: sloecode Importance: Undecided Status: New ** Affects: webtest (Ubuntu) Importance: Undecided Status: New ** Also affects: sloecode Importance: Undecided Status: New -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/813351 Title: webtest.Request prepends SCRIPT_NAME wsgi environment variable to requests To manage notifications about this bug go to: https://bugs.launchpad.net/sloecode/+bug/813351/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs