Commit b1bb5c26 by Anthony Lenton

Specify op_endpoint in tests, to work with openid 2.2.5

parent 6839073d
...@@ -169,9 +169,10 @@ class RelyingPartyTests(TestCase): ...@@ -169,9 +169,10 @@ class RelyingPartyTests(TestCase):
self.req = DummyDjangoRequest('http://localhost/') self.req = DummyDjangoRequest('http://localhost/')
self.endpoint = OpenIDServiceEndpoint() self.endpoint = OpenIDServiceEndpoint()
self.endpoint.claimed_id = 'http://example.com/identity' self.endpoint.claimed_id = 'http://example.com/identity'
self.endpoint.server_url = 'http://example.com/' server_url = 'http://example.com/'
self.endpoint.server_url = server_url
self.consumer = make_consumer(self.req) self.consumer = make_consumer(self.req)
self.server = Server(DjangoOpenIDStore()) self.server = Server(DjangoOpenIDStore(), op_endpoint=server_url)
setDefaultFetcher(self.provider, wrap_exceptions=False) setDefaultFetcher(self.provider, wrap_exceptions=False)
self.old_login_redirect_url = getattr(settings, 'LOGIN_REDIRECT_URL', '/accounts/profile/') self.old_login_redirect_url = getattr(settings, 'LOGIN_REDIRECT_URL', '/accounts/profile/')
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment