From ebd42145f3cfe6d8e30d080aa159118ba407ebc5 Mon Sep 17 00:00:00 2001 From: David Shi Date: Tue, 22 Oct 2024 12:32:45 -0400 Subject: [PATCH] rename Row definition for no-redef error --- providers/tests/snowflake/operators/test_snowflake_sql.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/providers/tests/snowflake/operators/test_snowflake_sql.py b/providers/tests/snowflake/operators/test_snowflake_sql.py index fb1bcd1726352..47dcf27122df1 100644 --- a/providers/tests/snowflake/operators/test_snowflake_sql.py +++ b/providers/tests/snowflake/operators/test_snowflake_sql.py @@ -32,9 +32,11 @@ except ImportError: # Row is used in the parametrize so it's parsed during collection and we need to have a viable # replacement for the collection time when databricks is not installed (Python 3.12 for now) - def Row(*args, **kwargs): + def MockRow(*args, **kwargs): return MagicMock() + Row = MockRow + from airflow.models.connection import Connection from airflow.providers.common.compat.openlineage.facet import (