tests fixed
This commit is contained in:
parent
db808e640b
commit
481ed642c8
1 changed files with 2 additions and 3 deletions
|
@ -32,8 +32,7 @@ class test_routing(unittest.TestCase):
|
|||
self.app.config['CAS_LOGIN_ROUTE'] = '/cas'
|
||||
self.app.config['CAS_LOGOUT_ROUTE'] = '/cas/logout'
|
||||
self.app.config['CAS_VALIDATE_ROUTE'] = '/cas/validate'
|
||||
|
||||
self.app.config['CAS_AFTER_LOGOUT'] = '/'
|
||||
self.app.config['CAS_AFTER_LOGOUT'] = 'http://localhost:5000'
|
||||
|
||||
def test_setUp(self):
|
||||
pass
|
||||
|
@ -103,7 +102,7 @@ class test_routing(unittest.TestCase):
|
|||
self.assertEqual(response.status_code, 302)
|
||||
self.assertEqual(
|
||||
response.headers['Location'],
|
||||
'http://cas.server.com/cas/logout')
|
||||
'http://cas.server.com/cas/logout?service=http://localhost:5000')
|
||||
|
||||
@mock.patch.object(routing, 'urlopen',
|
||||
return_value=io.BytesIO(b'yes\nbob\n'))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue