mirror of
https://github.com/pgadmin-org/pgadmin4.git
synced 2025-02-25 18:55:31 -06:00
Remove psycopg2 completely.
This commit is contained in:
@@ -39,12 +39,8 @@ from pgadmin.utils.constants import BINARY_PATHS, PSYCOPG3
|
||||
from pgadmin.utils import set_binary_path
|
||||
|
||||
from functools import wraps
|
||||
import psycopg
|
||||
|
||||
# Remove this condition, once psycopg2 will be removed completely
|
||||
if config.PG_DEFAULT_DRIVER == PSYCOPG3:
|
||||
import psycopg
|
||||
else:
|
||||
import psycopg2 as psycopg
|
||||
|
||||
CURRENT_PATH = os.path.abspath(os.path.join(os.path.dirname(
|
||||
os.path.realpath(__file__)), "../"))
|
||||
|
||||
@@ -236,9 +236,6 @@ class ReverseEngineeredSQLTestCases(BaseTestGenerator):
|
||||
elif self.check_precondition(
|
||||
scenario['precondition_sql'], False):
|
||||
skip_test_case = False
|
||||
elif 'pg_driver' in scenario and\
|
||||
scenario['pg_driver'] != PG_DEFAULT_DRIVER:
|
||||
skip_test_case = True
|
||||
else:
|
||||
skip_test_case = False
|
||||
|
||||
|
||||
Reference in New Issue
Block a user