Use a different server name for unit vs. feature tests to avoid some observed conflicts.

This commit is contained in:
Sarah McAlear 2017-05-02 12:00:30 +01:00 committed by Dave Page
parent 6790bfd0c0
commit 4acecfa59a

View File

@ -13,6 +13,8 @@ import os
from datetime import datetime
from copy import deepcopy
import config as app_config
from pgadmin.utils.route import BaseTestGenerator
from regression.feature_utils.pgadmin_page import PgadminPage
@ -22,6 +24,8 @@ class BaseFeatureTest(BaseTestGenerator):
CURRENT_PATH = os.path.dirname(os.path.realpath(__file__))
def setUp(self):
self.server = deepcopy(self.server)
self.server['name'] += ' Feature Tests'
if app_config.SERVER_MODE:
self.skipTest("Currently, config is set to start pgadmin in server mode. "
"This test doesn't know username and password so doesn't work in server mode")