pgAdmin 4 commit: Test suite improvements:
От | Dave Page |
---|---|
Тема | pgAdmin 4 commit: Test suite improvements: |
Дата | |
Msg-id | E1bSPu0-0007IT-3D@gothos.postgresql.org обсуждение исходный текст |
Список | pgadmin-hackers |
Test suite improvements: - Test framework support API testing with multiple server for this we need to modify test_config.json(for user it’s test_config.json.in)and test_advanced_config.json(for user it’s test_advanced_config.json.in). Server details of PG and PPAS are included in both .in files. - Removed the logic of logging in the test client on each test scenario(As per Khushboo's comment in previous email). Weneed this logic in test cases under ‘browser/tests/’ as for test scenarios like change password and invalid login testcases as test client should be logged out first. So, as per this the code is slightly modified in ‘browser/tests/’. Branch ------ master Details ------- http://git.postgresql.org/gitweb?p=pgadmin4.git;a=commitdiff;h=5c3c543d2ef9acb120cc7c6891eab58a9969b82e Author: Navnath Gadakh <navnath.gadakh@enterprisedb.com> Modified Files -------------- .../servers/databases/tests/test_db_add.py | 17 +-- .../servers/databases/tests/test_db_delete.py | 26 ++-- .../servers/databases/tests/test_db_get.py | 29 ++--- .../servers/databases/tests/test_db_put.py | 43 +++---- .../server_groups/servers/tests/__init__.py | 2 +- .../server_groups/servers/tests/test_server_add.py | 14 +-- .../servers/tests/test_server_delete.py | 8 +- .../server_groups/servers/tests/test_server_get.py | 10 +- .../server_groups/servers/tests/test_server_put.py | 13 +- .../browser/server_groups/tests/__init__.py | 2 +- .../browser/server_groups/tests/test_sg_get.py | 14 --- web/pgadmin/browser/tests/__init__.py | 2 +- web/pgadmin/browser/tests/test_change_password.py | 21 +--- web/pgadmin/browser/tests/test_login.py | 22 ++-- web/pgadmin/browser/tests/test_logout.py | 14 ++- web/pgadmin/browser/tests/test_reset_password.py | 20 +-- web/pgadmin/utils/route.py | 24 +++- web/regression/runtests.py | 15 ++- web/regression/test_advanced_config.json.in | 96 ++++++++++++++- web/regression/test_config.json.in | 12 +- web/regression/test_utils.py | 134 ++++++++++++--------- 21 files changed, 306 insertions(+), 232 deletions(-)
В списке pgadmin-hackers по дате отправления: