Skip to content

Commit

Permalink
Merge pull request #35 from plone/test-pw
Browse files Browse the repository at this point in the history
Fix admin password in tests
  • Loading branch information
davisagli authored Oct 6, 2022
2 parents 07c13f6 + f2c5898 commit b54c9db
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions news/35.bugfix
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
- Fix admin password in tests [davisagli]
4 changes: 2 additions & 2 deletions plone/app/relationfield/schemaeditor.txt
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@ Test setup::

>>> app = layer['app']
>>> from plone.testing.zope import Browser
>>> from plone.app.testing import TEST_USER_PASSWORD
>>> from plone.app.testing import SITE_OWNER_PASSWORD
>>> browser = Browser(app)
>>> browser.handleErrors = False
>>> browser.addHeader('Authorization', f'Basic admin:{TEST_USER_PASSWORD}')
>>> browser.addHeader('Authorization', f'Basic admin:{SITE_OWNER_PASSWORD}')
>>> portal = layer['portal']
>>> portal_url = portal.portal_url()
>>> dexterity_types = portal_url + '/dexterity-types'
Expand Down

0 comments on commit b54c9db

Please sign in to comment.