Fix utility route check for Windows.

This commit is contained in:
Murtuza Zabuawala
2018-12-04 10:46:59 +00:00
committed by Dave Page
parent 851c0cfff3
commit f4f0fa0e47
5 changed files with 14 additions and 5 deletions

View File

@@ -30,7 +30,7 @@ class TestUtilityCheckRouteCase(BaseTestGenerator):
]
def setUp(self):
check_binary_path_or_skip_test(self)
check_binary_path_or_skip_test(self, 'pg_dump')
@patch('pgadmin.tools.backup.is_utility_exists')
def runTest(self, is_utility_exists_mock):

View File

@@ -30,7 +30,7 @@ class TestUtilityCheckRouteCase(BaseTestGenerator):
]
def setUp(self):
check_binary_path_or_skip_test(self)
check_binary_path_or_skip_test(self, 'psql')
@patch('pgadmin.tools.import_export.is_utility_exists')
def runTest(self, is_utility_exists_mock):

View File

@@ -30,7 +30,7 @@ class TestUtilityCheckRouteCase(BaseTestGenerator):
]
def setUp(self):
check_binary_path_or_skip_test(self)
check_binary_path_or_skip_test(self, 'psql')
@patch('pgadmin.tools.maintenance.is_utility_exists')
def runTest(self, is_utility_exists_mock):

View File

@@ -30,7 +30,7 @@ class TestUtilityCheckRouteCase(BaseTestGenerator):
]
def setUp(self):
check_binary_path_or_skip_test(self)
check_binary_path_or_skip_test(self, 'pg_restore')
@patch('pgadmin.tools.restore.is_utility_exists')
def runTest(self, is_utility_exists_mock):