From 91ae67885b9c4b96e693eb412ffa061549bd62d6 Mon Sep 17 00:00:00 2001 From: Andrea Cecchi Date: Fri, 9 Feb 2024 17:11:35 +0100 Subject: [PATCH] cleanup code --- src/collective/feedback/permissions.zcml | 2 +- src/collective/feedback/tests/test_feedbacks_get.py | 2 -- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/src/collective/feedback/permissions.zcml b/src/collective/feedback/permissions.zcml index 5c0c6a0..ee69ca2 100644 --- a/src/collective/feedback/permissions.zcml +++ b/src/collective/feedback/permissions.zcml @@ -21,7 +21,7 @@ id="collective.feedback.ShowDeletedFeedbacks" title="collective.feedback: Show Deleted Feedbacks" /> - + diff --git a/src/collective/feedback/tests/test_feedbacks_get.py b/src/collective/feedback/tests/test_feedbacks_get.py index c283acb..6f413e0 100644 --- a/src/collective/feedback/tests/test_feedbacks_get.py +++ b/src/collective/feedback/tests/test_feedbacks_get.py @@ -216,14 +216,12 @@ def test_actions_list_returned(self): self.assertIn("actions", res) def test_users_with_permission_have_can_delete_feedbacks_action(self): - response = self.api_session.get(self.url) res = response.json() self.assertIn("can_delete_feedbacks", res["actions"]) self.assertTrue(res["actions"]["can_delete_feedbacks"]) def test_users_without_permission_dont_have_can_delete_feedbacks_action(self): - api_session = RelativeSession(self.portal_url) api_session.headers.update({"Accept": "application/json"}) api_session.auth = ("global", "secret!!")