fixes for browser.tests api test cases

From: Usman Muzaffar <usman(dot)muzaffar(at)enterprisedb(dot)com>
To: pgadmin-hackers <pgadmin-hackers(at)postgresql(dot)org>
Subject: fixes for browser.tests api test cases
Date: 2018-10-16 12:34:30
Message-ID: CAOiUKENb3+uVJ2VSdKEJFMG0qNoroN1MhFXs7gPbwMZW99YJ3Q@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgadmin-hackers

Hi Hackers,

Please find here attached patch for the following test cases,(in package
pgadmin.browser.tests) which were failing.

- test_change_password
- test_gravatar_image_display
- test_login
- test_logout
- test_reset_password
- test_version_in_range

following fixes are provided

- Overridden base class setUp function, as if there is any issue in the
base class setup code, it fails the test case uselessly.
- Changed 'active' parameter value to boolean from integer in following
api '/user_management/user/'

in the test case ,as the relevant post function accepts value in
boolean. Currently due to this the test case was failing.

Please review the patch and commit.

Note: I have verified it on Python2.7 & Python3.6.
--

Thanks,

Usman Muzaffar
QA Team
EnterpriseDB Corporation

Attachment Content-Type Size
browser_tests_api_test_cases_v1.patch application/octet-stream 3.2 KB

Responses

Browse pgadmin-hackers by date

  From Date Subject
Next Message Dave Page 2018-10-17 10:50:27 pgAdmin 4 commit: Additional feature test fixes:
Previous Message Aditya Toshniwal 2018-10-16 11:41:41 Re: [pgAdmin4][patch] Changes to stabilise feature tests