plone / plone.protect

HTTP protection utilities for the Plone CMS
https://pypi.org/project/plone.protect/
7 stars 8 forks source link

Test request missing environ #39

Closed mauritsvanrees closed 8 years ago

mauritsvanrees commented 8 years ago

With https://github.com/plone/plone.contentrules/pull/4, which tries to fix a few write-on-read failures, we get errors like this:

'TestRequest' object has no attribute 'environ'

See for example: http://jenkins.plone.org/job/pull-request-5.0/941/testReport/junit/plone.app.z3cform.tests.test_objectsubform/TestObjectSubForm/test_closest_content/

This pull request fixes this, plus a few more spots where this could happen though I did not see it yet.