From 0e6ffd5d8c02f410095d3bba30926a9b89f2ef83 Mon Sep 17 00:00:00 2001 From: Tommy Yu Date: Tue, 8 Oct 2013 00:36:57 +1300 Subject: [PATCH] Should have fail return a proper response anyway. --- tests/test_principal.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/tests/test_principal.py b/tests/test_principal.py index e31c52a..ffdb540 100644 --- a/tests/test_principal.py +++ b/tests/test_principal.py @@ -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():