Skip to content

Commit

Permalink
Fixes by pre-commit.
Browse files Browse the repository at this point in the history
  • Loading branch information
mauritsvanrees committed Oct 17, 2023
1 parent eb1bd30 commit 2f42480
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/plone/rest/tests/test_explicitacquisition.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@

import unittest


try:
from Products.CMFCore.interfaces import IShouldAllowAcquiredItemPublication

Expand Down Expand Up @@ -78,7 +79,7 @@ def traverse(self, path="/plone", accept="application/json", method="GET"):
request.environ["PATH_TRANSLATED"] = path
request.environ["HTTP_ACCEPT"] = accept
request.environ["REQUEST_METHOD"] = method
auth = "%s:%s" % (SITE_OWNER_NAME, SITE_OWNER_PASSWORD)
auth = f"{SITE_OWNER_NAME}:{SITE_OWNER_PASSWORD}"
b64auth = b64encode(auth.encode("utf8"))
request._auth = "Basic %s" % b64auth.decode("utf8")
notify(PubStart(request))
Expand Down

0 comments on commit 2f42480

Please sign in to comment.