mirror of https://github.com/dbcli/pgcli
Replace splat import in tests.
This commit is contained in:
parent
cf0f33ff01
commit
d324b27e41
|
@ -1,6 +1,7 @@
|
||||||
import pytest
|
import pytest
|
||||||
from utils import *
|
from utils import (POSTGRES_HOST, POSTGRES_USER, create_db, db_connection,
|
||||||
from pgcli.pgexecute import PGExecute
|
drop_tables)
|
||||||
|
import pgcli.pgexecute
|
||||||
|
|
||||||
|
|
||||||
@pytest.yield_fixture(scope="function")
|
@pytest.yield_fixture(scope="function")
|
||||||
|
@ -21,5 +22,5 @@ def cursor(connection):
|
||||||
|
|
||||||
@pytest.fixture
|
@pytest.fixture
|
||||||
def executor(connection):
|
def executor(connection):
|
||||||
return PGExecute(database='_test_db', user=POSTGRES_USER, host=POSTGRES_HOST,
|
return pgcli.pgexecute.PGExecute(database='_test_db', user=POSTGRES_USER,
|
||||||
password=None, port=None)
|
host=POSTGRES_HOST, password=None, port=None)
|
||||||
|
|
Loading…
Reference in New Issue