Skip to content

Commit

Permalink
Reset SKIP_PTA to whatever it was.
Browse files Browse the repository at this point in the history
Before it would leak into other tests, enabling the publication check when it shouldn't be active.
  • Loading branch information
jaroel committed Oct 20, 2023
1 parent 5f98989 commit 1bd2477
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/plone/rest/tests/test_explicitacquisition.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,10 +68,18 @@ class TestExplicitAcquisitionAvailable(unittest.TestCase):
layer = PLONE_REST_INTEGRATION_TESTING

def setUp(self):
import Products.CMFCore.explicitacquisition

self.portal = self.layer["portal"]
self.request = self.layer["request"]
setRoles(self.portal, TEST_USER_ID, ["Manager"])
self.portal.invokeFactory("Document", id="foo")
self.PREVIOUS_SKIP_PTA = Products.CMFCore.explicitacquisition.SKIP_PTA

def tearDown(self):
import Products.CMFCore.explicitacquisition

Products.CMFCore.explicitacquisition.SKIP_PTA = self.PREVIOUS_SKIP_PTA

def traverse(self, path="/plone", accept="application/json", method="GET"):
request = self.layer["request"]
Expand Down

0 comments on commit 1bd2477

Please sign in to comment.