Skip to content

Commit

Permalink
[FIX] Test of user comments permissions
Browse files Browse the repository at this point in the history
  • Loading branch information
whikernel committed Jan 30, 2025
1 parent 6022825 commit 22b2f25
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/tests_rest_assets.py
Original file line number Diff line number Diff line change
Expand Up @@ -158,5 +158,5 @@ def test_user_should_not_change_comment_of_others(self):
comment_identifier = response['data']['comment_id']

# Try to update the comment from user 2
response = user2.create(f'/case/assets/{asset_identifier}/comments/{comment_identifier}/update?cid={case_identifier}', {'comment_text': 'updated comment'}).json()
response = user2.create(f'/case/assets/{asset_identifier}/comments/{comment_identifier}/edit?cid={case_identifier}', {'comment_text': 'updated comment'})
self.assertEqual(400, response.status_code)

0 comments on commit 22b2f25

Please sign in to comment.