2017-03-16 09:27:55 -05:00
|
|
|
##########################################################################
|
2016-08-09 10:05:40 -05:00
|
|
|
#
|
2017-03-16 09:27:55 -05:00
|
|
|
# pgAdmin 4 - PostgreSQL Tools
|
2016-08-09 10:05:40 -05:00
|
|
|
#
|
2018-01-05 04:42:49 -06:00
|
|
|
# Copyright (C) 2013 - 2018, The pgAdmin Development Team
|
2017-03-16 09:27:55 -05:00
|
|
|
# This software is released under the PostgreSQL Licence
|
2016-08-09 10:05:40 -05:00
|
|
|
#
|
2017-03-16 09:27:55 -05:00
|
|
|
##########################################################################
|
2016-08-09 10:05:40 -05:00
|
|
|
|
|
|
|
def change_password(self):
|
2017-11-30 07:16:59 -06:00
|
|
|
response = self.tester.get('/browser/change_password', follow_redirects=True)
|
2016-10-07 07:59:43 -05:00
|
|
|
self.assertTrue('pgAdmin 4 Password Change' in response.data.decode(
|
2016-08-09 10:05:40 -05:00
|
|
|
'utf-8'))
|
|
|
|
|
2017-11-30 07:16:59 -06:00
|
|
|
response = self.tester.post('/browser/change_password', data=dict(
|
2016-08-09 10:05:40 -05:00
|
|
|
password=self.password,
|
|
|
|
new_password=self.new_password,
|
|
|
|
new_password_confirm=self.new_password_confirm),
|
|
|
|
follow_redirects=True)
|
2016-10-07 07:59:43 -05:00
|
|
|
self.assertTrue(self.respdata in response.data.decode('utf-8'))
|