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):