lolafect/tests/test_integration/test_connections.py
2023-01-20 15:01:07 +01:00

18 lines
536 B
Python

import trino
from lolafect.lolaconfig import build_lolaconfig
from lolafect.connections import connect_to_trino
# This testing suite requires:
# - The calling shell to have permission in AWS
# - The calling shell to be within the Mercadão network
TEST_LOLACONFIG = build_lolaconfig(flow_name="testing-suite")
def test_that_trino_connector_works_properly():
connection = connect_to_trino.run(TEST_LOLACONFIG.TRINO_CREDENTIALS)
connection.cursor().execute("SELECT 1")
assert type(connection) == trino.dbapi.Connection