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_connect_returns_connection_with_explicit_dsn(dsn, configuration):
connection = connect(dsn=dsn, **get_credentials(configuration))
assert isinstance(connection, Connection)
def test_connect_returns_connection_when_successful(dsn, configuration):
connection = connect(dsn, **get_credentials(configuration))
assert isinstance(connection, Connection)