From 822ce62f9d46a59493b2be23a23240bc16425e94 Mon Sep 17 00:00:00 2001 From: Mikel Larreategi Date: Fri, 15 Sep 2023 08:30:47 +0200 Subject: [PATCH] fix --- src/plone/restapi/tests/test_services_navroot.py | 4 ++-- src/plone/restapi/tests/test_services_site.py | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/plone/restapi/tests/test_services_navroot.py b/src/plone/restapi/tests/test_services_navroot.py index 327b48847b..512c8a6ef9 100644 --- a/src/plone/restapi/tests/test_services_navroot.py +++ b/src/plone/restapi/tests/test_services_navroot.py @@ -41,7 +41,7 @@ def setUp(self): api.content.transition(obj=self.portal.news.document, transition="publish") transaction.commit() - self.api_session = RelativeSession(self.portal_url, test=self) + self.api_session = RelativeSession(self.portal_url) self.api_session.headers.update({"Accept": "application/json"}) def test_get_navroot(self): @@ -143,7 +143,7 @@ def setUp(self): api.content.transition(obj=self.portal.en.news, transition="publish") api.content.transition(obj=self.portal.en.news.document, transition="publish") - self.api_session = RelativeSession(self.portal_url, test=self) + self.api_session = RelativeSession(self.portal_url) self.api_session.headers.update({"Accept": "application/json"}) transaction.commit() diff --git a/src/plone/restapi/tests/test_services_site.py b/src/plone/restapi/tests/test_services_site.py index 1bd9069eb5..0f6c75e1d1 100644 --- a/src/plone/restapi/tests/test_services_site.py +++ b/src/plone/restapi/tests/test_services_site.py @@ -18,7 +18,7 @@ def setUp(self): self.portal_url = self.portal.absolute_url() setRoles(self.portal, TEST_USER_ID, ["Manager"]) - self.api_session = RelativeSession(self.portal_url, test=self) + self.api_session = RelativeSession(self.portal_url) self.api_session.headers.update({"Accept": "application/json"}) def test_get_site(self):