Adding upstream version 1.29.2.
Signed-off-by: Daniel Baumann <daniel@debian.org>
This commit is contained in:
parent
5bd6a68e8c
commit
f9065f1bef
68 changed files with 3723 additions and 3336 deletions
|
@ -1,13 +1,12 @@
|
|||
import pytest
|
||||
from .utils import (HOST, USER, PASSWORD, PORT, CHARSET, create_db,
|
||||
db_connection, SSH_USER, SSH_HOST, SSH_PORT)
|
||||
from .utils import HOST, USER, PASSWORD, PORT, CHARSET, create_db, db_connection, SSH_USER, SSH_HOST, SSH_PORT
|
||||
import mycli.sqlexecute
|
||||
|
||||
|
||||
@pytest.fixture(scope="function")
|
||||
def connection():
|
||||
create_db('mycli_test_db')
|
||||
connection = db_connection('mycli_test_db')
|
||||
create_db("mycli_test_db")
|
||||
connection = db_connection("mycli_test_db")
|
||||
yield connection
|
||||
|
||||
connection.close()
|
||||
|
@ -22,8 +21,18 @@ def cursor(connection):
|
|||
@pytest.fixture
|
||||
def executor(connection):
|
||||
return mycli.sqlexecute.SQLExecute(
|
||||
database='mycli_test_db', user=USER,
|
||||
host=HOST, password=PASSWORD, port=PORT, socket=None, charset=CHARSET,
|
||||
local_infile=False, ssl=None, ssh_user=SSH_USER, ssh_host=SSH_HOST,
|
||||
ssh_port=SSH_PORT, ssh_password=None, ssh_key_filename=None
|
||||
database="mycli_test_db",
|
||||
user=USER,
|
||||
host=HOST,
|
||||
password=PASSWORD,
|
||||
port=PORT,
|
||||
socket=None,
|
||||
charset=CHARSET,
|
||||
local_infile=False,
|
||||
ssl=None,
|
||||
ssh_user=SSH_USER,
|
||||
ssh_host=SSH_HOST,
|
||||
ssh_port=SSH_PORT,
|
||||
ssh_password=None,
|
||||
ssh_key_filename=None,
|
||||
)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue