mirror of
https://github.com/pgadmin-org/pgadmin4.git
synced 2025-02-10 07:26:01 -06:00
22 lines
801 B
Python
22 lines
801 B
Python
# ##########################################################################
|
|
#
|
|
# #pgAdmin 4 - PostgreSQL Tools
|
|
#
|
|
# #Copyright (C) 2013 - 2017, The pgAdmin Development Team
|
|
# #This software is released under the PostgreSQL Licence
|
|
#
|
|
# ##########################################################################
|
|
|
|
|
|
def change_password(self):
|
|
response = self.tester.get('/change', follow_redirects=True)
|
|
self.assertTrue('pgAdmin 4 Password Change' in response.data.decode(
|
|
'utf-8'))
|
|
|
|
response = self.tester.post('/change', data=dict(
|
|
password=self.password,
|
|
new_password=self.new_password,
|
|
new_password_confirm=self.new_password_confirm),
|
|
follow_redirects=True)
|
|
self.assertTrue(self.respdata in response.data.decode('utf-8'))
|