Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
def test_make_connection_string_without_dsn():
connection_string = _make_connection_string(None, user='my_user')
_test_connection_string(connection_string, 'user=my_user')
def test_make_connection_string_with_dsn():
connection_string = _make_connection_string('my_dsn', user='my_user')
_test_connection_string(connection_string, 'dsn=my_dsn;user=my_user')