pgAdmin 4 commit: Improve code coverage and API test cases for Function - Mailing list pgadmin-hackers

From Akshay Joshi
Subject pgAdmin 4 commit: Improve code coverage and API test cases for Function
Date
Msg-id E1kKgKN-0007pM-Fc@gothos.postgresql.org
Whole thread Raw
List pgadmin-hackers
Improve code coverage and API test cases for Functions. Fixes #5330

Branch
------
master

Details
-------
https://git.postgresql.org/gitweb?p=pgadmin4.git;a=commitdiff;h=43d97b0e6f5ea910586092113ec3baf8b74ded9d
Author: Nikhil Mohite <nikhil.mohite@enterprisedb.com>

Modified Files
--------------
docs/en_US/release_notes_4_27.rst                  |   1 +
.../databases/schemas/functions/__init__.py        |  29 +--
.../schemas/functions/tests/test_function_add.py   |  93 ++++++++-
.../functions/tests/test_function_delete.py        | 103 +++++++++-
.../schemas/functions/tests/test_function_get.py   |  73 ++++++-
.../functions/tests/test_function_get_languages.py |  80 ++++++++
.../functions/tests/test_function_get_msql.py      | 224 +++++++++++++++++++++
.../functions/tests/test_function_get_nodes.py     | 121 +++++++++++
.../functions/tests/test_function_get_sql.py       |  85 ++++++++
.../functions/tests/test_function_get_types.py     |  82 ++++++++
.../tests/test_function_get_variable_options.py    |  80 ++++++++
.../schemas/functions/tests/test_function_put.py   | 159 +++++++++++++--
.../functions/tests/test_get_dependencies.py       |  85 ++++++++
.../schemas/functions/tests/test_get_dependents.py |  85 ++++++++
.../tests/test_get_function_statistics.py          | 120 +++++++++++
.../schemas/functions/tests/test_get_list.py       |  80 ++++++++
.../schemas/functions/tests/test_get_select_sql.py | 122 +++++++++++
.../tests/test_get_supported_functions.py          |  85 ++++++++
.../databases/schemas/functions/tests/utils.py     |  10 +-
19 files changed, 1659 insertions(+), 58 deletions(-)


pgadmin-hackers by date:

Previous
From: Aditya Toshniwal
Date:
Subject: Re: [pgAdmin][SonarQube] Reduce cognitive complexity
Next
From: Akshay Joshi
Date:
Subject: Re: [pgAdmin][RM5330]: [Code Coverage] Improve API test cases for Functions