Fixed following SonarQube issues:
1. String literals should not be duplicated.
2. Cognitive Complexity of functions should not be too high.
Branch
------
master
Details
-------
https://git.postgresql.org/gitweb?p=pgadmin4.git;a=commitdiff;h=0668a52c6bbc919c33575ebeb3e47dd71ffcb6e6
Author: Yogesh Mahajan <yogesh(dot)mahajan(at)enterprisedb(dot)com>
Modified Files
--------------
.../pg_utilities_backup_restore_test.py | 129 ++++----
web/regression/feature_utils/pgadmin_page.py | 324 ++++++++++++---------
web/regression/runtests.py | 118 +++++---
3 files changed, 330 insertions(+), 241 deletions(-)