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

Поиск
Список
Период
Сортировка
От zhangjie2@fujitsu.com
Тема [pgAdmin4][patch] In SharedServersGetTestCase, the prompt information is wrong
Дата
Msg-id TYWPR01MB7678AC09EB538FC37162B1EFF9E49@TYWPR01MB7678.jpnprd01.prod.outlook.com
обсуждение исходный текст
Ответы Re: [pgAdmin4][patch] In SharedServersGetTestCase, the prompt information is wrong  (Akshay Joshi <akshay.joshi@enterprisedb.com>)
Список pgadmin-hackers
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




Вложения

В списке pgadmin-hackers по дате отправления:

Предыдущее
От: Akshay Joshi
Дата:
Сообщение: Re: Bug #6337 Patch
Следующее
От: Nikhil Mohite
Дата:
Сообщение: [pgAdmin][RM-6574]: The paste is not working through Right-Click option on PSQL