@@ -42,6 +42,7 @@ def trino_connection(run_trino, request):
4242 sqlalchemy_version () < "1.4" ,
4343 reason = "columns argument to select() must be a Python list or other iterable"
4444)
45+ @pytest .mark .skipif (trino_version () == 351 , reason = "connector name is not available in older Trino versions" )
4546@pytest .mark .parametrize ('trino_connection' , ['tpch' ], indirect = True )
4647def test_select_query (trino_connection ):
4748 _ , conn = trino_connection
@@ -71,6 +72,7 @@ def assert_column(table, column_name, column_type):
7172 sqlalchemy_version () < "1.4" ,
7273 reason = "columns argument to select() must be a Python list or other iterable"
7374)
75+ @pytest .mark .skipif (trino_version () == 351 , reason = "connector name is not available in older Trino versions" )
7476@pytest .mark .parametrize ('trino_connection' , ['system' ], indirect = True )
7577def test_select_specific_columns (trino_connection ):
7678 _ , conn = trino_connection
@@ -240,6 +242,7 @@ def test_insert_multiple_statements(trino_connection):
240242 sqlalchemy_version () < "1.4" ,
241243 reason = "columns argument to select() must be a Python list or other iterable"
242244)
245+ @pytest .mark .skipif (trino_version () == 351 , reason = "connector name is not available in older Trino versions" )
243246@pytest .mark .parametrize ('trino_connection' , ['tpch' ], indirect = True )
244247def test_operators (trino_connection ):
245248 _ , conn = trino_connection
@@ -260,6 +263,7 @@ def test_operators(trino_connection):
260263 sqlalchemy_version () < "1.4" ,
261264 reason = "columns argument to select() must be a Python list or other iterable"
262265)
266+ @pytest .mark .skipif (trino_version () == 351 , reason = "connector name is not available in older Trino versions" )
263267@pytest .mark .parametrize ('trino_connection' , ['tpch' ], indirect = True )
264268def test_conjunctions (trino_connection ):
265269 _ , conn = trino_connection
@@ -300,6 +304,7 @@ def test_textual_sql(trino_connection):
300304 sqlalchemy_version () < "1.4" ,
301305 reason = "columns argument to select() must be a Python list or other iterable"
302306)
307+ @pytest .mark .skipif (trino_version () == 351 , reason = "connector name is not available in older Trino versions" )
303308@pytest .mark .parametrize ('trino_connection' , ['tpch' ], indirect = True )
304309def test_alias (trino_connection ):
305310 _ , conn = trino_connection
@@ -323,6 +328,7 @@ def test_alias(trino_connection):
323328 sqlalchemy_version () < "1.4" ,
324329 reason = "columns argument to select() must be a Python list or other iterable"
325330)
331+ @pytest .mark .skipif (trino_version () == 351 , reason = "connector name is not available in older Trino versions" )
326332@pytest .mark .parametrize ('trino_connection' , ['tpch' ], indirect = True )
327333def test_subquery (trino_connection ):
328334 _ , conn = trino_connection
@@ -341,6 +347,7 @@ def test_subquery(trino_connection):
341347 sqlalchemy_version () < "1.4" ,
342348 reason = "columns argument to select() must be a Python list or other iterable"
343349)
350+ @pytest .mark .skipif (trino_version () == 351 , reason = "connector name is not available in older Trino versions" )
344351@pytest .mark .parametrize ('trino_connection' , ['tpch' ], indirect = True )
345352def test_joins (trino_connection ):
346353 _ , conn = trino_connection
@@ -360,6 +367,7 @@ def test_joins(trino_connection):
360367 sqlalchemy_version () < "1.4" ,
361368 reason = "columns argument to select() must be a Python list or other iterable"
362369)
370+ @pytest .mark .skipif (trino_version () == 351 , reason = "connector name is not available in older Trino versions" )
363371@pytest .mark .parametrize ('trino_connection' , ['tpch' ], indirect = True )
364372def test_cte (trino_connection ):
365373 _ , conn = trino_connection
0 commit comments