Skip to content

Commit 2ce7c97

Browse files
committed
optmized tests
Signed-off-by: Sreekanth Vadigi <[email protected]>
1 parent cf7df8d commit 2ce7c97

File tree

1 file changed

+3
-14
lines changed

1 file changed

+3
-14
lines changed

tests/e2e/test_driver.py

Lines changed: 3 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -848,21 +848,10 @@ def test_socket_timeout_user_defined(self):
848848
query = "select * from range(1000000000)"
849849
cursor.execute(query)
850850

851-
@pytest.mark.parametrize(
852-
"extra_params",
853-
[
854-
{
855-
"use_sea": False,
856-
},
857-
{
858-
"use_sea": True,
859-
},
860-
],
861-
)
862-
def test_ssp_passthrough(self, extra_params):
851+
def test_ssp_passthrough(self):
863852
for enable_ansi in (True, False):
864853
with self.cursor(
865-
{"session_configuration": {"ansi_mode": enable_ansi, "QUERY_TAGS": "team:marketing,dashboard:abc123,driver:python"}, **extra_params}
854+
{"session_configuration": {"ansi_mode": enable_ansi}}
866855
) as cursor:
867856
cursor.execute("SET ansi_mode")
868857
assert list(cursor.fetchone()) == ["ansi_mode", str(enable_ansi)]
@@ -908,7 +897,7 @@ def test_timestamps_arrow(self):
908897
)
909898
def test_multi_timestamps_arrow(self, extra_params):
910899
with self.cursor(
911-
{"session_configuration": {"ansi_mode": False}, **extra_params}
900+
{"session_configuration": {"ansi_mode": False, "query_tags": "test:multi-timestamps,driver:python"}, **extra_params}
912901
) as cursor:
913902
query, expected = self.multi_query()
914903
expected = [

0 commit comments

Comments
 (0)