mirror of
https://github.com/pgadmin-org/pgadmin4.git
synced 2025-02-10 07:26:01 -06:00
29 lines
866 B
Python
29 lines
866 B
Python
##########################################################################
|
|
#
|
|
# pgAdmin 4 - PostgreSQL Tools
|
|
#
|
|
# Copyright (C) 2013 - 2018, The pgAdmin Development Team
|
|
# This software is released under the PostgreSQL Licence
|
|
#
|
|
##########################################################################
|
|
|
|
|
|
def change_password(self):
|
|
response = self.tester.get(
|
|
'/browser/change_password', follow_redirects=True
|
|
)
|
|
self.assertTrue(
|
|
'pgAdmin 4 Password Change' in response.data.decode('utf-8')
|
|
)
|
|
|
|
response = self.tester.post(
|
|
'/browser/change_password',
|
|
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'))
|