Exemplo n.º 1
0
def test_make_connection_string_with_dsn():
    connection_string = _make_connection_string('my_dsn', user='******')
    assert connection_string == 'dsn=my_dsn;user=my_user'
Exemplo n.º 2
0
def test_make_connection_string_without_dsn():
    connection_string = _make_connection_string(None, user="******")
    _test_connection_string(connection_string, "user=my_user")
Exemplo n.º 3
0
def test_make_connection_string_without_dsn():
    connection_string = _make_connection_string(None, user='******')
    assert connection_string == 'user=my_user'
Exemplo n.º 4
0
def test_make_connection_string_with_dsn():
    connection_string = _make_connection_string("my_dsn", user="******")
    _test_connection_string(connection_string, "dsn=my_dsn;user=my_user")
Exemplo n.º 5
0
def test_make_connection_string_without_dsn():
    connection_string = _make_connection_string(None, user='******')
    _test_connection_string(connection_string, 'user=my_user')
Exemplo n.º 6
0
def test_make_connection_string_with_dsn():
    connection_string = _make_connection_string('my_dsn', user='******')
    _test_connection_string(connection_string, 'dsn=my_dsn;user=my_user')
Exemplo n.º 7
0
def test_make_connection_string_without_dsn():
    connection_string = _make_connection_string(None, user='******')
    _test_connection_string(connection_string, 'user=my_user')
Exemplo n.º 8
0
def test_make_connection_string_with_dsn():
    connection_string = _make_connection_string('my_dsn', user='******')
    _test_connection_string(connection_string, 'dsn=my_dsn;user=my_user')