import unittest
import time
import sys
-from typing import Any, Dict, TYPE_CHECKING
-
-if TYPE_CHECKING:
- from psycopg.abc import ConnDict
+from typing import Any, Dict
# Revision 1.12 2009/02/06 03:35:11 kf7xm
# method is to be found
driver: Any = None
connect_args = () # List of arguments to pass to connect
- connect_kw_args: ConnDict = {} # Keyword arguments for connect
+ connect_kw_args: Dict[Any, Any] = {} # Keyword arguments for connect
table_prefix = 'dbapi20test_' # If you need to specify a prefix for tables
ddl1 = 'create table %sbooze (name varchar(20))' % table_prefix
import pytest
import datetime as dt
+from typing import Any, Dict
import psycopg
-from psycopg.abc import ConnDict
from psycopg.conninfo import conninfo_to_dict
from . import dbapi20
class PsycopgTests(dbapi20.DatabaseAPI20Test):
driver = psycopg
# connect_args = () # set by the fixture
- connect_kw_args: ConnDict = {}
+ connect_kw_args: Dict[Any, Any] = {}
def test_nextset(self):
# tested elsewhere