Skip to content

Commit

Permalink
Should have fail return a proper response anyway.
Browse files Browse the repository at this point in the history
  • Loading branch information
metatoaster authored and mg-christian-axelsson committed Nov 18, 2024
1 parent a657683 commit 0e6ffd5
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions tests/test_principal.py
Original file line number Diff line number Diff line change
Expand Up @@ -260,14 +260,13 @@ def not_base():

@app.route('/mixed_ops_fail')
def mixed_ops_fail():
result = []
mixed_perms = (admin_permission | manager_permission |
(reviewer_role_permission & editor_role_permission))

i = Identity('editor')
identity_changed.send(app, identity=i)
with mixed_perms.require():
result.append('fail')
return Response('fail')

@app.route('/mixed_ops1')
def mixed_ops1():
Expand Down

0 comments on commit 0e6ffd5

Please sign in to comment.