From 81a4d419c70a34665a1305ca752c6778d043dd9f Mon Sep 17 00:00:00 2001 From: David Glick Date: Wed, 5 Oct 2022 20:30:13 +0200 Subject: [PATCH 1/2] Fix admin password in tests --- plone/app/relationfield/schemaeditor.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plone/app/relationfield/schemaeditor.txt b/plone/app/relationfield/schemaeditor.txt index aa623f5..5c59327 100644 --- a/plone/app/relationfield/schemaeditor.txt +++ b/plone/app/relationfield/schemaeditor.txt @@ -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' From f2c5898a12a1358d2fa3576a4b6a1f4698bb083a Mon Sep 17 00:00:00 2001 From: David Glick Date: Wed, 5 Oct 2022 20:31:15 +0200 Subject: [PATCH 2/2] changelog --- news/35.bugfix | 1 + 1 file changed, 1 insertion(+) create mode 100644 news/35.bugfix diff --git a/news/35.bugfix b/news/35.bugfix new file mode 100644 index 0000000..4eb1e19 --- /dev/null +++ b/news/35.bugfix @@ -0,0 +1 @@ +- Fix admin password in tests [davisagli]