Skip to content

Commit

Permalink
Merge pull request #20 from plone/maurits-zope-component-5
Browse files Browse the repository at this point in the history
Fixed tests when run with zope.component 5+.
  • Loading branch information
mauritsvanrees authored Mar 16, 2022
2 parents e7e7247 + dd92054 commit 71f66fb
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
2 changes: 2 additions & 0 deletions news/500.bugfix
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
Fixed tests when run with ``zope.component`` 5+.
[maurits]
4 changes: 4 additions & 0 deletions plone/app/customerize/tests/testBrowserLayers.txt
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,10 @@ product is installed, we cannot view the view, though:
>>> browser.handleErrors = False
>>> browser.addHeader('Authorization', 'Basic %s:%s' % (
... SITE_OWNER_NAME, SITE_OWNER_PASSWORD))

First open the site root. This avoids a crazy testing-only error with zope.component 5.

>>> browser.open('http://nohost/plone/')
>>> browser.open('http://nohost/plone/@@layer-test-view')
Traceback (most recent call last):
...
Expand Down

0 comments on commit 71f66fb

Please sign in to comment.