Re: [pgAdmin4][patch] In SharedServersGetTestCase, the prompt information is wrong

From: Akshay Joshi <akshay(dot)joshi(at)enterprisedb(dot)com>
To: "zhangjie2(at)fujitsu(dot)com" <zhangjie2(at)fujitsu(dot)com>
Cc: "pgadmin-hackers(at)lists(dot)postgresql(dot)org" <pgadmin-hackers(at)lists(dot)postgresql(dot)org>
Subject: Re: [pgAdmin4][patch] In SharedServersGetTestCase, the prompt information is wrong
Date: 2021-07-23 07:14:53
Message-ID: CANxoLDe9EoYPsNNAbfKi7EWXrsw6hao1HXhs6t7aNxkPZDLH=Q@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgadmin-hackers

Thanks, the patch applied.

On Thu, Jul 22, 2021 at 1:09 PM zhangjie2(at)fujitsu(dot)com <zhangjie2(at)fujitsu(dot)com>
wrote:

> Hi, all
>
> SharedServersGetTestCase can only be tested in SERVER mode.
> So, in Desktop mode, prompt information will be output.
> However, the prompt is wrong.
> ("Can not run shared servers test cases in the SERVER mode.")
>
> I think it should be changed to the following prompt information
> "Can not run shared servers test cases in the Desktop mode."
>
>
> ----------------------------------------------------------------------------
> file: web\pgadmin\browser\server_groups\servers\tests\test_shared_server.py
>
> SharedServersGetTestCase
>
> def setUp(self):
> """This function add the server to test the GET API"""
>
> if config.SERVER_MODE is False:
> self.skipTest(
> "Can not run shared servers test cases in the SERVER
> mode." ※
> )
>
> ----------------------------------------------------------------------------
>
> Here is a patch for test_shared_server.py
> Please review.
>
> Best Regards!
> Zhangjie
>
>
>
>

--
*Thanks & Regards*
*Akshay Joshi*
*pgAdmin Hacker | Principal Software Architect*
*EDB Postgres <http://edbpostgres.com>*

*Mobile: +91 976-788-8246*

In response to

Browse pgadmin-hackers by date

  From Date Subject
Next Message Akshay Joshi 2021-07-23 07:15:02 Re: [pgAdmin][RM-6574]: The paste is not working through Right-Click option on PSQL
Previous Message Akshay Joshi 2021-07-23 07:14:38 pgAdmin 4 commit: Correct the string for shared server test case.