summaryrefslogtreecommitdiff
path: root/tests/test_integration.py
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/test_integration.py
parent94a16a7ddd7e9d313e1b447bf478bc51c053e58a (diff)
downloadpyramid-8a1f8d4acc77cd9fe57405384b5c20e9fa3fb078.tar.gz
pyramid-8a1f8d4acc77cd9fe57405384b5c20e9fa3fb078.tar.bz2
pyramid-8a1f8d4acc77cd9fe57405384b5c20e9fa3fb078.zip
Get integration tests working again.
Diffstat (limited to 'tests/test_integration.py')
-rw-r--r--tests/test_integration.py8
1 files changed, 5 insertions, 3 deletions
diff --git a/tests/test_integration.py b/tests/test_integration.py
index e6dccbb5b..72465dc93 100644
--- a/tests/test_integration.py
+++ b/tests/test_integration.py
@@ -581,10 +581,12 @@ class TestConflictApp(unittest.TestCase):
def test_overridden_authorization_policy(self):
config = self._makeConfig()
config.include(self.package)
- from pyramid.testing import DummySecurityPolicy
- config.set_authorization_policy(DummySecurityPolicy('fred'))
- config.set_authentication_policy(DummySecurityPolicy(permissive=True))
+ class DummySecurityPolicy:
+ def permits(self, context, principals, permission):
+ return True
+
+ config.set_authorization_policy(DummySecurityPolicy())
app = config.make_wsgi_app()
self.testapp = TestApp(app)
res = self.testapp.get('/protected', status=200)