Skip to content

Commit

Permalink
cleanup code
Browse files Browse the repository at this point in the history
  • Loading branch information
cekk committed Feb 9, 2024
1 parent 328f880 commit 91ae678
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
2 changes: 1 addition & 1 deletion src/collective/feedback/permissions.zcml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
id="collective.feedback.ShowDeletedFeedbacks"
title="collective.feedback: Show Deleted Feedbacks"
/>

</configure>

</configure>
2 changes: 0 additions & 2 deletions src/collective/feedback/tests/test_feedbacks_get.py
Original file line number Diff line number Diff line change
Expand Up @@ -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!!")
Expand Down

0 comments on commit 91ae678

Please sign in to comment.