Skip to content

Commit

Permalink
Fix ValueError: User could not be found in BaseTest setUp adding a tr…
Browse files Browse the repository at this point in the history
…ansaction.commit()
  • Loading branch information
rber474 committed Feb 23, 2024
1 parent 4841898 commit 35e1307
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions plone/app/users/tests/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
from zope.component import getSiteManager
from zope.component import getUtility

import transaction
import unittest


Expand All @@ -42,6 +43,7 @@ def setUp(self):

self.browser = Browser(self.layer["app"])
self.request = self.layer["request"]
transaction.commit()

def tearDown(self):
login(self.portal, "admin")
Expand Down

0 comments on commit 35e1307

Please sign in to comment.