summaryrefslogtreecommitdiff
path: root/tests/pkgs/forbiddenapp
diff options
context:
space:
mode:
authorTheron Luhn <theron@luhn.com>2019-03-09 13:27:13 -0800
committerTheron Luhn <theron@luhn.com>2019-03-09 13:40:17 -0800
commit8a1f8d4acc77cd9fe57405384b5c20e9fa3fb078 (patch)
treeda701faa22bc78f7f8f2f7de3773cb4529142bd9 /tests/pkgs/forbiddenapp
parent94a16a7ddd7e9d313e1b447bf478bc51c053e58a (diff)
downloadpyramid-8a1f8d4acc77cd9fe57405384b5c20e9fa3fb078.tar.gz
pyramid-8a1f8d4acc77cd9fe57405384b5c20e9fa3fb078.tar.bz2
pyramid-8a1f8d4acc77cd9fe57405384b5c20e9fa3fb078.zip
Get integration tests working again.
Diffstat (limited to 'tests/pkgs/forbiddenapp')
-rw-r--r--tests/pkgs/forbiddenapp/__init__.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/pkgs/forbiddenapp/__init__.py b/tests/pkgs/forbiddenapp/__init__.py
index 31ea4dd52..79670dd32 100644
--- a/tests/pkgs/forbiddenapp/__init__.py
+++ b/tests/pkgs/forbiddenapp/__init__.py
@@ -22,7 +22,7 @@ def includeme(config):
authn_policy = AuthTktAuthenticationPolicy('seekr1t', hashalg='sha512')
authz_policy = ACLAuthorizationPolicy()
- config._set_authentication_policy(authn_policy)
- config._set_authorization_policy(authz_policy)
+ config.set_authentication_policy(authn_policy)
+ config.set_authorization_policy(authz_policy)
config.add_view(x_view, name='x', permission='private')
config.add_view(forbidden_view, context=HTTPForbidden)